From be27aa3ca509e81f23fc9d365ed9a717cbce0ff9 Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Wed, 21 Oct 2026 17:27:19 -0700 Subject: [PATCH 01/24] Prepare Calendar shared directive migration for v3 Map all six shared directives to exact v1.0 and beta operations, retain active legacy directives, and cover naming and suppression behavior with Calendar-specific regressions. Curated verb support and quoted-path inventory parsing remain dependent on the shared framework follow-up; both full profile generations are pending. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- src/Calendar/Calendar.md | 18 ++ .../wrapper/Calendar_cmdletConfigurations.cs | 49 ++++ .../Calendar_directiveMigrationMap.json | 200 +++++++++++++++ .../CalendarDirectiveMigrationTests.cs | 227 ++++++++++++++++++ 4 files changed, 494 insertions(+) create mode 100644 src/Calendar/wrapper/Calendar_directiveMigrationMap.json create mode 100644 tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs diff --git a/src/Calendar/Calendar.md b/src/Calendar/Calendar.md index 4217e5f2289..e55ea4adfb5 100644 --- a/src/Calendar/Calendar.md +++ b/src/Calendar/Calendar.md @@ -18,19 +18,30 @@ require: ``` yaml directive: # Remove paths that are not valid. +# Wrapper migration: the adjacent Calendar_directiveMigrationMap.json records all +# 26 exact operation-ID matches per compatible profile, plus absent legacy CRUD +# selector branches. Calendar_cmdletConfigurations.cs covers both profiles without +# relying on v1.0-only derived data. Existing curated coverage is retained. - remove-path-by-operation: (user|group)_(Update|Delete)Calendar$|(user|group)..*_(Get|Create|Update|Delete)CalendarView$|(user|group).(calendar).calendarView.*$|user.calendar_(Get|Update|Delete)Event$|(user|group).(calendar).event.*$|(user|group)_.*CalendarView$|(user|group).calendarView.*$|user.calendarGroup_(Get|Update|Delete)Calendar$|user.calendarGroup.calendar.*$|(group|user).event_(Create|Update|Create)Calendar$|(user|group).event.calendar.*$|placeAsRoomList.room_(Get|Update|Delete)GraphBPrePlaceId$|placeAsRoomList.workspace_(Get|Update|Delete)GraphBPrePlaceId$ # Rename cmdlets. +# Wrapper migration: exact noun and Invoke verb fallbacks cover the default-user- +# calendar function in both profiles, using the shared ReplaceVerb prerequisite. +# v1.0 derived data retains precedence. Neither spec contains the event-calendar +# function counterpart; the ledger records that absence without fabricating a route. - where: verb: Invoke subject: ^(CalendarUserEventCalendar|CalendarUserCalendar)$ set: subject: $1AllowedCalendarSharingRoles +# Wrapper migration: the existing exact GET noun override implements this rename. - where: verb: Get subject: ^(User)(Calendar)$ variant: ^Get$|^GetViaIdentity$ set: subject: $1Default$2 +# Wrapper migration: the existing exact collection override supplies Default for +# List/Create. Cancel is present but suppressed by directive 1; no rename revives it. - where: subject: ^(User)(CalendarEvent)$ variant: ^List$|^Create$|^CreateExpanded$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Cancel$|^CancelExpanded$|^CancelViaIdentity$|^CancelViaIdentityExpanded$ @@ -38,11 +49,18 @@ directive: subject: $1Default$2 # Remove duplicate cmdlet +# Wrapper migration: exact POST getSchedule routes for default and named user +# calendars are suppressed; HTTP method and legacy Get verb are not interchangeable. - where: verb: Get subject: ^(UserCalendarSchedule)$ remove: true #Remove cmdlet to avoid conflicts where alias has been set:[#3241](https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/3241) +# Wrapper migration: exact GET delta routes for default and named calendars are +# suppressed in both profiles. CalendarDirectiveMigrationTests pins the evidence, +# precedence and unaffected neighbors. Keep all original AutoRest directives active +# until retirement. Global/profile-local directives are not audited here; parameter +# aliases/transforms and schema/response changes remain deferred. - where: verb: Get subject: ^UserCalendarEventDelta$ diff --git a/src/Calendar/wrapper/Calendar_cmdletConfigurations.cs b/src/Calendar/wrapper/Calendar_cmdletConfigurations.cs index c84d810aba2..b476fb5ef93 100644 --- a/src/Calendar/wrapper/Calendar_cmdletConfigurations.cs +++ b/src/Calendar/wrapper/Calendar_cmdletConfigurations.cs @@ -29,5 +29,54 @@ public static partial class CmdletConfigurator Reason: "oracle: named-calendar event items ship nothing; items ship from /users/{}/events/{}"), new(OverrideKind.SuppressOperation, Method: null, "/users/{}/calendars/{}/calendarpermissions", Match: PathMatch.Prefix, Value: null, Reason: "oracle: permissions ship only from the default calendar (Get-MgUserCalendarPermission on /users/{}/calendar/calendarPermissions)"), + + // Exact matches of Calendar.md directive 1 in both compatible specs. The existing + // default-calendar event-item prefix above already covers the user item operations. + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/groups/{}/calendar/calendarview/delta", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1: groups.group.calendar.calendarView.delta"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/groups/{}/calendar/events/delta", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1: groups.group.calendar.events.delta"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/groups/{}/calendarview/delta", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1: groups.group.calendarView.delta"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/groups/{}/calendar/events/{}/attachments/createuploadsession", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1: groups.group.calendar.events.event.attachments.createUploadSession"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/groups/{}/calendar/events/{}/instances/delta", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1: groups.group.calendar.events.event.instances.delta"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/groups/{}/calendar/events/{}/accept", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1: groups.group.calendar.events.event.accept"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/groups/{}/calendar/events/{}/cancel", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1: groups.group.calendar.events.event.cancel"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/groups/{}/calendar/events/{}/decline", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1: groups.group.calendar.events.event.decline"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/groups/{}/calendar/events/{}/dismissreminder", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1: groups.group.calendar.events.event.dismissReminder"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/groups/{}/calendar/events/{}/forward", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1: groups.group.calendar.events.event.forward"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/groups/{}/calendar/events/{}/permanentdelete", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1: groups.group.calendar.events.event.permanentDelete"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/groups/{}/calendar/events/{}/snoozereminder", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1: groups.group.calendar.events.event.snoozeReminder"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/groups/{}/calendar/events/{}/tentativelyaccept", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1: groups.group.calendar.events.event.tentativelyAccept"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendar/calendarview/delta", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1: users.user.calendar.calendarView.delta"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendarview/delta", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1: users.user.calendarView.delta"), + + // The oracle-derived v1.0 entry takes precedence. These fallbacks preserve the + // shared directive's subject and Invoke verb when no derived entry is available. + new(OverrideKind.ReplaceNoun, HttpMethod.Get, "/users/{}/calendar/allowedcalendarsharingroles(user='{}')", Match: PathMatch.Exact, + Value: "CalendarUserCalendarAllowedCalendarSharingRoles", Reason: "Calendar.md directive 2 subject rename"), + new(OverrideKind.ReplaceVerb, HttpMethod.Get, "/users/{}/calendar/allowedcalendarsharingroles(user='{}')", Match: PathMatch.Exact, + Value: "Invoke", Reason: "Calendar.md directive 2 retains Invoke for the renamed function"), + + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/users/{}/calendar/getschedule", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 5 removes Get-UserCalendarSchedule"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/users/{}/calendars/{}/getschedule", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 5 removes Get-UserCalendarSchedule"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendar/events/delta", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directives 1 and 6 remove the default-calendar event delta"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendars/{}/events/delta", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 6 removes Get-UserCalendarEventDelta"), ]; } diff --git a/src/Calendar/wrapper/Calendar_directiveMigrationMap.json b/src/Calendar/wrapper/Calendar_directiveMigrationMap.json new file mode 100644 index 00000000000..0f8d4c71bc3 --- /dev/null +++ b/src/Calendar/wrapper/Calendar_directiveMigrationMap.json @@ -0,0 +1,200 @@ +{ + "scope": "Only src/Calendar/Calendar.md; global and profile-local directives are excluded. Parameter aliases/transforms and schema/response directives remain deferred.", + "prerequisite": "Reviewed inventory PR #3837 is merged. Its shared follow-up must add curated OverrideKind.ReplaceVerb support and correctly parse YAML-quoted function paths before this migration can compile and pass its final strict gate on powershell-v3.", + "specBlobs": { + "v1.0": "f8cbbb7420cd4c881bae4662fd0a3ff5bcc3182b", + "beta": "a1b424a75a626b3a390e1993de3cda01264a3959" + }, + "mappings": [ + { + "module": "Calendar", + "directiveIndex": 1, + "classification": "OperationIdSuppression", + "sourceContains": "remove-path-by-operation: (user|group)_(Update|Delete)Calendar$", + "implementation": "CmdletConfigurator", + "notes": "The unmodified case-sensitive legacy regex matches exactly 26 operations per present compatible profile. Existing user default-calendar event-item prefix suppressions cover ten matches per profile; exact rules supply the remaining matches in beta as well as v1.0. v1.0 derived data already covers these routes but is not loaded for beta. Legacy underscore CRUD branches, singular calendarGroup branches and GraphBPrePlaceId branches have no literal matches in either present spec: modern CRUD IDs include users.UpdateCalendar, users.calendar.GetEvents and users.calendarGroups.calendars.GetEvents. Do not reinterpret plural/dotted IDs as regex matches or broaden this directive into subject-derived subtree pruning. Existing curated and derived suppression coverage outside the literal match set is retained.", + "profiles": { + "v1.0": { + "absenceExpected": false, + "operations": [ + { "method": "GET", "path": "/groups/{group-id}/calendar/calendarView/delta()", "operationId": "groups.group.calendar.calendarView.delta" }, + { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/createUploadSession", "operationId": "groups.group.calendar.events.event.attachments.createUploadSession" }, + { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/instances/delta()", "operationId": "groups.group.calendar.events.event.instances.delta" }, + { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/accept", "operationId": "groups.group.calendar.events.event.accept" }, + { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/cancel", "operationId": "groups.group.calendar.events.event.cancel" }, + { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/decline", "operationId": "groups.group.calendar.events.event.decline" }, + { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/dismissReminder", "operationId": "groups.group.calendar.events.event.dismissReminder" }, + { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/forward", "operationId": "groups.group.calendar.events.event.forward" }, + { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/permanentDelete", "operationId": "groups.group.calendar.events.event.permanentDelete" }, + { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/snoozeReminder", "operationId": "groups.group.calendar.events.event.snoozeReminder" }, + { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/tentativelyAccept", "operationId": "groups.group.calendar.events.event.tentativelyAccept" }, + { "method": "GET", "path": "/groups/{group-id}/calendar/events/delta()", "operationId": "groups.group.calendar.events.delta" }, + { "method": "GET", "path": "/groups/{group-id}/calendarView/delta()", "operationId": "groups.group.calendarView.delta" }, + { "method": "GET", "path": "/users/{user-id}/calendar/calendarView/delta()", "operationId": "users.user.calendar.calendarView.delta" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/attachments/createUploadSession", "operationId": "users.user.calendar.events.event.attachments.createUploadSession" }, + { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/instances/delta()", "operationId": "users.user.calendar.events.event.instances.delta" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/accept", "operationId": "users.user.calendar.events.event.accept" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/cancel", "operationId": "users.user.calendar.events.event.cancel" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/decline", "operationId": "users.user.calendar.events.event.decline" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/dismissReminder", "operationId": "users.user.calendar.events.event.dismissReminder" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/forward", "operationId": "users.user.calendar.events.event.forward" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/permanentDelete", "operationId": "users.user.calendar.events.event.permanentDelete" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/snoozeReminder", "operationId": "users.user.calendar.events.event.snoozeReminder" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/tentativelyAccept", "operationId": "users.user.calendar.events.event.tentativelyAccept" }, + { "method": "GET", "path": "/users/{user-id}/calendar/events/delta()", "operationId": "users.user.calendar.events.delta" }, + { "method": "GET", "path": "/users/{user-id}/calendarView/delta()", "operationId": "users.user.calendarView.delta" } + ] + }, + "beta": { + "absenceExpected": false, + "operations": [ + { "method": "GET", "path": "/groups/{group-id}/calendar/calendarView/delta()", "operationId": "groups.group.calendar.calendarView.delta" }, + { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/createUploadSession", "operationId": "groups.group.calendar.events.event.attachments.createUploadSession" }, + { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/instances/delta()", "operationId": "groups.group.calendar.events.event.instances.delta" }, + { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/accept", "operationId": "groups.group.calendar.events.event.accept" }, + { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/cancel", "operationId": "groups.group.calendar.events.event.cancel" }, + { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/decline", "operationId": "groups.group.calendar.events.event.decline" }, + { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/dismissReminder", "operationId": "groups.group.calendar.events.event.dismissReminder" }, + { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/forward", "operationId": "groups.group.calendar.events.event.forward" }, + { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/permanentDelete", "operationId": "groups.group.calendar.events.event.permanentDelete" }, + { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/snoozeReminder", "operationId": "groups.group.calendar.events.event.snoozeReminder" }, + { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/tentativelyAccept", "operationId": "groups.group.calendar.events.event.tentativelyAccept" }, + { "method": "GET", "path": "/groups/{group-id}/calendar/events/delta()", "operationId": "groups.group.calendar.events.delta" }, + { "method": "GET", "path": "/groups/{group-id}/calendarView/delta()", "operationId": "groups.group.calendarView.delta" }, + { "method": "GET", "path": "/users/{user-id}/calendar/calendarView/delta()", "operationId": "users.user.calendar.calendarView.delta" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/attachments/createUploadSession", "operationId": "users.user.calendar.events.event.attachments.createUploadSession" }, + { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/instances/delta()", "operationId": "users.user.calendar.events.event.instances.delta" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/accept", "operationId": "users.user.calendar.events.event.accept" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/cancel", "operationId": "users.user.calendar.events.event.cancel" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/decline", "operationId": "users.user.calendar.events.event.decline" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/dismissReminder", "operationId": "users.user.calendar.events.event.dismissReminder" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/forward", "operationId": "users.user.calendar.events.event.forward" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/permanentDelete", "operationId": "users.user.calendar.events.event.permanentDelete" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/snoozeReminder", "operationId": "users.user.calendar.events.event.snoozeReminder" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/tentativelyAccept", "operationId": "users.user.calendar.events.event.tentativelyAccept" }, + { "method": "GET", "path": "/users/{user-id}/calendar/events/delta()", "operationId": "users.user.calendar.events.delta" }, + { "method": "GET", "path": "/users/{user-id}/calendarView/delta()", "operationId": "users.user.calendarView.delta" } + ] + } + } + }, + { + "module": "Calendar", + "directiveIndex": 2, + "classification": "SubjectRename", + "sourceContains": "subject: ^(CalendarUserEventCalendar|CalendarUserCalendar)$", + "implementation": "CmdletConfigurator", + "notes": "The default-calendar function maps to Invoke-CalendarUserCalendarAllowedCalendarSharingRoles. The v1.0 derived rename already supplies that noun and Invoke; separate exact curated noun/verb fallbacks preserve the same shared disposition in beta and without derived data. Curated ReplaceVerb requires the central shared-framework follow-up, not a module-local engine patch. The CalendarUserEventCalendar alternative is absent in both present profiles: no /users/{id}/events/{id}/calendar/allowedCalendarSharingRoles function exists. Named-calendar functions are not guessed into this selector. The pre-existing shared Mg-versus-MgBeta prefix discrepancy remains outside this module change.", + "profiles": { + "v1.0": { + "absenceExpected": false, + "operations": [ + { "method": "GET", "path": "/users/{user-id}/calendar/allowedCalendarSharingRoles(User='{User}')", "operationId": "users.user.calendar.allowedCalendarSharingRoles" } + ] + }, + "beta": { + "absenceExpected": false, + "operations": [ + { "method": "GET", "path": "/users/{user-id}/calendar/allowedCalendarSharingRoles(User='{User}')", "operationId": "users.user.calendar.allowedCalendarSharingRoles" } + ] + } + } + }, + { + "module": "Calendar", + "directiveIndex": 3, + "classification": "SubjectRename", + "sourceContains": "subject: ^(User)(Calendar)$", + "implementation": "CmdletConfigurator", + "notes": "Existing exact GET /users/{id}/calendar noun override implements both legacy Get and GetViaIdentity variants as UserDefaultCalendar. Collection and named-calendar item nouns remain UserCalendar.", + "profiles": { + "v1.0": { + "absenceExpected": false, + "operations": [ + { "method": "GET", "path": "/users/{user-id}/calendar", "operationId": "users.GetCalendar" } + ] + }, + "beta": { + "absenceExpected": false, + "operations": [ + { "method": "GET", "path": "/users/{user-id}/calendar", "operationId": "users.GetCalendar" } + ] + } + } + }, + { + "module": "Calendar", + "directiveIndex": 4, + "classification": "SubjectRename", + "sourceContains": "subject: ^(User)(CalendarEvent)$", + "implementation": "CmdletConfigurator", + "notes": "Existing exact collection override implements List/Create variants as UserDefaultCalendarEvent. The present Cancel operation is already removed by directive 1 and the existing user event-item prefix; suppression wins, so do not add a redundant rename or revive it. Expanded/identity variants share their underlying HTTP operation.", + "profiles": { + "v1.0": { + "absenceExpected": false, + "operations": [ + { "method": "GET", "path": "/users/{user-id}/calendar/events", "operationId": "users.calendar.ListEvents" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events", "operationId": "users.calendar.CreateEvents" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/cancel", "operationId": "users.user.calendar.events.event.cancel" } + ] + }, + "beta": { + "absenceExpected": false, + "operations": [ + { "method": "GET", "path": "/users/{user-id}/calendar/events", "operationId": "users.calendar.ListEvents" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events", "operationId": "users.calendar.CreateEvents" }, + { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/cancel", "operationId": "users.user.calendar.events.event.cancel" } + ] + } + } + }, + { + "module": "Calendar", + "directiveIndex": 5, + "classification": "CmdletSuppression", + "sourceContains": "subject: ^(UserCalendarSchedule)$", + "implementation": "CmdletConfigurator", + "notes": "The legacy Get verb is an action name, not HTTP GET. Both default and named-calendar POST getSchedule routes collapse to the UserCalendarSchedule subject; v1.0 derived collision suppressions already cover both. Exact method/path entries extend that reviewed coverage to beta. Group scheduling and calendar-group scheduling are not this subject.", + "profiles": { + "v1.0": { + "absenceExpected": false, + "operations": [ + { "method": "POST", "path": "/users/{user-id}/calendar/getSchedule", "operationId": "users.user.calendar.getSchedule" }, + { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/getSchedule", "operationId": "users.user.calendars.calendar.getSchedule" } + ] + }, + "beta": { + "absenceExpected": false, + "operations": [ + { "method": "POST", "path": "/users/{user-id}/calendar/getSchedule", "operationId": "users.user.calendar.getSchedule" }, + { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/getSchedule", "operationId": "users.user.calendars.calendar.getSchedule" } + ] + } + } + }, + { + "module": "Calendar", + "directiveIndex": 6, + "classification": "CmdletSuppression", + "sourceContains": "subject: ^UserCalendarEventDelta$", + "implementation": "CmdletConfigurator", + "notes": "Suppress the default- and named-calendar event delta GET functions, including the default route also selected by directive 1. v1.0 derived suppressions already cover both; exact rules preserve the same shared disposition in beta. The /users/{id}/events/delta() neighbor remains available.", + "profiles": { + "v1.0": { + "absenceExpected": false, + "operations": [ + { "method": "GET", "path": "/users/{user-id}/calendar/events/delta()", "operationId": "users.user.calendar.events.delta" }, + { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/delta()", "operationId": "users.user.calendars.calendar.events.delta" } + ] + }, + "beta": { + "absenceExpected": false, + "operations": [ + { "method": "GET", "path": "/users/{user-id}/calendar/events/delta()", "operationId": "users.user.calendar.events.delta" }, + { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/delta()", "operationId": "users.user.calendars.calendar.events.delta" } + ] + } + } + } + ] +} diff --git a/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs b/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs new file mode 100644 index 00000000000..937f3b80d4c --- /dev/null +++ b/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs @@ -0,0 +1,227 @@ +using System; +using System.IO; +using System.Linq; +using System.Net.Http; +using System.Text.Json; +using System.Text.RegularExpressions; +using System.Threading; +using System.Threading.Tasks; +using Microsoft.Extensions.Logging.Abstractions; +using Microsoft.OpenApi; +using Microsoft.OpenApi.Reader; +using WrapperGenerator; +using Xunit; + +namespace WrapperGenerator.Tests; + +public sealed class CalendarDirectiveMigrationTests +{ + private static readonly string RepoRoot = FindRepoRoot(); + private static readonly Lazy V1 = new(() => ReadSpec("v1.0")); + private static readonly Lazy Beta = new(() => ReadSpec("beta")); + private const string SharingPath = "/users/{user-id}/calendar/allowedCalendarSharingRoles(User='{User}')"; + + [Theory] + [InlineData("v1.0")] + [InlineData("beta")] + public void ReviewedLedgerMatchesEveryExactOperationAndOriginalSelector(string profile) + { + var spec = Spec(profile); + using var ledger = ReadLedger(); + var source = File.ReadAllText(Path.Combine(RepoRoot, "src", "Calendar", "Calendar.md")); + var directives = ledger.RootElement.GetProperty("mappings").EnumerateArray().ToArray(); + Assert.Equal(6, directives.Length); + Assert.Equal(Enumerable.Range(1, 6), directives.Select(d => d.GetProperty("directiveIndex").GetInt32())); + foreach (var directive in directives) + { + Assert.Contains(directive.GetProperty("sourceContains").GetString()!, source); + var map = directive.GetProperty("profiles").GetProperty(profile); + Assert.False(map.GetProperty("absenceExpected").GetBoolean()); + foreach (var operation in map.GetProperty("operations").EnumerateArray()) + { + var method = new HttpMethod(operation.GetProperty("method").GetString()!); + var path = operation.GetProperty("path").GetString()!; + Assert.True(spec.Paths.TryGetValue(path, out var item), $"Missing {profile} {method} {path}"); + Assert.NotNull(item!.Operations); + Assert.True(item.Operations.TryGetValue(method, out var actual), $"Missing {profile} {method} {path}"); + Assert.Equal(operation.GetProperty("operationId").GetString(), actual!.OperationId); + } + } + + var pattern = Regex.Match(source, @"(?m)^\s*- remove-path-by-operation: (.+)\r?$").Groups[1].Value.Trim(); + var regex = new Regex(pattern); + var matched = spec.Paths.SelectMany(p => p.Value.Operations! + .Where(o => regex.IsMatch(o.Value.OperationId!)) + .Select(o => $"{o.Key.Method.ToUpperInvariant()} {p.Key} [{o.Value.OperationId}]")) + .OrderBy(x => x, StringComparer.Ordinal).ToArray(); + var reviewed = directives[0].GetProperty("profiles").GetProperty(profile).GetProperty("operations") + .EnumerateArray().Select(o => + $"{o.GetProperty("method").GetString()} {o.GetProperty("path").GetString()} [{o.GetProperty("operationId").GetString()}]") + .OrderBy(x => x, StringComparer.Ordinal).ToArray(); + Assert.Equal(26, matched.Length); + Assert.Equal(matched, reviewed); + } + + [Theory] + [InlineData("v1.0", false)] + [InlineData("v1.0", true)] + [InlineData("beta", false)] + [InlineData("beta", true)] + public void ReviewedSuppressionsWorkWithAndWithoutDerivedData(string profile, bool useCollisionData) + { + var config = new GeneratorConfig("Test.Client", "", profile, useCollisionData); + using var ledger = ReadLedger(); + foreach (var directive in ledger.RootElement.GetProperty("mappings").EnumerateArray() + .Where(d => d.GetProperty("directiveIndex").GetInt32() is 1 or 5 or 6)) + { + foreach (var operation in directive.GetProperty("profiles").GetProperty(profile).GetProperty("operations").EnumerateArray()) + { + var method = new HttpMethod(operation.GetProperty("method").GetString()!); + var path = operation.GetProperty("path").GetString()!; + Assert.True(CmdletConfigurator.IsSuppressed(method, path, config), $"{profile} {method} {path}"); + } + } + Assert.True(CmdletConfigurator.IsSuppressed(HttpMethod.Post, "/users/{user-id}/calendar/events/{event-id}/cancel", config)); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Get, "/users/{user-id}/calendar", config)); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Get, "/users/{user-id}/events/delta()", config)); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Post, "/users/{user-id}/events/{event-id}/cancel", config)); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Post, "/groups/{group-id}/calendar/getSchedule", config)); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Get, "/groups/{group-id}/calendar/events/{event-id}", config)); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Post, "/groups/{group-id}/calendar/events", config)); + } + + [Theory] + [InlineData("v1.0", false)] + [InlineData("v1.0", true)] + [InlineData("beta", false)] + [InlineData("beta", true)] + public void RenamesStayExactAndStructuralNeighborsNeedNoOverrides(string profile, bool useCollisionData) + { + var config = new GeneratorConfig("Test.Client", "", profile, useCollisionData); + Assert.Equal("MgUserDefaultCalendar", Resolve(HttpMethod.Get, "/users/{user-id}/calendar", config).Noun); + Assert.Equal("MgUserDefaultCalendarEvent", Resolve(HttpMethod.Get, "/users/{user-id}/calendar/events", config).Noun); + Assert.Equal("MgUserDefaultCalendarEvent", Resolve(HttpMethod.Post, "/users/{user-id}/calendar/events", config).Noun); + Assert.Equal("MgUserCalendar", Resolve(HttpMethod.Get, "/users/{user-id}/calendars", config).Noun); + Assert.Equal("MgUserCalendar", Resolve(HttpMethod.Get, "/users/{user-id}/calendars/{calendar-id}", config).Noun); + Assert.Equal("MgGroupCalendarEvent", Resolve(HttpMethod.Get, "/groups/{group-id}/calendar/events/{event-id}", config).Noun); + Assert.Equal("MgUserEvent", Resolve(HttpMethod.Get, "/users/{user-id}/events/{event-id}", config).Noun); + + var sharing = Resolve(HttpMethod.Get, SharingPath, config, OperationKind.Function); + Assert.Equal("MgCalendarUserCalendarAllowedCalendarSharingRoles", sharing.Noun); + Assert.Equal("Invoke", sharing.VerbName); + Assert.Equal("InvokeMgCalendarUserCalendarAllowedCalendarSharingRolesCommand", sharing.ClassName); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Get, SharingPath, config)); + } + + [Fact] + public void SharingRoleRenameAlsoWorksWithoutAnyGeneratorConfiguration() + { + var naming = Naming.Resolve(new OperationInfo(HttpMethod.Get, SharingPath, Kind: OperationKind.Function)); + Assert.Equal("Invoke", naming.VerbName); + Assert.Equal("MgCalendarUserCalendarAllowedCalendarSharingRoles", naming.Noun); + Assert.Equal("InvokeMgCalendarUserCalendarAllowedCalendarSharingRolesCommand", naming.ClassName); + Assert.Null(CmdletConfigurator.TryGetOverriddenVerb(HttpMethod.Post, SharingPath, null)); + Assert.Null(CmdletConfigurator.TryGetOverriddenVerb(HttpMethod.Get, + "/users/{user-id}/events/{event-id}/calendar/allowedCalendarSharingRoles(User='{User}')", null)); + } + + [Theory] + [InlineData("v1.0")] + [InlineData("beta")] + public void AbsentLegacyBranchesAreNotFabricatedOrBroadened(string profile) + { + var spec = Spec(profile); + Assert.DoesNotContain(spec.Paths.Keys, p => + p.StartsWith("/users/{user-id}/events/{event-id}/calendar/", StringComparison.Ordinal) + && p.Contains("allowedCalendarSharingRoles", StringComparison.Ordinal)); + var ids = spec.Paths.SelectMany(p => p.Value.Operations!.Values).Select(o => o.OperationId!).ToArray(); + Assert.DoesNotContain(ids, id => Regex.IsMatch(id, + @"(user|group)_(Update|Delete)Calendar$|user\.calendarGroup_(Get|Update|Delete)Calendar$|user\.calendarGroup\.calendar.*$|placeAsRoomList\.(room|workspace)_(Get|Update|Delete)GraphBPrePlaceId$")); + Assert.Equal("users.UpdateCalendar", spec.Paths["/users/{user-id}/calendar"].Operations![HttpMethod.Patch].OperationId); + Assert.Equal("users.calendar.GetEvents", spec.Paths["/users/{user-id}/calendar/events/{event-id}"].Operations![HttpMethod.Get].OperationId); + Assert.True(CmdletConfigurator.IsSuppressed(HttpMethod.Patch, "/users/{user-id}/calendar")); + } + + [Theory] + [InlineData("v1.0")] + [InlineData("beta")] + public async Task TargetedGenerationUsesRealProfileOperationsAndPreservesNeighbors(string profile) + { + var source = Spec(profile); + var subset = new OpenApiDocument + { + Info = source.Info, + Components = source.Components, + Paths = new OpenApiPaths(), + }; + string[] paths = + [ + "/users/{user-id}/calendar", + "/users/{user-id}/calendar/events", + "/users/{user-id}/calendar/events/{event-id}/cancel", + "/users/{user-id}/calendar/events/delta()", + "/users/{user-id}/calendars/{calendar-id}/events/delta()", + "/users/{user-id}/calendar/getSchedule", + "/users/{user-id}/calendars/{calendar-id}/getSchedule", + "/users/{user-id}/events/delta()", + "/users/{user-id}/events/{event-id}/cancel", + "/groups/{group-id}/calendar/events/{event-id}", + "/groups/{group-id}/calendar/events/{event-id}/cancel", + SharingPath, + ]; + foreach (var path in paths) + subset.Paths.Add(path, source.Paths[path]); + + var output = Path.Combine(Path.GetTempPath(), "calendar-directive-tests", Guid.NewGuid().ToString("N")); + Directory.CreateDirectory(output); + try + { + var config = new GeneratorConfig("Test.Client", output, profile); + await new PowerShellWrapperGenerationService(subset, config, NullLogger.Instance) + .GenerateAsync(CancellationToken.None); + var files = Directory.GetFiles(output, "*.g.cs").Select(Path.GetFileName).ToArray(); + Assert.Contains("GetMgUserDefaultCalendar.g.cs", files); + Assert.Contains("GetMgUserDefaultCalendarEvent.g.cs", files); + Assert.Contains("NewMgUserDefaultCalendarEvent.g.cs", files); + Assert.Contains("GetMgUserEventDelta.g.cs", files); + Assert.Contains(profile == "v1.0" ? "StopMgUserEvent.g.cs" : "InvokeMgUserEventCancel.g.cs", files); + Assert.Contains("GetMgGroupCalendarEvent.g.cs", files); + Assert.DoesNotContain(files, f => f!.Contains("CalendarEventDelta", StringComparison.Ordinal)); + Assert.DoesNotContain(files, f => f!.Contains("CalendarGetSchedule", StringComparison.Ordinal)); + Assert.DoesNotContain(files, f => f!.Contains("CalendarEventCancel", StringComparison.Ordinal)); + Assert.Contains("InvokeMgCalendarUserCalendarAllowedCalendarSharingRoles.g.cs", files); + } + finally + { + Directory.Delete(output, recursive: true); + } + } + + private static CmdletNaming Resolve(HttpMethod method, string path, GeneratorConfig config, + OperationKind kind = OperationKind.Resource) => + Naming.Resolve(new OperationInfo(method, path, Kind: kind), config); + + private static OpenApiDocument Spec(string profile) => profile == "v1.0" ? V1.Value : Beta.Value; + + private static OpenApiDocument ReadSpec(string profile) + { + var settings = new OpenApiReaderSettings(); + settings.AddYamlReader(); + using var stream = File.OpenRead(Path.Combine(RepoRoot, "openApiDocs_KiotaCompat", profile, "Calendar.yml")); + var result = OpenApiDocument.LoadAsync(stream, settings: settings, cancellationToken: CancellationToken.None) + .GetAwaiter().GetResult(); + Assert.NotNull(result.Document); + return result.Document; + } + + private static JsonDocument ReadLedger() => + JsonDocument.Parse(File.ReadAllText(Path.Combine(RepoRoot, "src", "Calendar", "wrapper", "Calendar_directiveMigrationMap.json"))); + + private static string FindRepoRoot() + { + var directory = AppContext.BaseDirectory; + while (directory is not null && !Directory.Exists(Path.Combine(directory, "openApiDocs_KiotaCompat"))) + directory = Path.GetDirectoryName(directory); + return directory ?? throw new InvalidOperationException("Repository root not found."); + } +} From 0568be88692d25a23f698edc09e73c382c9340d7 Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Wed, 21 Oct 2026 17:33:43 -0700 Subject: [PATCH 02/24] Record integrated Calendar migration prerequisites Record merged reviewed-inventory and curated-verb framework support. All six Calendar mappings now pass the strict inventory gate and the integrated targeted regression group passes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- src/Calendar/wrapper/Calendar_directiveMigrationMap.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Calendar/wrapper/Calendar_directiveMigrationMap.json b/src/Calendar/wrapper/Calendar_directiveMigrationMap.json index 0f8d4c71bc3..3d6b636e1c4 100644 --- a/src/Calendar/wrapper/Calendar_directiveMigrationMap.json +++ b/src/Calendar/wrapper/Calendar_directiveMigrationMap.json @@ -1,6 +1,6 @@ { "scope": "Only src/Calendar/Calendar.md; global and profile-local directives are excluded. Parameter aliases/transforms and schema/response directives remain deferred.", - "prerequisite": "Reviewed inventory PR #3837 is merged. Its shared follow-up must add curated OverrideKind.ReplaceVerb support and correctly parse YAML-quoted function paths before this migration can compile and pass its final strict gate on powershell-v3.", + "prerequisite": "Reviewed inventory PR #3837 and shared-framework follow-up PR #3838 are merged into powershell-v3. The shared engine supplies curated OverrideKind.ReplaceVerb support and correctly parses YAML-quoted function paths; no module-local framework patches are required.", "specBlobs": { "v1.0": "f8cbbb7420cd4c881bae4662fd0a3ff5bcc3182b", "beta": "a1b424a75a626b3a390e1993de3cda01264a3959" From d96acab07ea95fc747d6ef8258e6418dc47ef677 Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Wed, 21 Oct 2026 17:43:10 -0700 Subject: [PATCH 03/24] Reconcile Calendar collision suppressions across profiles Carry six existing exact v1.0-derived suppressions into module configuration so beta avoids five proven collisions. Preserve the default-calendar routes and verify exact compatible-spec IDs, both-profile oracle absence, existing derived provenance, and subset generation. Keep these reconciliations separate from the original 26 literal operation-ID matches. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- src/Calendar/Calendar.md | 2 + .../wrapper/Calendar_cmdletConfigurations.cs | 15 +++++ .../Calendar_directiveMigrationMap.json | 26 +++++++++ .../CalendarDirectiveMigrationTests.cs | 56 +++++++++++++++++++ 4 files changed, 99 insertions(+) diff --git a/src/Calendar/Calendar.md b/src/Calendar/Calendar.md index e55ea4adfb5..1efde6a4c5b 100644 --- a/src/Calendar/Calendar.md +++ b/src/Calendar/Calendar.md @@ -22,6 +22,8 @@ directive: # 26 exact operation-ID matches per compatible profile, plus absent legacy CRUD # selector branches. Calendar_cmdletConfigurations.cs covers both profiles without # relying on v1.0-only derived data. Existing curated coverage is retained. +# The ledger separately reconciles six existing derived collision suppressions +# across both profiles; these are not counted as literal legacy-regex matches. - remove-path-by-operation: (user|group)_(Update|Delete)Calendar$|(user|group)..*_(Get|Create|Update|Delete)CalendarView$|(user|group).(calendar).calendarView.*$|user.calendar_(Get|Update|Delete)Event$|(user|group).(calendar).event.*$|(user|group)_.*CalendarView$|(user|group).calendarView.*$|user.calendarGroup_(Get|Update|Delete)Calendar$|user.calendarGroup.calendar.*$|(group|user).event_(Create|Update|Create)Calendar$|(user|group).event.calendar.*$|placeAsRoomList.room_(Get|Update|Delete)GraphBPrePlaceId$|placeAsRoomList.workspace_(Get|Update|Delete)GraphBPrePlaceId$ # Rename cmdlets. # Wrapper migration: exact noun and Invoke verb fallbacks cover the default-user- diff --git a/src/Calendar/wrapper/Calendar_cmdletConfigurations.cs b/src/Calendar/wrapper/Calendar_cmdletConfigurations.cs index b476fb5ef93..5f795586972 100644 --- a/src/Calendar/wrapper/Calendar_cmdletConfigurations.cs +++ b/src/Calendar/wrapper/Calendar_cmdletConfigurations.cs @@ -78,5 +78,20 @@ public static partial class CmdletConfigurator Reason: "Calendar.md directives 1 and 6 remove the default-calendar event delta"), new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendars/{}/events/delta", Match: PathMatch.Exact, Value: null, Reason: "Calendar.md directive 6 removes Get-UserCalendarEventDelta"), + + // Reconcile existing v1.0 collision suppressions for beta, not additional regex + // matches. Both-profile oracle evidence and retained routes are in the ledger. + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/groups/{}/calendarview", Match: PathMatch.Exact, Value: null, + Reason: "existing collision suppression: group calendarView ships from /calendar/calendarView"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendarview", Match: PathMatch.Exact, Value: null, + Reason: "existing collision suppression: user calendarView ships from /calendar/calendarView"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendars/{}/calendarview", Match: PathMatch.Exact, Value: null, + Reason: "existing collision suppression: user calendarView ships from /calendar/calendarView"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendar/events/$count", Match: PathMatch.Exact, Value: null, + Reason: "existing collision suppression: no published default-calendar event count route"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendars/{}/events/$count", Match: PathMatch.Exact, Value: null, + Reason: "existing collision suppression: no published named-calendar event count route"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/users/{}/calendars/{}/permanentdelete", Match: PathMatch.Exact, Value: null, + Reason: "existing collision suppression: permanentDelete ships from the default calendar"), ]; } diff --git a/src/Calendar/wrapper/Calendar_directiveMigrationMap.json b/src/Calendar/wrapper/Calendar_directiveMigrationMap.json index 3d6b636e1c4..eeca6f61583 100644 --- a/src/Calendar/wrapper/Calendar_directiveMigrationMap.json +++ b/src/Calendar/wrapper/Calendar_directiveMigrationMap.json @@ -5,6 +5,32 @@ "v1.0": "f8cbbb7420cd4c881bae4662fd0a3ff5bcc3182b", "beta": "a1b424a75a626b3a390e1993de3cda01264a3959" }, + "collisionReconciliation": { + "source": "tools/WrapperGenerator/data/collision-suppressions.v1.0.json", + "notes": "The first real full beta build exposed five collisions because existing derived collision data is v1.0-only. Reconcile its six exact suppressed routes in module configuration, rather than broadening the original operation-ID regex. The published MgCommandMetadata.json oracle contains no exact method/path row for any of these routes in either profile. Both profiles retain GET /groups/{group-id}/calendar/calendarView (Get-Mg[Beta]GroupCalendarView), GET /users/{user-id}/calendar/calendarView (Get-Mg[Beta]UserCalendarView), and POST /users/{user-id}/calendar/permanentDelete (Remove-Mg[Beta]UserCalendarPermanent). Neither profile publishes a user calendar event count route. The default-calendar permanentDelete beta verb/noun remains a pre-existing structural parity difference outside the shared rename directive; it is not suppressed. Regression coverage checks real spec IDs, oracle absence, existing derived provenance, exact suppression, retained neighbors and successful subset emission.", + "profiles": { + "v1.0": { + "operations": [ + { "method": "GET", "path": "/groups/{group-id}/calendarView", "operationId": "groups.ListCalendarView" }, + { "method": "GET", "path": "/users/{user-id}/calendarView", "operationId": "users.ListCalendarView" }, + { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/calendarView", "operationId": "users.calendars.ListCalendarView" }, + { "method": "GET", "path": "/users/{user-id}/calendar/events/$count", "operationId": "users.calendar.events.GetCount-1a22" }, + { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/$count", "operationId": "users.calendars.events.GetCount-efc7" }, + { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/permanentDelete", "operationId": "users.user.calendars.calendar.permanentDelete" } + ] + }, + "beta": { + "operations": [ + { "method": "GET", "path": "/groups/{group-id}/calendarView", "operationId": "groups.ListCalendarView" }, + { "method": "GET", "path": "/users/{user-id}/calendarView", "operationId": "users.ListCalendarView" }, + { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/calendarView", "operationId": "users.calendars.ListCalendarView" }, + { "method": "GET", "path": "/users/{user-id}/calendar/events/$count", "operationId": "users.calendar.events.GetCount-1a22" }, + { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/$count", "operationId": "users.calendars.events.GetCount-efc7" }, + { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/permanentDelete", "operationId": "users.user.calendars.calendar.permanentDelete" } + ] + } + } + }, "mappings": [ { "module": "Calendar", diff --git a/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs b/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs index 937f3b80d4c..f05e0becfb1 100644 --- a/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs +++ b/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs @@ -142,6 +142,49 @@ public void AbsentLegacyBranchesAreNotFabricatedOrBroadened(string profile) Assert.True(CmdletConfigurator.IsSuppressed(HttpMethod.Patch, "/users/{user-id}/calendar")); } + [Theory] + [InlineData("v1.0")] + [InlineData("beta")] + public void ExistingCollisionSuppressionsHaveExactSpecAndBothProfileOracleEvidence(string profile) + { + using var ledger = ReadLedger(); + var reconciliation = ledger.RootElement.GetProperty("collisionReconciliation"); + using var derived = JsonDocument.Parse(File.ReadAllText(Path.Combine(RepoRoot, + reconciliation.GetProperty("source").GetString()!.Replace('/', Path.DirectorySeparatorChar)))); + using var oracle = JsonDocument.Parse(File.ReadAllText(Path.Combine(RepoRoot, + "src", "Authentication", "Authentication", "custom", "common", "MgCommandMetadata.json"))); + var operations = reconciliation.GetProperty("profiles").GetProperty(profile).GetProperty("operations").EnumerateArray().ToArray(); + Assert.Equal(6, operations.Length); + foreach (var operation in operations) + { + var method = new HttpMethod(operation.GetProperty("method").GetString()!); + var path = operation.GetProperty("path").GetString()!; + var normalized = CmdletConfigurator.NormalizePathTemplate(path); + Assert.Equal(operation.GetProperty("operationId").GetString(), Spec(profile).Paths[path].Operations![method].OperationId); + Assert.Contains(derived.RootElement.EnumerateArray(), d => + d.GetProperty("method").GetString() == method.Method + && d.GetProperty("uri").GetString() == normalized + && d.GetProperty("action").GetString() == "suppress"); + Assert.DoesNotContain(oracle.RootElement.EnumerateArray(), row => + row.GetProperty("ApiVersion").GetString() == profile + && row.GetProperty("Method").GetString() == method.Method + && row.GetProperty("Uri").GetString() is { } uri + && CmdletConfigurator.NormalizePathTemplate(uri) == normalized); + Assert.True(CmdletConfigurator.IsSuppressed(method, path, new GeneratorConfig("Test.Client", "", profile))); + Assert.True(CmdletConfigurator.IsSuppressed(method, path)); + } + foreach (var path in new[] { "/groups/{group-id}/calendar/calendarView", "/users/{user-id}/calendar/calendarView" }) + { + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Get, path, new GeneratorConfig("Test.Client", "", profile))); + Assert.Contains(oracle.RootElement.EnumerateArray(), row => + row.GetProperty("ApiVersion").GetString() == profile + && row.GetProperty("Method").GetString() == "GET" + && row.GetProperty("Uri").GetString() == path); + } + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Post, "/users/{user-id}/calendar/permanentDelete", + new GeneratorConfig("Test.Client", "", profile))); + } + [Theory] [InlineData("v1.0")] [InlineData("beta")] @@ -167,6 +210,15 @@ public async Task TargetedGenerationUsesRealProfileOperationsAndPreservesNeighbo "/users/{user-id}/events/{event-id}/cancel", "/groups/{group-id}/calendar/events/{event-id}", "/groups/{group-id}/calendar/events/{event-id}/cancel", + "/groups/{group-id}/calendarView", + "/groups/{group-id}/calendar/calendarView", + "/users/{user-id}/calendarView", + "/users/{user-id}/calendar/calendarView", + "/users/{user-id}/calendars/{calendar-id}/calendarView", + "/users/{user-id}/calendar/events/$count", + "/users/{user-id}/calendars/{calendar-id}/events/$count", + "/users/{user-id}/calendars/{calendar-id}/permanentDelete", + "/users/{user-id}/calendar/permanentDelete", SharingPath, ]; foreach (var path in paths) @@ -186,6 +238,10 @@ public async Task TargetedGenerationUsesRealProfileOperationsAndPreservesNeighbo Assert.Contains("GetMgUserEventDelta.g.cs", files); Assert.Contains(profile == "v1.0" ? "StopMgUserEvent.g.cs" : "InvokeMgUserEventCancel.g.cs", files); Assert.Contains("GetMgGroupCalendarEvent.g.cs", files); + Assert.Contains("GetMgGroupCalendarView.g.cs", files); + Assert.Contains("GetMgUserCalendarView.g.cs", files); + Assert.Contains(profile == "v1.0" ? "RemoveMgUserCalendarPermanent.g.cs" : "InvokeMgUserCalendarPermanentDelete.g.cs", files); + Assert.DoesNotContain("GetMgUserCalendarEventCount.g.cs", files); Assert.DoesNotContain(files, f => f!.Contains("CalendarEventDelta", StringComparison.Ordinal)); Assert.DoesNotContain(files, f => f!.Contains("CalendarGetSchedule", StringComparison.Ordinal)); Assert.DoesNotContain(files, f => f!.Contains("CalendarEventCancel", StringComparison.Ordinal)); From f182d9fcc1a47f52bfee575a41e38eda1894bbb4 Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Wed, 21 Oct 2026 17:48:10 -0700 Subject: [PATCH 04/24] Regenerate Calendar v1.0 client and cmdlets Run full Kiota 1.36.1 generation and wrapper Release build against the v1.0 compatible spec with no skip flags. The rebuilt module imports 271 cmdlets and all reviewed suppression, rename, and neighboring route checks pass. Client and cmdlet source plus generated projects are unchanged after canonical checkout normalization; the client lock records the actual Kiota upgrade from 1.34.1 to 1.36.1. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- src/Calendar/wrapper/v1.0/Client/kiota-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Calendar/wrapper/v1.0/Client/kiota-lock.json b/src/Calendar/wrapper/v1.0/Client/kiota-lock.json index 9b827e8d7d9..d6e0a39b315 100644 --- a/src/Calendar/wrapper/v1.0/Client/kiota-lock.json +++ b/src/Calendar/wrapper/v1.0/Client/kiota-lock.json @@ -2,7 +2,7 @@ "descriptionHash": "F1B2B684A74FCC834C973FEED70BC00D5D9F17F7BFABC40F688CE6356D1A786253B08618B40BB55C22E5A6DBB0CC5BA7C15124F21CE375976254F6A91F53B6A9", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Calendar.yml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.34.1", + "kiotaVersion": "1.36.1", "clientClassName": "ApiClient", "typeAccessModifier": "Public", "clientNamespaceName": "Microsoft.Graph.PowerShell.Calendar.Client", From 98bd6976fc53be3ba289876b1e895d7c52374879 Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Wed, 21 Oct 2026 17:49:23 -0700 Subject: [PATCH 05/24] Generate Calendar beta client and cmdlets Run full Kiota 1.36.1 generation and wrapper Release build against the beta compatible spec with no skip flags. Create the previously absent beta client, cmdlets, generated projects and lock together. The compiled module imports 382 cmdlets, preserves required Invoke/default-calendar names and unaffected neighbors, and exports none of the reviewed suppression or reconciled collision routes. Preserve the actual Kiota-emitted source formatting. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- src/Calendar/wrapper/beta/Client/ApiClient.cs | 60 +++ .../wrapper/beta/Client/Client.csproj | 28 ++ .../Client/Groups/GroupsRequestBuilder.cs | 48 ++ ...CalendarSharingRolesWithUserGetResponse.cs | 57 +++ ...endarSharingRolesWithUserRequestBuilder.cs | 157 +++++++ ...wedCalendarSharingRolesWithUserResponse.cs | 28 ++ .../CalendarPermissionsRequestBuilder.cs | 238 ++++++++++ .../Count/CountRequestBuilder.cs | 124 ++++++ .../CalendarPermissionItemRequestBuilder.cs | 229 ++++++++++ .../Item/Calendar/CalendarRequestBuilder.cs | 164 +++++++ .../CalendarViewRequestBuilder.cs | 190 ++++++++ .../CalendarView/Delta/DeltaGetResponse.cs | 57 +++ .../CalendarView/Delta/DeltaRequestBuilder.cs | 209 +++++++++ .../CalendarView/Delta/DeltaResponse.cs | 28 ++ .../Events/Count/CountRequestBuilder.cs | 124 ++++++ .../Calendar/Events/Delta/DeltaGetResponse.cs | 57 +++ .../Events/Delta/DeltaRequestBuilder.cs | 209 +++++++++ .../Calendar/Events/Delta/DeltaResponse.cs | 28 ++ .../Calendar/Events/EventsRequestBuilder.cs | 244 +++++++++++ .../Item/Accept/AcceptPostRequestBody.cs | 70 +++ .../Item/Accept/AcceptRequestBuilder.cs | 102 +++++ .../Attachments/AttachmentsRequestBuilder.cs | 244 +++++++++++ .../Attachments/Count/CountRequestBuilder.cs | 124 ++++++ .../CreateUploadSessionPostRequestBody.cs | 66 +++ .../CreateUploadSessionRequestBuilder.cs | 104 +++++ .../Item/AttachmentItemRequestBuilder.cs | 174 ++++++++ .../Item/Calendar/CalendarRequestBuilder.cs | 125 ++++++ .../Item/Cancel/CancelPostRequestBody.cs | 65 +++ .../Item/Cancel/CancelRequestBuilder.cs | 102 +++++ .../Item/Decline/DeclinePostRequestBody.cs | 81 ++++ .../Item/Decline/DeclineRequestBuilder.cs | 102 +++++ .../DismissReminderRequestBuilder.cs | 97 +++++ .../Events/Item/EventItemRequestBuilder.cs | 301 +++++++++++++ .../Extensions/Count/CountRequestBuilder.cs | 124 ++++++ .../Extensions/ExtensionsRequestBuilder.cs | 238 ++++++++++ .../Item/ExtensionItemRequestBuilder.cs | 229 ++++++++++ .../Item/Forward/ForwardPostRequestBody.cs | 76 ++++ .../Item/Forward/ForwardRequestBuilder.cs | 102 +++++ .../Item/Instances/Delta/DeltaGetResponse.cs | 57 +++ .../Instances/Delta/DeltaRequestBuilder.cs | 209 +++++++++ .../Item/Instances/Delta/DeltaResponse.cs | 28 ++ .../Item/Instances/InstancesRequestBuilder.cs | 190 ++++++++ .../PermanentDeleteRequestBuilder.cs | 97 +++++ .../SnoozeReminderPostRequestBody.cs | 66 +++ .../SnoozeReminderRequestBuilder.cs | 102 +++++ .../TentativelyAcceptPostRequestBody.cs | 81 ++++ .../TentativelyAcceptRequestBuilder.cs | 102 +++++ .../GetSchedule/GetSchedulePostRequestBody.cs | 90 ++++ .../GetSchedule/GetSchedulePostResponse.cs | 57 +++ .../GetSchedule/GetScheduleRequestBuilder.cs | 130 ++++++ .../GetSchedule/GetScheduleResponse.cs | 28 ++ .../PermanentDeleteRequestBuilder.cs | 96 ++++ .../CalendarViewRequestBuilder.cs | 191 ++++++++ .../CalendarView/Delta/DeltaGetResponse.cs | 57 +++ .../CalendarView/Delta/DeltaRequestBuilder.cs | 209 +++++++++ .../Item/CalendarView/Delta/DeltaResponse.cs | 28 ++ .../Item/Events/Count/CountRequestBuilder.cs | 124 ++++++ .../Item/Events/Delta/DeltaGetResponse.cs | 57 +++ .../Item/Events/Delta/DeltaRequestBuilder.cs | 209 +++++++++ .../Groups/Item/Events/Delta/DeltaResponse.cs | 28 ++ .../Item/Events/EventsRequestBuilder.cs | 246 +++++++++++ .../Item/Accept/AcceptPostRequestBody.cs | 70 +++ .../Item/Accept/AcceptRequestBuilder.cs | 102 +++++ .../Attachments/AttachmentsRequestBuilder.cs | 244 +++++++++++ .../Attachments/Count/CountRequestBuilder.cs | 124 ++++++ .../CreateUploadSessionPostRequestBody.cs | 66 +++ .../CreateUploadSessionRequestBuilder.cs | 104 +++++ .../Item/AttachmentItemRequestBuilder.cs | 174 ++++++++ .../Item/Calendar/CalendarRequestBuilder.cs | 125 ++++++ .../Item/Cancel/CancelPostRequestBody.cs | 65 +++ .../Item/Cancel/CancelRequestBuilder.cs | 102 +++++ .../Item/Decline/DeclinePostRequestBody.cs | 81 ++++ .../Item/Decline/DeclineRequestBuilder.cs | 102 +++++ .../DismissReminderRequestBuilder.cs | 97 +++++ .../Events/Item/EventItemRequestBuilder.cs | 304 +++++++++++++ .../Extensions/Count/CountRequestBuilder.cs | 124 ++++++ .../Extensions/ExtensionsRequestBuilder.cs | 239 ++++++++++ .../Item/ExtensionItemRequestBuilder.cs | 230 ++++++++++ .../Item/Forward/ForwardPostRequestBody.cs | 76 ++++ .../Item/Forward/ForwardRequestBuilder.cs | 102 +++++ .../Item/Instances/Delta/DeltaGetResponse.cs | 57 +++ .../Instances/Delta/DeltaRequestBuilder.cs | 209 +++++++++ .../Item/Instances/Delta/DeltaResponse.cs | 28 ++ .../Item/Instances/InstancesRequestBuilder.cs | 190 ++++++++ .../PermanentDeleteRequestBuilder.cs | 97 +++++ .../SnoozeReminderPostRequestBody.cs | 66 +++ .../SnoozeReminderRequestBuilder.cs | 102 +++++ .../TentativelyAcceptPostRequestBody.cs | 81 ++++ .../TentativelyAcceptRequestBuilder.cs | 102 +++++ .../Groups/Item/GroupItemRequestBuilder.cs | 53 +++ .../wrapper/beta/Client/Models/Attachment.cs | 78 ++++ .../Models/AttachmentCollectionResponse.cs | 56 +++ .../beta/Client/Models/AttachmentItem.cs | 107 +++++ .../beta/Client/Models/AttachmentType.cs | 24 + .../wrapper/beta/Client/Models/Attendee.cs | 73 ++++ .../beta/Client/Models/AttendeeBase.cs | 62 +++ .../beta/Client/Models/AttendeeType.cs | 24 + .../BaseCollectionPaginationCountResponse.cs | 69 +++ .../Models/BaseDeltaFunctionResponse.cs | 75 ++++ .../beta/Client/Models/BaseMapFeature.cs | 66 +++ .../wrapper/beta/Client/Models/BodyType.cs | 20 + .../wrapper/beta/Client/Models/BookingType.cs | 24 + .../wrapper/beta/Client/Models/Building.cs | 81 ++++ .../Models/BuildingCollectionResponse.cs | 56 +++ .../wrapper/beta/Client/Models/BuildingMap.cs | 83 ++++ .../wrapper/beta/Client/Models/Calendar.cs | 196 +++++++++ .../Models/CalendarCollectionResponse.cs | 56 +++ .../beta/Client/Models/CalendarColor.cs | 56 +++ .../beta/Client/Models/CalendarGroup.cs | 80 ++++ .../Models/CalendarGroupCollectionResponse.cs | 56 +++ .../beta/Client/Models/CalendarPermission.cs | 78 ++++ .../CalendarPermissionCollectionResponse.cs | 56 +++ .../beta/Client/Models/CalendarRoleType.cs | 44 ++ .../beta/Client/Models/CheckInClaim.cs | 83 ++++ .../Models/CheckInClaimCollectionResponse.cs | 56 +++ .../beta/Client/Models/CheckInMethod.cs | 32 ++ .../beta/Client/Models/DateTimeTimeZone.cs | 85 ++++ .../beta/Client/Models/DayOfWeekObject.cs | 40 ++ .../wrapper/beta/Client/Models/Desk.cs | 97 +++++ .../Client/Models/DeskCollectionResponse.cs | 56 +++ .../wrapper/beta/Client/Models/Dictionary.cs | 70 +++ .../beta/Client/Models/EmailAddress.cs | 85 ++++ .../wrapper/beta/Client/Models/Entity.cs | 104 +++++ .../wrapper/beta/Client/Models/Event.cs | 411 ++++++++++++++++++ .../Client/Models/EventCollectionResponse.cs | 56 +++ .../wrapper/beta/Client/Models/EventType.cs | 28 ++ .../wrapper/beta/Client/Models/Extension.cs | 46 ++ .../Models/ExtensionCollectionResponse.cs | 56 +++ .../wrapper/beta/Client/Models/FixtureMap.cs | 63 +++ .../Models/FixtureMapCollectionResponse.cs | 56 +++ .../wrapper/beta/Client/Models/Floor.cs | 57 +++ .../Client/Models/FloorCollectionResponse.cs | 56 +++ .../beta/Client/Models/FootprintMap.cs | 53 +++ .../Models/FootprintMapCollectionResponse.cs | 56 +++ .../beta/Client/Models/FreeBusyError.cs | 85 ++++ .../beta/Client/Models/FreeBusyStatus.cs | 36 ++ .../wrapper/beta/Client/Models/Importance.cs | 24 + .../wrapper/beta/Client/Models/ItemBody.cs | 79 ++++ .../wrapper/beta/Client/Models/LevelMap.cs | 93 ++++ .../Models/LevelMapCollectionResponse.cs | 56 +++ .../wrapper/beta/Client/Models/Location.cs | 133 ++++++ .../beta/Client/Models/LocationType.cs | 52 +++ .../Client/Models/LocationUniqueIdType.cs | 32 ++ .../beta/Client/Models/MailboxDetails.cs | 85 ++++ .../MultiValueLegacyExtendedProperty.cs | 56 +++ .../Client/Models/ODataErrors/ErrorDetails.cs | 85 ++++ .../Client/Models/ODataErrors/InnerError.cs | 89 ++++ .../Client/Models/ODataErrors/MainError.cs | 105 +++++ .../Client/Models/ODataErrors/ODataError.cs | 68 +++ .../beta/Client/Models/OnlineMeetingInfo.cs | 125 ++++++ .../Models/OnlineMeetingProviderType.cs | 28 ++ .../Client/Models/OutlookGeoCoordinates.cs | 85 ++++ .../wrapper/beta/Client/Models/OutlookItem.cs | 79 ++++ .../beta/Client/Models/PatternedRecurrence.cs | 85 ++++ .../wrapper/beta/Client/Models/Phone.cs | 79 ++++ .../wrapper/beta/Client/Models/PhoneType.cs | 52 +++ .../beta/Client/Models/PhysicalAddress.cs | 129 ++++++ .../beta/Client/Models/PhysicalAddressType.cs | 28 ++ .../wrapper/beta/Client/Models/Place.cs | 174 ++++++++ .../Client/Models/PlaceCollectionResponse.cs | 56 +++ .../Client/Models/PlaceExecutionResult.cs | 95 ++++ .../Client/Models/PlaceFeatureEnablement.cs | 28 ++ .../wrapper/beta/Client/Models/PlaceMode.cs | 65 +++ .../beta/Client/Models/PlaceOperation.cs | 70 +++ .../Client/Models/PlaceOperationProgress.cs | 77 ++++ .../Client/Models/PlaceOperationStatus.cs | 40 ++ .../Client/Models/PlaceServicePlanInfo.cs | 75 ++++ .../wrapper/beta/Client/Models/PublicError.cs | 115 +++++ .../beta/Client/Models/PublicErrorDetail.cs | 95 ++++ .../beta/Client/Models/PublicInnerError.cs | 105 +++++ .../wrapper/beta/Client/Models/Recipient.cs | 81 ++++ .../beta/Client/Models/RecurrencePattern.cs | 99 +++++ .../Client/Models/RecurrencePatternType.cs | 36 ++ .../beta/Client/Models/RecurrenceRange.cs | 92 ++++ .../beta/Client/Models/RecurrenceRangeType.cs | 24 + .../beta/Client/Models/ResourceLink.cs | 89 ++++ .../beta/Client/Models/ResourceLinkType.cs | 20 + .../beta/Client/Models/ResponseStatus.cs | 73 ++++ .../beta/Client/Models/ResponseType.cs | 36 ++ .../wrapper/beta/Client/Models/Room.cs | 143 ++++++ .../Client/Models/RoomCollectionResponse.cs | 56 +++ .../wrapper/beta/Client/Models/RoomList.cs | 83 ++++ .../Models/RoomListCollectionResponse.cs | 56 +++ .../beta/Client/Models/ScheduleInformation.cs | 115 +++++ .../beta/Client/Models/ScheduleItem.cs | 113 +++++ .../wrapper/beta/Client/Models/Section.cs | 53 +++ .../Models/SectionCollectionResponse.cs | 56 +++ .../wrapper/beta/Client/Models/SectionMap.cs | 63 +++ .../Models/SectionMapCollectionResponse.cs | 56 +++ .../wrapper/beta/Client/Models/Sensitivity.cs | 28 ++ .../SingleValueLegacyExtendedProperty.cs | 56 +++ .../beta/Client/Models/StringDictionary.cs | 53 +++ .../wrapper/beta/Client/Models/TimeSlot.cs | 85 ++++ .../beta/Client/Models/TimeZoneBase.cs | 75 ++++ .../wrapper/beta/Client/Models/UnitMap.cs | 63 +++ .../Models/UnitMapCollectionResponse.cs | 56 +++ .../beta/Client/Models/UploadSession.cs | 89 ++++ .../wrapper/beta/Client/Models/WeekIndex.cs | 32 ++ .../beta/Client/Models/WorkingHours.cs | 94 ++++ .../wrapper/beta/Client/Models/Workspace.cs | 121 ++++++ .../Models/WorkspaceCollectionResponse.cs | 56 +++ .../Places/Count/CountRequestBuilder.cs | 124 ++++++ .../GetOperationWithIdRequestBuilder.cs | 99 +++++ .../Count/CountRequestBuilder.cs | 124 ++++++ .../GraphBuildingRequestBuilder.cs | 171 ++++++++ .../GraphDesk/Count/CountRequestBuilder.cs | 124 ++++++ .../GraphDesk/GraphDeskRequestBuilder.cs | 171 ++++++++ .../GraphFloor/Count/CountRequestBuilder.cs | 124 ++++++ .../GraphFloor/GraphFloorRequestBuilder.cs | 171 ++++++++ .../GraphRoom/Count/CountRequestBuilder.cs | 124 ++++++ .../GraphRoom/GraphRoomRequestBuilder.cs | 171 ++++++++ .../Count/CountRequestBuilder.cs | 124 ++++++ .../GraphRoomListRequestBuilder.cs | 171 ++++++++ .../GraphSection/Count/CountRequestBuilder.cs | 124 ++++++ .../GraphSectionRequestBuilder.cs | 171 ++++++++ .../Count/CountRequestBuilder.cs | 124 ++++++ .../GraphWorkspaceRequestBuilder.cs | 171 ++++++++ .../Item/CheckIns/CheckInsRequestBuilder.cs | 239 ++++++++++ .../CheckIns/Count/CountRequestBuilder.cs | 124 ++++++ ...kInClaimCalendarEventItemRequestBuilder.cs | 230 ++++++++++ .../Item/Children/ChildrenRequestBuilder.cs | 183 ++++++++ .../Children/Count/CountRequestBuilder.cs | 124 ++++++ .../Children/Item/PlaceItemRequestBuilder.cs | 125 ++++++ .../Descendants/DescendantsGetResponse.cs | 57 +++ .../Descendants/DescendantsRequestBuilder.cs | 187 ++++++++ .../Item/Descendants/DescendantsResponse.cs | 28 ++ .../CheckIns/CheckInsRequestBuilder.cs | 238 ++++++++++ .../CheckIns/Count/CountRequestBuilder.cs | 124 ++++++ ...kInClaimCalendarEventItemRequestBuilder.cs | 229 ++++++++++ .../Children/ChildrenRequestBuilder.cs | 183 ++++++++ .../Children/Count/CountRequestBuilder.cs | 124 ++++++ .../Children/Item/PlaceItemRequestBuilder.cs | 125 ++++++ .../GraphBuildingRequestBuilder.cs | 144 ++++++ .../Footprints/Count/CountRequestBuilder.cs | 124 ++++++ .../Footprints/FootprintsRequestBuilder.cs | 239 ++++++++++ .../Item/FootprintMapItemRequestBuilder.cs | 229 ++++++++++ .../Map/Levels/Count/CountRequestBuilder.cs | 124 ++++++ .../Fixtures/Count/CountRequestBuilder.cs | 124 ++++++ .../Item/Fixtures/FixturesRequestBuilder.cs | 239 ++++++++++ .../Item/FixtureMapItemRequestBuilder.cs | 231 ++++++++++ .../Levels/Item/LevelMapItemRequestBuilder.cs | 247 +++++++++++ .../Sections/Count/CountRequestBuilder.cs | 124 ++++++ .../Item/SectionMapItemRequestBuilder.cs | 229 ++++++++++ .../Item/Sections/SectionsRequestBuilder.cs | 239 ++++++++++ .../Item/Units/Count/CountRequestBuilder.cs | 124 ++++++ .../Units/Item/UnitMapItemRequestBuilder.cs | 231 ++++++++++ .../Levels/Item/Units/UnitsRequestBuilder.cs | 239 ++++++++++ .../Map/Levels/LevelsRequestBuilder.cs | 239 ++++++++++ .../GraphBuilding/Map/MapRequestBuilder.cs | 243 +++++++++++ .../CheckIns/CheckInsRequestBuilder.cs | 238 ++++++++++ .../CheckIns/Count/CountRequestBuilder.cs | 124 ++++++ ...kInClaimCalendarEventItemRequestBuilder.cs | 229 ++++++++++ .../Children/ChildrenRequestBuilder.cs | 183 ++++++++ .../Children/Count/CountRequestBuilder.cs | 124 ++++++ .../Children/Item/PlaceItemRequestBuilder.cs | 125 ++++++ .../Item/GraphDesk/GraphDeskRequestBuilder.cs | 138 ++++++ .../CheckIns/CheckInsRequestBuilder.cs | 238 ++++++++++ .../CheckIns/Count/CountRequestBuilder.cs | 124 ++++++ ...kInClaimCalendarEventItemRequestBuilder.cs | 229 ++++++++++ .../Children/ChildrenRequestBuilder.cs | 183 ++++++++ .../Children/Count/CountRequestBuilder.cs | 124 ++++++ .../Children/Item/PlaceItemRequestBuilder.cs | 125 ++++++ .../GraphFloor/GraphFloorRequestBuilder.cs | 138 ++++++ .../CheckIns/CheckInsRequestBuilder.cs | 238 ++++++++++ .../CheckIns/Count/CountRequestBuilder.cs | 124 ++++++ ...kInClaimCalendarEventItemRequestBuilder.cs | 229 ++++++++++ .../Children/ChildrenRequestBuilder.cs | 183 ++++++++ .../Children/Count/CountRequestBuilder.cs | 124 ++++++ .../Children/Item/PlaceItemRequestBuilder.cs | 125 ++++++ .../Item/GraphRoom/GraphRoomRequestBuilder.cs | 138 ++++++ .../CheckIns/CheckInsRequestBuilder.cs | 238 ++++++++++ .../CheckIns/Count/CountRequestBuilder.cs | 124 ++++++ ...kInClaimCalendarEventItemRequestBuilder.cs | 229 ++++++++++ .../Children/ChildrenRequestBuilder.cs | 183 ++++++++ .../Children/Count/CountRequestBuilder.cs | 124 ++++++ .../Children/Item/PlaceItemRequestBuilder.cs | 125 ++++++ .../GraphRoomListRequestBuilder.cs | 150 +++++++ .../Rooms/Count/CountRequestBuilder.cs | 124 ++++++ .../Item/CheckIns/CheckInsRequestBuilder.cs | 238 ++++++++++ .../CheckIns/Count/CountRequestBuilder.cs | 124 ++++++ ...kInClaimCalendarEventItemRequestBuilder.cs | 229 ++++++++++ .../Item/Children/ChildrenRequestBuilder.cs | 183 ++++++++ .../Children/Count/CountRequestBuilder.cs | 124 ++++++ .../Children/Item/PlaceItemRequestBuilder.cs | 125 ++++++ .../Rooms/Item/RoomItemRequestBuilder.cs | 241 ++++++++++ .../Rooms/RoomsRequestBuilder.cs | 238 ++++++++++ .../Workspaces/Count/CountRequestBuilder.cs | 124 ++++++ .../Item/CheckIns/CheckInsRequestBuilder.cs | 238 ++++++++++ .../CheckIns/Count/CountRequestBuilder.cs | 124 ++++++ ...kInClaimCalendarEventItemRequestBuilder.cs | 229 ++++++++++ .../Item/Children/ChildrenRequestBuilder.cs | 183 ++++++++ .../Children/Count/CountRequestBuilder.cs | 124 ++++++ .../Children/Item/PlaceItemRequestBuilder.cs | 125 ++++++ .../Item/WorkspaceItemRequestBuilder.cs | 241 ++++++++++ .../Workspaces/WorkspacesRequestBuilder.cs | 238 ++++++++++ .../CheckIns/CheckInsRequestBuilder.cs | 238 ++++++++++ .../CheckIns/Count/CountRequestBuilder.cs | 124 ++++++ ...kInClaimCalendarEventItemRequestBuilder.cs | 229 ++++++++++ .../Children/ChildrenRequestBuilder.cs | 183 ++++++++ .../Children/Count/CountRequestBuilder.cs | 124 ++++++ .../Children/Item/PlaceItemRequestBuilder.cs | 125 ++++++ .../GraphSectionRequestBuilder.cs | 138 ++++++ .../CheckIns/CheckInsRequestBuilder.cs | 238 ++++++++++ .../CheckIns/Count/CountRequestBuilder.cs | 124 ++++++ ...kInClaimCalendarEventItemRequestBuilder.cs | 229 ++++++++++ .../Children/ChildrenRequestBuilder.cs | 183 ++++++++ .../Children/Count/CountRequestBuilder.cs | 124 ++++++ .../Children/Item/PlaceItemRequestBuilder.cs | 125 ++++++ .../GraphWorkspaceRequestBuilder.cs | 138 ++++++ .../Places/Item/PlaceItemRequestBuilder.cs | 214 +++++++++ .../ListOperationsGetResponse.cs | 57 +++ .../ListOperationsRequestBuilder.cs | 189 ++++++++ .../ListOperations/ListOperationsResponse.cs | 28 ++ .../Client/Places/PlacesRequestBuilder.cs | 180 ++++++++ ...CalendarSharingRolesWithUserGetResponse.cs | 57 +++ ...endarSharingRolesWithUserRequestBuilder.cs | 157 +++++++ ...wedCalendarSharingRolesWithUserResponse.cs | 28 ++ .../CalendarPermissionsRequestBuilder.cs | 239 ++++++++++ .../Count/CountRequestBuilder.cs | 124 ++++++ .../CalendarPermissionItemRequestBuilder.cs | 232 ++++++++++ .../Item/Calendar/CalendarRequestBuilder.cs | 219 ++++++++++ .../CalendarViewRequestBuilder.cs | 190 ++++++++ .../CalendarView/Delta/DeltaGetResponse.cs | 57 +++ .../CalendarView/Delta/DeltaRequestBuilder.cs | 209 +++++++++ .../CalendarView/Delta/DeltaResponse.cs | 28 ++ .../Events/Count/CountRequestBuilder.cs | 124 ++++++ .../Calendar/Events/Delta/DeltaGetResponse.cs | 57 +++ .../Events/Delta/DeltaRequestBuilder.cs | 209 +++++++++ .../Calendar/Events/Delta/DeltaResponse.cs | 28 ++ .../Calendar/Events/EventsRequestBuilder.cs | 244 +++++++++++ .../Item/Accept/AcceptPostRequestBody.cs | 70 +++ .../Item/Accept/AcceptRequestBuilder.cs | 102 +++++ .../Attachments/AttachmentsRequestBuilder.cs | 244 +++++++++++ .../Attachments/Count/CountRequestBuilder.cs | 124 ++++++ .../CreateUploadSessionPostRequestBody.cs | 66 +++ .../CreateUploadSessionRequestBuilder.cs | 104 +++++ .../Item/AttachmentItemRequestBuilder.cs | 174 ++++++++ .../Item/Calendar/CalendarRequestBuilder.cs | 125 ++++++ .../Item/Cancel/CancelPostRequestBody.cs | 65 +++ .../Item/Cancel/CancelRequestBuilder.cs | 102 +++++ .../Item/Decline/DeclinePostRequestBody.cs | 81 ++++ .../Item/Decline/DeclineRequestBuilder.cs | 102 +++++ .../DismissReminderRequestBuilder.cs | 97 +++++ .../Events/Item/EventItemRequestBuilder.cs | 301 +++++++++++++ .../Extensions/Count/CountRequestBuilder.cs | 124 ++++++ .../Extensions/ExtensionsRequestBuilder.cs | 238 ++++++++++ .../Item/ExtensionItemRequestBuilder.cs | 229 ++++++++++ .../Item/Forward/ForwardPostRequestBody.cs | 76 ++++ .../Item/Forward/ForwardRequestBuilder.cs | 102 +++++ .../Item/Instances/Delta/DeltaGetResponse.cs | 57 +++ .../Instances/Delta/DeltaRequestBuilder.cs | 209 +++++++++ .../Item/Instances/Delta/DeltaResponse.cs | 28 ++ .../Item/Instances/InstancesRequestBuilder.cs | 190 ++++++++ .../PermanentDeleteRequestBuilder.cs | 97 +++++ .../SnoozeReminderPostRequestBody.cs | 66 +++ .../SnoozeReminderRequestBuilder.cs | 102 +++++ .../TentativelyAcceptPostRequestBody.cs | 81 ++++ .../TentativelyAcceptRequestBuilder.cs | 102 +++++ .../GetSchedule/GetSchedulePostRequestBody.cs | 90 ++++ .../GetSchedule/GetSchedulePostResponse.cs | 57 +++ .../GetSchedule/GetScheduleRequestBuilder.cs | 130 ++++++ .../GetSchedule/GetScheduleResponse.cs | 28 ++ .../PermanentDeleteRequestBuilder.cs | 96 ++++ .../CalendarGroupsRequestBuilder.cs | 238 ++++++++++ .../Count/CountRequestBuilder.cs | 124 ++++++ .../Item/CalendarGroupItemRequestBuilder.cs | 235 ++++++++++ .../Item/Calendars/CalendarsRequestBuilder.cs | 244 +++++++++++ .../Calendars/Count/CountRequestBuilder.cs | 124 ++++++ .../Item/Calendars/Delta/DeltaGetResponse.cs | 57 +++ .../Calendars/Delta/DeltaRequestBuilder.cs | 189 ++++++++ .../Item/Calendars/Delta/DeltaResponse.cs | 28 ++ ...CalendarSharingRolesWithUserGetResponse.cs | 57 +++ ...endarSharingRolesWithUserRequestBuilder.cs | 157 +++++++ ...wedCalendarSharingRolesWithUserResponse.cs | 28 ++ .../Item/CalendarItemRequestBuilder.cs | 268 ++++++++++++ .../CalendarPermissionsRequestBuilder.cs | 238 ++++++++++ .../Count/CountRequestBuilder.cs | 124 ++++++ .../CalendarPermissionItemRequestBuilder.cs | 229 ++++++++++ .../CalendarViewRequestBuilder.cs | 190 ++++++++ .../CalendarView/Delta/DeltaGetResponse.cs | 57 +++ .../CalendarView/Delta/DeltaRequestBuilder.cs | 209 +++++++++ .../Item/CalendarView/Delta/DeltaResponse.cs | 28 ++ .../Item/Events/Count/CountRequestBuilder.cs | 124 ++++++ .../Item/Events/Delta/DeltaGetResponse.cs | 57 +++ .../Item/Events/Delta/DeltaRequestBuilder.cs | 209 +++++++++ .../Item/Events/Delta/DeltaResponse.cs | 28 ++ .../Item/Events/EventsRequestBuilder.cs | 244 +++++++++++ .../Item/Accept/AcceptPostRequestBody.cs | 70 +++ .../Item/Accept/AcceptRequestBuilder.cs | 102 +++++ .../Attachments/AttachmentsRequestBuilder.cs | 244 +++++++++++ .../Attachments/Count/CountRequestBuilder.cs | 124 ++++++ .../CreateUploadSessionPostRequestBody.cs | 66 +++ .../CreateUploadSessionRequestBuilder.cs | 104 +++++ .../Item/AttachmentItemRequestBuilder.cs | 174 ++++++++ .../Item/Calendar/CalendarRequestBuilder.cs | 125 ++++++ .../Item/Cancel/CancelPostRequestBody.cs | 65 +++ .../Item/Cancel/CancelRequestBuilder.cs | 102 +++++ .../Item/Decline/DeclinePostRequestBody.cs | 81 ++++ .../Item/Decline/DeclineRequestBuilder.cs | 102 +++++ .../DismissReminderRequestBuilder.cs | 97 +++++ .../Events/Item/EventItemRequestBuilder.cs | 301 +++++++++++++ .../Extensions/Count/CountRequestBuilder.cs | 124 ++++++ .../Extensions/ExtensionsRequestBuilder.cs | 238 ++++++++++ .../Item/ExtensionItemRequestBuilder.cs | 229 ++++++++++ .../Item/Forward/ForwardPostRequestBody.cs | 76 ++++ .../Item/Forward/ForwardRequestBuilder.cs | 102 +++++ .../Item/Instances/Delta/DeltaGetResponse.cs | 57 +++ .../Instances/Delta/DeltaRequestBuilder.cs | 209 +++++++++ .../Item/Instances/Delta/DeltaResponse.cs | 28 ++ .../Item/Instances/InstancesRequestBuilder.cs | 190 ++++++++ .../PermanentDeleteRequestBuilder.cs | 97 +++++ .../SnoozeReminderPostRequestBody.cs | 66 +++ .../SnoozeReminderRequestBuilder.cs | 102 +++++ .../TentativelyAcceptPostRequestBody.cs | 81 ++++ .../TentativelyAcceptRequestBuilder.cs | 102 +++++ .../GetSchedule/GetSchedulePostRequestBody.cs | 90 ++++ .../GetSchedule/GetSchedulePostResponse.cs | 57 +++ .../GetSchedule/GetScheduleRequestBuilder.cs | 130 ++++++ .../Item/GetSchedule/GetScheduleResponse.cs | 28 ++ .../PermanentDeleteRequestBuilder.cs | 96 ++++ .../CalendarViewRequestBuilder.cs | 190 ++++++++ .../CalendarView/Delta/DeltaGetResponse.cs | 57 +++ .../CalendarView/Delta/DeltaRequestBuilder.cs | 209 +++++++++ .../Item/CalendarView/Delta/DeltaResponse.cs | 28 ++ .../Item/Calendars/CalendarsRequestBuilder.cs | 244 +++++++++++ .../Calendars/Count/CountRequestBuilder.cs | 124 ++++++ .../Item/Calendars/Delta/DeltaGetResponse.cs | 57 +++ .../Calendars/Delta/DeltaRequestBuilder.cs | 189 ++++++++ .../Item/Calendars/Delta/DeltaResponse.cs | 28 ++ ...CalendarSharingRolesWithUserGetResponse.cs | 57 +++ ...endarSharingRolesWithUserRequestBuilder.cs | 157 +++++++ ...wedCalendarSharingRolesWithUserResponse.cs | 28 ++ .../Item/CalendarItemRequestBuilder.cs | 268 ++++++++++++ .../CalendarPermissionsRequestBuilder.cs | 238 ++++++++++ .../Count/CountRequestBuilder.cs | 124 ++++++ .../CalendarPermissionItemRequestBuilder.cs | 229 ++++++++++ .../CalendarViewRequestBuilder.cs | 190 ++++++++ .../CalendarView/Delta/DeltaGetResponse.cs | 57 +++ .../CalendarView/Delta/DeltaRequestBuilder.cs | 209 +++++++++ .../Item/CalendarView/Delta/DeltaResponse.cs | 28 ++ .../Item/Events/Count/CountRequestBuilder.cs | 124 ++++++ .../Item/Events/Delta/DeltaGetResponse.cs | 57 +++ .../Item/Events/Delta/DeltaRequestBuilder.cs | 209 +++++++++ .../Item/Events/Delta/DeltaResponse.cs | 28 ++ .../Item/Events/EventsRequestBuilder.cs | 244 +++++++++++ .../Item/Accept/AcceptPostRequestBody.cs | 70 +++ .../Item/Accept/AcceptRequestBuilder.cs | 102 +++++ .../Attachments/AttachmentsRequestBuilder.cs | 244 +++++++++++ .../Attachments/Count/CountRequestBuilder.cs | 124 ++++++ .../CreateUploadSessionPostRequestBody.cs | 66 +++ .../CreateUploadSessionRequestBuilder.cs | 104 +++++ .../Item/AttachmentItemRequestBuilder.cs | 174 ++++++++ .../Item/Calendar/CalendarRequestBuilder.cs | 125 ++++++ .../Item/Cancel/CancelPostRequestBody.cs | 65 +++ .../Item/Cancel/CancelRequestBuilder.cs | 102 +++++ .../Item/Decline/DeclinePostRequestBody.cs | 81 ++++ .../Item/Decline/DeclineRequestBuilder.cs | 102 +++++ .../DismissReminderRequestBuilder.cs | 97 +++++ .../Events/Item/EventItemRequestBuilder.cs | 301 +++++++++++++ .../Extensions/Count/CountRequestBuilder.cs | 124 ++++++ .../Extensions/ExtensionsRequestBuilder.cs | 238 ++++++++++ .../Item/ExtensionItemRequestBuilder.cs | 229 ++++++++++ .../Item/Forward/ForwardPostRequestBody.cs | 76 ++++ .../Item/Forward/ForwardRequestBuilder.cs | 102 +++++ .../Item/Instances/Delta/DeltaGetResponse.cs | 57 +++ .../Instances/Delta/DeltaRequestBuilder.cs | 209 +++++++++ .../Item/Instances/Delta/DeltaResponse.cs | 28 ++ .../Item/Instances/InstancesRequestBuilder.cs | 190 ++++++++ .../PermanentDeleteRequestBuilder.cs | 97 +++++ .../SnoozeReminderPostRequestBody.cs | 66 +++ .../SnoozeReminderRequestBuilder.cs | 102 +++++ .../TentativelyAcceptPostRequestBody.cs | 81 ++++ .../TentativelyAcceptRequestBuilder.cs | 102 +++++ .../GetSchedule/GetSchedulePostRequestBody.cs | 90 ++++ .../GetSchedule/GetSchedulePostResponse.cs | 57 +++ .../GetSchedule/GetScheduleRequestBuilder.cs | 130 ++++++ .../Item/GetSchedule/GetScheduleResponse.cs | 28 ++ .../PermanentDeleteRequestBuilder.cs | 96 ++++ .../Item/Events/Count/CountRequestBuilder.cs | 124 ++++++ .../Item/Events/Delta/DeltaGetResponse.cs | 57 +++ .../Item/Events/Delta/DeltaRequestBuilder.cs | 209 +++++++++ .../Users/Item/Events/Delta/DeltaResponse.cs | 28 ++ .../Users/Item/Events/EventsRequestBuilder.cs | 244 +++++++++++ .../Item/Accept/AcceptPostRequestBody.cs | 70 +++ .../Item/Accept/AcceptRequestBuilder.cs | 102 +++++ .../Attachments/AttachmentsRequestBuilder.cs | 244 +++++++++++ .../Attachments/Count/CountRequestBuilder.cs | 124 ++++++ .../CreateUploadSessionPostRequestBody.cs | 66 +++ .../CreateUploadSessionRequestBuilder.cs | 104 +++++ .../Item/AttachmentItemRequestBuilder.cs | 174 ++++++++ .../Item/Calendar/CalendarRequestBuilder.cs | 125 ++++++ .../Item/Cancel/CancelPostRequestBody.cs | 65 +++ .../Item/Cancel/CancelRequestBuilder.cs | 102 +++++ .../Item/Decline/DeclinePostRequestBody.cs | 81 ++++ .../Item/Decline/DeclineRequestBuilder.cs | 102 +++++ .../DismissReminderRequestBuilder.cs | 97 +++++ .../Events/Item/EventItemRequestBuilder.cs | 301 +++++++++++++ .../Extensions/Count/CountRequestBuilder.cs | 124 ++++++ .../Extensions/ExtensionsRequestBuilder.cs | 238 ++++++++++ .../Item/ExtensionItemRequestBuilder.cs | 229 ++++++++++ .../Item/Forward/ForwardPostRequestBody.cs | 76 ++++ .../Item/Forward/ForwardRequestBuilder.cs | 102 +++++ .../Item/Instances/Delta/DeltaGetResponse.cs | 57 +++ .../Instances/Delta/DeltaRequestBuilder.cs | 209 +++++++++ .../Item/Instances/Delta/DeltaResponse.cs | 28 ++ .../Item/Instances/InstancesRequestBuilder.cs | 190 ++++++++ .../PermanentDeleteRequestBuilder.cs | 97 +++++ .../SnoozeReminderPostRequestBody.cs | 66 +++ .../SnoozeReminderRequestBuilder.cs | 102 +++++ .../TentativelyAcceptPostRequestBody.cs | 81 ++++ .../TentativelyAcceptRequestBuilder.cs | 102 +++++ .../Users/Item/UserItemRequestBuilder.cs | 65 +++ .../beta/Client/Users/UsersRequestBuilder.cs | 48 ++ .../wrapper/beta/Client/kiota-lock.json | 35 ++ .../beta/Cmdlets/GetMgGroupCalendar.g.cs | 65 +++ ...arAllowedCalendarSharingRolesWithUser.g.cs | 94 ++++ .../beta/Cmdlets/GetMgGroupCalendarEvent.g.cs | 93 ++++ .../GetMgGroupCalendarEventAttachment.g.cs | 95 ++++ ...etMgGroupCalendarEventAttachmentCount.g.cs | 64 +++ ...GetMgGroupCalendarEventAttachment_Get.g.cs | 69 +++ ...etMgGroupCalendarEventAttachment_List.g.cs | 144 ++++++ .../GetMgGroupCalendarEventCalendar.g.cs | 67 +++ .../Cmdlets/GetMgGroupCalendarEventCount.g.cs | 62 +++ .../GetMgGroupCalendarEventExtension.g.cs | 95 ++++ ...GetMgGroupCalendarEventExtensionCount.g.cs | 64 +++ .../GetMgGroupCalendarEventExtension_Get.g.cs | 69 +++ ...GetMgGroupCalendarEventExtension_List.g.cs | 144 ++++++ .../GetMgGroupCalendarEventInstance.g.cs | 144 ++++++ .../Cmdlets/GetMgGroupCalendarEvent_Get.g.cs | 67 +++ .../Cmdlets/GetMgGroupCalendarEvent_List.g.cs | 142 ++++++ .../Cmdlets/GetMgGroupCalendarPermission.g.cs | 93 ++++ .../GetMgGroupCalendarPermissionCount.g.cs | 62 +++ .../GetMgGroupCalendarPermission_Get.g.cs | 67 +++ .../GetMgGroupCalendarPermission_List.g.cs | 142 ++++++ .../beta/Cmdlets/GetMgGroupCalendarView.g.cs | 142 ++++++ .../wrapper/beta/Cmdlets/GetMgGroupEvent.g.cs | 93 ++++ .../Cmdlets/GetMgGroupEventAttachment.g.cs | 95 ++++ .../GetMgGroupEventAttachmentCount.g.cs | 64 +++ .../GetMgGroupEventAttachment_Get.g.cs | 69 +++ .../GetMgGroupEventAttachment_List.g.cs | 144 ++++++ .../beta/Cmdlets/GetMgGroupEventCalendar.g.cs | 67 +++ .../beta/Cmdlets/GetMgGroupEventCount.g.cs | 62 +++ .../beta/Cmdlets/GetMgGroupEventDelta.g.cs | 177 ++++++++ .../Cmdlets/GetMgGroupEventExtension.g.cs | 95 ++++ .../GetMgGroupEventExtensionCount.g.cs | 64 +++ .../Cmdlets/GetMgGroupEventExtension_Get.g.cs | 69 +++ .../GetMgGroupEventExtension_List.g.cs | 144 ++++++ .../beta/Cmdlets/GetMgGroupEventInstance.g.cs | 144 ++++++ .../Cmdlets/GetMgGroupEventInstanceDelta.g.cs | 179 ++++++++ .../beta/Cmdlets/GetMgGroupEvent_Get.g.cs | 67 +++ .../beta/Cmdlets/GetMgGroupEvent_List.g.cs | 142 ++++++ .../beta/Cmdlets/GetMgPlaceAsBuilding.g.cs | 91 ++++ .../Cmdlets/GetMgPlaceAsBuildingCheckIn.g.cs | 93 ++++ .../GetMgPlaceAsBuildingCheckInCount.g.cs | 62 +++ .../GetMgPlaceAsBuildingCheckIn_Get.g.cs | 67 +++ .../GetMgPlaceAsBuildingCheckIn_List.g.cs | 142 ++++++ .../Cmdlets/GetMgPlaceAsBuildingChild.g.cs | 93 ++++ .../GetMgPlaceAsBuildingChildCount.g.cs | 62 +++ .../GetMgPlaceAsBuildingChild_Get.g.cs | 67 +++ .../GetMgPlaceAsBuildingChild_List.g.cs | 142 ++++++ .../beta/Cmdlets/GetMgPlaceAsBuildingMap.g.cs | 65 +++ .../GetMgPlaceAsBuildingMapFootprint.g.cs | 93 ++++ ...GetMgPlaceAsBuildingMapFootprintCount.g.cs | 62 +++ .../GetMgPlaceAsBuildingMapFootprint_Get.g.cs | 67 +++ ...GetMgPlaceAsBuildingMapFootprint_List.g.cs | 142 ++++++ .../Cmdlets/GetMgPlaceAsBuildingMapLevel.g.cs | 93 ++++ .../GetMgPlaceAsBuildingMapLevelCount.g.cs | 62 +++ .../GetMgPlaceAsBuildingMapLevelFixture.g.cs | 95 ++++ ...MgPlaceAsBuildingMapLevelFixtureCount.g.cs | 64 +++ ...tMgPlaceAsBuildingMapLevelFixture_Get.g.cs | 69 +++ ...MgPlaceAsBuildingMapLevelFixture_List.g.cs | 144 ++++++ .../GetMgPlaceAsBuildingMapLevelSection.g.cs | 95 ++++ ...MgPlaceAsBuildingMapLevelSectionCount.g.cs | 64 +++ ...tMgPlaceAsBuildingMapLevelSection_Get.g.cs | 69 +++ ...MgPlaceAsBuildingMapLevelSection_List.g.cs | 144 ++++++ .../GetMgPlaceAsBuildingMapLevelUnit.g.cs | 95 ++++ ...GetMgPlaceAsBuildingMapLevelUnitCount.g.cs | 64 +++ .../GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs | 69 +++ ...GetMgPlaceAsBuildingMapLevelUnit_List.g.cs | 144 ++++++ .../GetMgPlaceAsBuildingMapLevel_Get.g.cs | 67 +++ .../GetMgPlaceAsBuildingMapLevel_List.g.cs | 142 ++++++ .../Cmdlets/GetMgPlaceAsBuilding_Get.g.cs | 65 +++ .../Cmdlets/GetMgPlaceAsBuilding_List.g.cs | 141 ++++++ .../beta/Cmdlets/GetMgPlaceAsDesk.g.cs | 91 ++++ .../beta/Cmdlets/GetMgPlaceAsDeskCheckIn.g.cs | 93 ++++ .../Cmdlets/GetMgPlaceAsDeskCheckInCount.g.cs | 62 +++ .../Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs | 67 +++ .../Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs | 142 ++++++ .../beta/Cmdlets/GetMgPlaceAsDeskChild.g.cs | 93 ++++ .../Cmdlets/GetMgPlaceAsDeskChildCount.g.cs | 62 +++ .../Cmdlets/GetMgPlaceAsDeskChild_Get.g.cs | 67 +++ .../Cmdlets/GetMgPlaceAsDeskChild_List.g.cs | 142 ++++++ .../beta/Cmdlets/GetMgPlaceAsDesk_Get.g.cs | 65 +++ .../beta/Cmdlets/GetMgPlaceAsDesk_List.g.cs | 141 ++++++ .../beta/Cmdlets/GetMgPlaceAsFloor.g.cs | 91 ++++ .../Cmdlets/GetMgPlaceAsFloorCheckIn.g.cs | 93 ++++ .../GetMgPlaceAsFloorCheckInCount.g.cs | 62 +++ .../Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs | 67 +++ .../GetMgPlaceAsFloorCheckIn_List.g.cs | 142 ++++++ .../beta/Cmdlets/GetMgPlaceAsFloorChild.g.cs | 93 ++++ .../Cmdlets/GetMgPlaceAsFloorChildCount.g.cs | 62 +++ .../Cmdlets/GetMgPlaceAsFloorChild_Get.g.cs | 67 +++ .../Cmdlets/GetMgPlaceAsFloorChild_List.g.cs | 142 ++++++ .../beta/Cmdlets/GetMgPlaceAsFloor_Get.g.cs | 65 +++ .../beta/Cmdlets/GetMgPlaceAsFloor_List.g.cs | 141 ++++++ .../beta/Cmdlets/GetMgPlaceAsRoom.g.cs | 91 ++++ .../beta/Cmdlets/GetMgPlaceAsRoomCheckIn.g.cs | 93 ++++ .../Cmdlets/GetMgPlaceAsRoomCheckInCount.g.cs | 62 +++ .../Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs | 67 +++ .../Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs | 142 ++++++ .../beta/Cmdlets/GetMgPlaceAsRoomChild.g.cs | 93 ++++ .../Cmdlets/GetMgPlaceAsRoomChildCount.g.cs | 62 +++ .../Cmdlets/GetMgPlaceAsRoomChild_Get.g.cs | 67 +++ .../Cmdlets/GetMgPlaceAsRoomChild_List.g.cs | 142 ++++++ .../beta/Cmdlets/GetMgPlaceAsRoomList.g.cs | 91 ++++ .../Cmdlets/GetMgPlaceAsRoomListCheckIn.g.cs | 93 ++++ .../GetMgPlaceAsRoomListCheckInCount.g.cs | 62 +++ .../GetMgPlaceAsRoomListCheckIn_Get.g.cs | 67 +++ .../GetMgPlaceAsRoomListCheckIn_List.g.cs | 142 ++++++ .../Cmdlets/GetMgPlaceAsRoomListChild.g.cs | 93 ++++ .../GetMgPlaceAsRoomListChildCount.g.cs | 62 +++ .../GetMgPlaceAsRoomListChild_Get.g.cs | 67 +++ .../GetMgPlaceAsRoomListChild_List.g.cs | 142 ++++++ .../Cmdlets/GetMgPlaceAsRoomListRoom.g.cs | 93 ++++ .../GetMgPlaceAsRoomListRoomCheckIn.g.cs | 95 ++++ .../GetMgPlaceAsRoomListRoomCheckInCount.g.cs | 64 +++ .../GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs | 69 +++ .../GetMgPlaceAsRoomListRoomCheckIn_List.g.cs | 144 ++++++ .../GetMgPlaceAsRoomListRoomChild.g.cs | 95 ++++ .../GetMgPlaceAsRoomListRoomChildCount.g.cs | 64 +++ .../GetMgPlaceAsRoomListRoomChild_Get.g.cs | 69 +++ .../GetMgPlaceAsRoomListRoomChild_List.g.cs | 144 ++++++ .../GetMgPlaceAsRoomListRoomCount.g.cs | 62 +++ .../Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs | 67 +++ .../GetMgPlaceAsRoomListRoom_List.g.cs | 142 ++++++ .../GetMgPlaceAsRoomListWorkspace.g.cs | 93 ++++ .../GetMgPlaceAsRoomListWorkspaceCheckIn.g.cs | 95 ++++ ...gPlaceAsRoomListWorkspaceCheckInCount.g.cs | 64 +++ ...MgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs | 69 +++ ...gPlaceAsRoomListWorkspaceCheckIn_List.g.cs | 144 ++++++ .../GetMgPlaceAsRoomListWorkspaceChild.g.cs | 95 ++++ ...tMgPlaceAsRoomListWorkspaceChildCount.g.cs | 64 +++ ...etMgPlaceAsRoomListWorkspaceChild_Get.g.cs | 69 +++ ...tMgPlaceAsRoomListWorkspaceChild_List.g.cs | 144 ++++++ .../GetMgPlaceAsRoomListWorkspaceCount.g.cs | 62 +++ .../GetMgPlaceAsRoomListWorkspace_Get.g.cs | 67 +++ .../GetMgPlaceAsRoomListWorkspace_List.g.cs | 142 ++++++ .../Cmdlets/GetMgPlaceAsRoomList_Get.g.cs | 65 +++ .../Cmdlets/GetMgPlaceAsRoomList_List.g.cs | 141 ++++++ .../beta/Cmdlets/GetMgPlaceAsRoom_Get.g.cs | 65 +++ .../beta/Cmdlets/GetMgPlaceAsRoom_List.g.cs | 141 ++++++ .../beta/Cmdlets/GetMgPlaceAsSection.g.cs | 91 ++++ .../Cmdlets/GetMgPlaceAsSectionCheckIn.g.cs | 93 ++++ .../GetMgPlaceAsSectionCheckInCount.g.cs | 62 +++ .../GetMgPlaceAsSectionCheckIn_Get.g.cs | 67 +++ .../GetMgPlaceAsSectionCheckIn_List.g.cs | 142 ++++++ .../Cmdlets/GetMgPlaceAsSectionChild.g.cs | 93 ++++ .../GetMgPlaceAsSectionChildCount.g.cs | 62 +++ .../Cmdlets/GetMgPlaceAsSectionChild_Get.g.cs | 67 +++ .../GetMgPlaceAsSectionChild_List.g.cs | 142 ++++++ .../beta/Cmdlets/GetMgPlaceAsSection_Get.g.cs | 65 +++ .../Cmdlets/GetMgPlaceAsSection_List.g.cs | 141 ++++++ .../beta/Cmdlets/GetMgPlaceAsWorkspace.g.cs | 91 ++++ .../Cmdlets/GetMgPlaceAsWorkspaceCheckIn.g.cs | 93 ++++ .../GetMgPlaceAsWorkspaceCheckInCount.g.cs | 62 +++ .../GetMgPlaceAsWorkspaceCheckIn_Get.g.cs | 67 +++ .../GetMgPlaceAsWorkspaceCheckIn_List.g.cs | 142 ++++++ .../Cmdlets/GetMgPlaceAsWorkspaceChild.g.cs | 93 ++++ .../GetMgPlaceAsWorkspaceChildCount.g.cs | 62 +++ .../GetMgPlaceAsWorkspaceChild_Get.g.cs | 67 +++ .../GetMgPlaceAsWorkspaceChild_List.g.cs | 142 ++++++ .../Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs | 65 +++ .../Cmdlets/GetMgPlaceAsWorkspace_List.g.cs | 141 ++++++ .../beta/Cmdlets/GetMgPlaceCheckIn.g.cs | 93 ++++ .../beta/Cmdlets/GetMgPlaceCheckInCount.g.cs | 62 +++ .../beta/Cmdlets/GetMgPlaceCheckIn_Get.g.cs | 67 +++ .../beta/Cmdlets/GetMgPlaceCheckIn_List.g.cs | 142 ++++++ .../wrapper/beta/Cmdlets/GetMgPlaceChild.g.cs | 93 ++++ .../beta/Cmdlets/GetMgPlaceChildCount.g.cs | 62 +++ .../beta/Cmdlets/GetMgPlaceChild_Get.g.cs | 67 +++ .../beta/Cmdlets/GetMgPlaceChild_List.g.cs | 142 ++++++ .../wrapper/beta/Cmdlets/GetMgPlaceCount.g.cs | 61 +++ .../Cmdlets/GetMgPlaceCountAsBuilding.g.cs | 61 +++ .../beta/Cmdlets/GetMgPlaceCountAsDesk.g.cs | 61 +++ .../beta/Cmdlets/GetMgPlaceCountAsFloor.g.cs | 61 +++ .../beta/Cmdlets/GetMgPlaceCountAsRoom.g.cs | 61 +++ .../Cmdlets/GetMgPlaceCountAsRoomList.g.cs | 61 +++ .../Cmdlets/GetMgPlaceCountAsSection.g.cs | 61 +++ .../Cmdlets/GetMgPlaceCountAsWorkspace.g.cs | 61 +++ .../beta/Cmdlets/GetMgPlaceDescendants.g.cs | 105 +++++ .../Cmdlets/GetMgPlaceGetOperationWithId.g.cs | 65 +++ .../Cmdlets/GetMgPlaceListOperations.g.cs | 104 +++++ .../beta/Cmdlets/GetMgUserCalendar.g.cs | 93 ++++ ...arAllowedCalendarSharingRolesWithUser.g.cs | 97 +++++ .../beta/Cmdlets/GetMgUserCalendarCount.g.cs | 62 +++ .../beta/Cmdlets/GetMgUserCalendarDelta.g.cs | 177 ++++++++ .../beta/Cmdlets/GetMgUserCalendarEvent.g.cs | 144 ++++++ .../beta/Cmdlets/GetMgUserCalendarGroup.g.cs | 93 ++++ .../GetMgUserCalendarGroupCalendar.g.cs | 95 ++++ ...arAllowedCalendarSharingRolesWithUser.g.cs | 100 +++++ .../GetMgUserCalendarGroupCalendarCount.g.cs | 64 +++ .../GetMgUserCalendarGroupCalendarDelta.g.cs | 179 ++++++++ .../GetMgUserCalendarGroupCalendarEvent.g.cs | 97 +++++ ...rCalendarGroupCalendarEventAttachment.g.cs | 99 +++++ ...ndarGroupCalendarEventAttachmentCount.g.cs | 68 +++ ...endarGroupCalendarEventAttachment_Get.g.cs | 73 ++++ ...ndarGroupCalendarEventAttachment_List.g.cs | 148 +++++++ ...serCalendarGroupCalendarEventCalendar.g.cs | 71 +++ ...MgUserCalendarGroupCalendarEventCount.g.cs | 66 +++ ...MgUserCalendarGroupCalendarEventDelta.g.cs | 181 ++++++++ ...erCalendarGroupCalendarEventExtension.g.cs | 99 +++++ ...endarGroupCalendarEventExtensionCount.g.cs | 68 +++ ...lendarGroupCalendarEventExtension_Get.g.cs | 73 ++++ ...endarGroupCalendarEventExtension_List.g.cs | 148 +++++++ ...serCalendarGroupCalendarEventInstance.g.cs | 148 +++++++ ...lendarGroupCalendarEventInstanceDelta.g.cs | 183 ++++++++ ...tMgUserCalendarGroupCalendarEvent_Get.g.cs | 71 +++ ...MgUserCalendarGroupCalendarEvent_List.g.cs | 146 +++++++ ...MgUserCalendarGroupCalendarPermission.g.cs | 97 +++++ ...rCalendarGroupCalendarPermissionCount.g.cs | 66 +++ ...erCalendarGroupCalendarPermission_Get.g.cs | 71 +++ ...rCalendarGroupCalendarPermission_List.g.cs | 146 +++++++ .../GetMgUserCalendarGroupCalendarView.g.cs | 146 +++++++ ...tMgUserCalendarGroupCalendarViewDelta.g.cs | 181 ++++++++ .../GetMgUserCalendarGroupCalendar_Get.g.cs | 69 +++ .../GetMgUserCalendarGroupCalendar_List.g.cs | 144 ++++++ .../Cmdlets/GetMgUserCalendarGroupCount.g.cs | 62 +++ .../Cmdlets/GetMgUserCalendarGroup_Get.g.cs | 67 +++ .../Cmdlets/GetMgUserCalendarGroup_List.g.cs | 142 ++++++ .../Cmdlets/GetMgUserCalendarPermission.g.cs | 93 ++++ .../GetMgUserCalendarPermissionCount.g.cs | 62 +++ .../GetMgUserCalendarPermission_Get.g.cs | 67 +++ .../GetMgUserCalendarPermission_List.g.cs | 142 ++++++ .../beta/Cmdlets/GetMgUserCalendarView.g.cs | 142 ++++++ .../Cmdlets/GetMgUserCalendarViewDelta.g.cs | 179 ++++++++ .../beta/Cmdlets/GetMgUserCalendar_Get.g.cs | 67 +++ .../beta/Cmdlets/GetMgUserCalendar_List.g.cs | 142 ++++++ .../Cmdlets/GetMgUserDefaultCalendar.g.cs | 65 +++ .../GetMgUserDefaultCalendarEvent.g.cs | 142 ++++++ .../wrapper/beta/Cmdlets/GetMgUserEvent.g.cs | 93 ++++ .../Cmdlets/GetMgUserEventAttachment.g.cs | 95 ++++ .../GetMgUserEventAttachmentCount.g.cs | 64 +++ .../Cmdlets/GetMgUserEventAttachment_Get.g.cs | 69 +++ .../GetMgUserEventAttachment_List.g.cs | 144 ++++++ .../beta/Cmdlets/GetMgUserEventCalendar.g.cs | 67 +++ .../beta/Cmdlets/GetMgUserEventCount.g.cs | 62 +++ .../beta/Cmdlets/GetMgUserEventDelta.g.cs | 177 ++++++++ .../beta/Cmdlets/GetMgUserEventExtension.g.cs | 95 ++++ .../Cmdlets/GetMgUserEventExtensionCount.g.cs | 64 +++ .../Cmdlets/GetMgUserEventExtension_Get.g.cs | 69 +++ .../Cmdlets/GetMgUserEventExtension_List.g.cs | 144 ++++++ .../beta/Cmdlets/GetMgUserEventInstance.g.cs | 144 ++++++ .../Cmdlets/GetMgUserEventInstanceDelta.g.cs | 179 ++++++++ .../beta/Cmdlets/GetMgUserEvent_Get.g.cs | 67 +++ .../beta/Cmdlets/GetMgUserEvent_List.g.cs | 142 ++++++ ...erCalendarAllowedCalendarSharingRoles.g.cs | 94 ++++ .../InvokeMgGroupCalendarGetSchedule.g.cs | 81 ++++ .../InvokeMgGroupCalendarPermanentDelete.g.cs | 59 +++ .../Cmdlets/InvokeMgGroupEventAccept.g.cs | 73 ++++ ...oupEventAttachmentCreateUploadSession.g.cs | 67 +++ .../Cmdlets/InvokeMgGroupEventCancel.g.cs | 67 +++ .../Cmdlets/InvokeMgGroupEventDecline.g.cs | 77 ++++ .../InvokeMgGroupEventDismissReminder.g.cs | 61 +++ .../Cmdlets/InvokeMgGroupEventForward.g.cs | 71 +++ .../InvokeMgGroupEventPermanentDelete.g.cs | 61 +++ .../InvokeMgGroupEventSnoozeReminder.g.cs | 67 +++ .../InvokeMgGroupEventTentativelyAccept.g.cs | 77 ++++ ...gUserCalendarGroupCalendarEventAccept.g.cs | 77 ++++ ...darEventAttachmentCreateUploadSession.g.cs | 71 +++ ...gUserCalendarGroupCalendarEventCancel.g.cs | 71 +++ ...UserCalendarGroupCalendarEventDecline.g.cs | 81 ++++ ...ndarGroupCalendarEventDismissReminder.g.cs | 65 +++ ...UserCalendarGroupCalendarEventForward.g.cs | 75 ++++ ...ndarGroupCalendarEventPermanentDelete.g.cs | 65 +++ ...endarGroupCalendarEventSnoozeReminder.g.cs | 71 +++ ...arGroupCalendarEventTentativelyAccept.g.cs | 81 ++++ ...gUserCalendarGroupCalendarGetSchedule.g.cs | 85 ++++ ...rCalendarGroupCalendarPermanentDelete.g.cs | 63 +++ .../InvokeMgUserCalendarPermanentDelete.g.cs | 59 +++ .../beta/Cmdlets/InvokeMgUserEventAccept.g.cs | 73 ++++ ...serEventAttachmentCreateUploadSession.g.cs | 67 +++ .../beta/Cmdlets/InvokeMgUserEventCancel.g.cs | 67 +++ .../Cmdlets/InvokeMgUserEventDecline.g.cs | 77 ++++ .../InvokeMgUserEventDismissReminder.g.cs | 61 +++ .../Cmdlets/InvokeMgUserEventForward.g.cs | 71 +++ .../InvokeMgUserEventPermanentDelete.g.cs | 61 +++ .../InvokeMgUserEventSnoozeReminder.g.cs | 67 +++ .../InvokeMgUserEventTentativelyAccept.g.cs | 77 ++++ .../beta/Cmdlets/NewMgGroupCalendarEvent.g.cs | 315 ++++++++++++++ .../NewMgGroupCalendarEventAttachment.g.cs | 91 ++++ .../NewMgGroupCalendarEventExtension.g.cs | 63 +++ .../Cmdlets/NewMgGroupCalendarPermission.g.cs | 87 ++++ .../wrapper/beta/Cmdlets/NewMgGroupEvent.g.cs | 315 ++++++++++++++ .../Cmdlets/NewMgGroupEventAttachment.g.cs | 91 ++++ .../Cmdlets/NewMgGroupEventExtension.g.cs | 63 +++ .../wrapper/beta/Cmdlets/NewMgPlace.g.cs | 116 +++++ .../Cmdlets/NewMgPlaceAsBuildingCheckIn.g.cs | 75 ++++ .../NewMgPlaceAsBuildingMapFootprint.g.cs | 65 +++ .../Cmdlets/NewMgPlaceAsBuildingMapLevel.g.cs | 71 +++ .../NewMgPlaceAsBuildingMapLevelFixture.g.cs | 73 ++++ .../NewMgPlaceAsBuildingMapLevelSection.g.cs | 73 ++++ .../NewMgPlaceAsBuildingMapLevelUnit.g.cs | 73 ++++ .../beta/Cmdlets/NewMgPlaceAsDeskCheckIn.g.cs | 75 ++++ .../Cmdlets/NewMgPlaceAsFloorCheckIn.g.cs | 75 ++++ .../beta/Cmdlets/NewMgPlaceAsRoomCheckIn.g.cs | 75 ++++ .../Cmdlets/NewMgPlaceAsRoomListCheckIn.g.cs | 75 ++++ .../Cmdlets/NewMgPlaceAsRoomListRoom.g.cs | 189 ++++++++ .../NewMgPlaceAsRoomListRoomCheckIn.g.cs | 77 ++++ .../NewMgPlaceAsRoomListWorkspace.g.cs | 165 +++++++ .../NewMgPlaceAsRoomListWorkspaceCheckIn.g.cs | 77 ++++ .../Cmdlets/NewMgPlaceAsSectionCheckIn.g.cs | 75 ++++ .../Cmdlets/NewMgPlaceAsWorkspaceCheckIn.g.cs | 75 ++++ .../beta/Cmdlets/NewMgPlaceCheckIn.g.cs | 75 ++++ .../beta/Cmdlets/NewMgUserCalendar.g.cs | 153 +++++++ .../beta/Cmdlets/NewMgUserCalendarEvent.g.cs | 317 ++++++++++++++ .../beta/Cmdlets/NewMgUserCalendarGroup.g.cs | 77 ++++ .../NewMgUserCalendarGroupCalendar.g.cs | 155 +++++++ .../NewMgUserCalendarGroupCalendarEvent.g.cs | 319 ++++++++++++++ ...rCalendarGroupCalendarEventAttachment.g.cs | 95 ++++ ...erCalendarGroupCalendarEventExtension.g.cs | 67 +++ ...MgUserCalendarGroupCalendarPermission.g.cs | 91 ++++ .../Cmdlets/NewMgUserCalendarPermission.g.cs | 87 ++++ .../NewMgUserDefaultCalendarEvent.g.cs | 315 ++++++++++++++ .../wrapper/beta/Cmdlets/NewMgUserEvent.g.cs | 315 ++++++++++++++ .../Cmdlets/NewMgUserEventAttachment.g.cs | 91 ++++ .../beta/Cmdlets/NewMgUserEventExtension.g.cs | 63 +++ .../Cmdlets/RemoveMgGroupCalendarEvent.g.cs | 58 +++ .../RemoveMgGroupCalendarEventAttachment.g.cs | 60 +++ .../RemoveMgGroupCalendarEventExtension.g.cs | 60 +++ .../RemoveMgGroupCalendarPermission.g.cs | 58 +++ .../beta/Cmdlets/RemoveMgGroupEvent.g.cs | 58 +++ .../Cmdlets/RemoveMgGroupEventAttachment.g.cs | 60 +++ .../Cmdlets/RemoveMgGroupEventExtension.g.cs | 60 +++ .../wrapper/beta/Cmdlets/RemoveMgPlace.g.cs | 56 +++ .../RemoveMgPlaceAsBuildingCheckIn.g.cs | 58 +++ .../Cmdlets/RemoveMgPlaceAsBuildingMap.g.cs | 56 +++ .../RemoveMgPlaceAsBuildingMapFootprint.g.cs | 58 +++ .../RemoveMgPlaceAsBuildingMapLevel.g.cs | 58 +++ ...emoveMgPlaceAsBuildingMapLevelFixture.g.cs | 60 +++ ...emoveMgPlaceAsBuildingMapLevelSection.g.cs | 60 +++ .../RemoveMgPlaceAsBuildingMapLevelUnit.g.cs | 60 +++ .../Cmdlets/RemoveMgPlaceAsDeskCheckIn.g.cs | 58 +++ .../Cmdlets/RemoveMgPlaceAsFloorCheckIn.g.cs | 58 +++ .../Cmdlets/RemoveMgPlaceAsRoomCheckIn.g.cs | 58 +++ .../RemoveMgPlaceAsRoomListCheckIn.g.cs | 58 +++ .../Cmdlets/RemoveMgPlaceAsRoomListRoom.g.cs | 58 +++ .../RemoveMgPlaceAsRoomListRoomCheckIn.g.cs | 60 +++ .../RemoveMgPlaceAsRoomListWorkspace.g.cs | 58 +++ ...moveMgPlaceAsRoomListWorkspaceCheckIn.g.cs | 60 +++ .../RemoveMgPlaceAsSectionCheckIn.g.cs | 58 +++ .../RemoveMgPlaceAsWorkspaceCheckIn.g.cs | 58 +++ .../beta/Cmdlets/RemoveMgPlaceCheckIn.g.cs | 58 +++ .../beta/Cmdlets/RemoveMgUserCalendar.g.cs | 58 +++ .../Cmdlets/RemoveMgUserCalendarGroup.g.cs | 58 +++ .../RemoveMgUserCalendarGroupCalendar.g.cs | 60 +++ ...emoveMgUserCalendarGroupCalendarEvent.g.cs | 62 +++ ...rCalendarGroupCalendarEventAttachment.g.cs | 64 +++ ...erCalendarGroupCalendarEventExtension.g.cs | 64 +++ ...MgUserCalendarGroupCalendarPermission.g.cs | 62 +++ .../RemoveMgUserCalendarPermission.g.cs | 58 +++ .../beta/Cmdlets/RemoveMgUserEvent.g.cs | 58 +++ .../Cmdlets/RemoveMgUserEventAttachment.g.cs | 60 +++ .../Cmdlets/RemoveMgUserEventExtension.g.cs | 60 +++ .../Cmdlets/UpdateMgGroupCalendarEvent.g.cs | 332 ++++++++++++++ .../UpdateMgGroupCalendarEventExtension.g.cs | 80 ++++ .../UpdateMgGroupCalendarPermission.g.cs | 104 +++++ .../beta/Cmdlets/UpdateMgGroupEvent.g.cs | 332 ++++++++++++++ .../Cmdlets/UpdateMgGroupEventExtension.g.cs | 80 ++++ .../wrapper/beta/Cmdlets/UpdateMgPlace.g.cs | 119 +++++ .../UpdateMgPlaceAsBuildingCheckIn.g.cs | 92 ++++ .../Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs | 86 ++++ .../UpdateMgPlaceAsBuildingMapFootprint.g.cs | 82 ++++ .../UpdateMgPlaceAsBuildingMapLevel.g.cs | 88 ++++ ...pdateMgPlaceAsBuildingMapLevelFixture.g.cs | 90 ++++ ...pdateMgPlaceAsBuildingMapLevelSection.g.cs | 90 ++++ .../UpdateMgPlaceAsBuildingMapLevelUnit.g.cs | 90 ++++ .../Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs | 92 ++++ .../Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs | 92 ++++ .../Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs | 92 ++++ .../UpdateMgPlaceAsRoomListCheckIn.g.cs | 92 ++++ .../Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs | 206 +++++++++ .../UpdateMgPlaceAsRoomListRoomCheckIn.g.cs | 94 ++++ .../UpdateMgPlaceAsRoomListWorkspace.g.cs | 182 ++++++++ ...dateMgPlaceAsRoomListWorkspaceCheckIn.g.cs | 94 ++++ .../UpdateMgPlaceAsSectionCheckIn.g.cs | 92 ++++ .../UpdateMgPlaceAsWorkspaceCheckIn.g.cs | 92 ++++ .../beta/Cmdlets/UpdateMgPlaceCheckIn.g.cs | 92 ++++ .../beta/Cmdlets/UpdateMgUserCalendar.g.cs | 170 ++++++++ .../Cmdlets/UpdateMgUserCalendarGroup.g.cs | 94 ++++ .../UpdateMgUserCalendarGroupCalendar.g.cs | 172 ++++++++ ...pdateMgUserCalendarGroupCalendarEvent.g.cs | 336 ++++++++++++++ ...erCalendarGroupCalendarEventExtension.g.cs | 84 ++++ ...MgUserCalendarGroupCalendarPermission.g.cs | 108 +++++ .../UpdateMgUserCalendarPermission.g.cs | 104 +++++ .../beta/Cmdlets/UpdateMgUserEvent.g.cs | 332 ++++++++++++++ .../Cmdlets/UpdateMgUserEventExtension.g.cs | 80 ++++ .../wrapper/beta/Cmdlets/kiota-lock.json | 3 + .../Microsoft.Graph.Wrapper.Calendar.csproj | 66 +++ 898 files changed, 99633 insertions(+) create mode 100644 src/Calendar/wrapper/beta/Client/ApiClient.cs create mode 100644 src/Calendar/wrapper/beta/Client/Client.csproj create mode 100644 src/Calendar/wrapper/beta/Client/Groups/GroupsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarView/CalendarViewRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarView/Delta/DeltaResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Delta/DeltaGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Delta/DeltaResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/EventsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/EventItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/GetSchedule/GetSchedulePostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/GetSchedule/GetScheduleResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/PermanentDelete/PermanentDeleteRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/CalendarView/CalendarViewRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/CalendarView/Delta/DeltaGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/CalendarView/Delta/DeltaResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Delta/DeltaGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Delta/DeltaRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Delta/DeltaResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/EventsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Accept/AcceptPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Calendar/CalendarRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Cancel/CancelPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Decline/DeclinePostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/EventItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Forward/ForwardPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Instances/Delta/DeltaResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Instances/InstancesRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Groups/Item/GroupItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/Attachment.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/AttachmentCollectionResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/AttachmentItem.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/AttachmentType.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/Attendee.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/AttendeeBase.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/AttendeeType.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/BaseCollectionPaginationCountResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/BaseDeltaFunctionResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/BaseMapFeature.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/BodyType.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/BookingType.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/Building.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/BuildingCollectionResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/BuildingMap.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/Calendar.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/CalendarCollectionResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/CalendarColor.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/CalendarGroup.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/CalendarGroupCollectionResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/CalendarPermission.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/CalendarPermissionCollectionResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/CalendarRoleType.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/CheckInClaim.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/CheckInClaimCollectionResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/CheckInMethod.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/DateTimeTimeZone.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/DayOfWeekObject.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/Desk.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/DeskCollectionResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/Dictionary.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/EmailAddress.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/Entity.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/Event.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/EventCollectionResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/EventType.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/Extension.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/ExtensionCollectionResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/FixtureMap.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/FixtureMapCollectionResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/Floor.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/FloorCollectionResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/FootprintMap.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/FootprintMapCollectionResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/FreeBusyError.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/FreeBusyStatus.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/Importance.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/ItemBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/LevelMap.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/LevelMapCollectionResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/Location.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/LocationType.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/LocationUniqueIdType.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/MailboxDetails.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/MultiValueLegacyExtendedProperty.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/ODataErrors/ErrorDetails.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/ODataErrors/InnerError.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/ODataErrors/MainError.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/ODataErrors/ODataError.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/OnlineMeetingInfo.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/OnlineMeetingProviderType.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/OutlookGeoCoordinates.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/OutlookItem.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/PatternedRecurrence.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/Phone.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/PhoneType.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/PhysicalAddress.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/PhysicalAddressType.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/Place.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/PlaceCollectionResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/PlaceExecutionResult.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/PlaceFeatureEnablement.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/PlaceMode.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/PlaceOperation.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/PlaceOperationProgress.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/PlaceOperationStatus.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/PlaceServicePlanInfo.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/PublicError.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/PublicErrorDetail.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/PublicInnerError.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/Recipient.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/RecurrencePattern.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/RecurrencePatternType.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/RecurrenceRange.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/RecurrenceRangeType.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/ResourceLink.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/ResourceLinkType.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/ResponseStatus.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/ResponseType.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/Room.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/RoomCollectionResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/RoomList.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/RoomListCollectionResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/ScheduleInformation.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/ScheduleItem.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/Section.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/SectionCollectionResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/SectionMap.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/SectionMapCollectionResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/Sensitivity.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/SingleValueLegacyExtendedProperty.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/StringDictionary.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/TimeSlot.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/TimeZoneBase.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/UnitMap.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/UnitMapCollectionResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/UploadSession.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/WeekIndex.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/WorkingHours.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/Workspace.cs create mode 100644 src/Calendar/wrapper/beta/Client/Models/WorkspaceCollectionResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/GetOperationWithId/GetOperationWithIdRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/GraphBuilding/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/GraphBuilding/GraphBuildingRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/GraphDesk/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/GraphDesk/GraphDeskRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/GraphFloor/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/GraphFloor/GraphFloorRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/GraphRoom/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/GraphRoom/GraphRoomRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/GraphRoomList/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/GraphRoomList/GraphRoomListRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/GraphSection/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/GraphSection/GraphSectionRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/GraphWorkspace/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/GraphWorkspace/GraphWorkspaceRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/CheckIns/CheckInsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/CheckIns/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/Children/ChildrenRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/Children/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/Children/Item/PlaceItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/Descendants/DescendantsGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/Descendants/DescendantsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/Descendants/DescendantsResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/CheckIns/CheckInsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/CheckIns/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Children/ChildrenRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Children/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Children/Item/PlaceItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/GraphBuildingRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Footprints/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Footprints/FootprintsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Footprints/Item/FootprintMapItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Fixtures/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Fixtures/FixturesRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Fixtures/Item/FixtureMapItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/LevelMapItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Sections/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Sections/Item/SectionMapItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Sections/SectionsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Units/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Units/Item/UnitMapItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Units/UnitsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/LevelsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/MapRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/CheckIns/CheckInsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/CheckIns/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/Children/ChildrenRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/Children/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/Children/Item/PlaceItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/GraphDeskRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/CheckIns/CheckInsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/CheckIns/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/Children/ChildrenRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/Children/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/Children/Item/PlaceItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/GraphFloorRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/CheckIns/CheckInsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/CheckIns/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/Children/ChildrenRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/Children/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/Children/Item/PlaceItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/GraphRoomRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/CheckIns/CheckInsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/CheckIns/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Children/ChildrenRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Children/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Children/Item/PlaceItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/GraphRoomListRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/CheckIns/CheckInsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/CheckIns/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/Children/ChildrenRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/Children/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/Children/Item/PlaceItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/RoomItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/RoomsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/CheckIns/CheckInsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/CheckIns/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/Children/ChildrenRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/Children/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/Children/Item/PlaceItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/WorkspaceItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/WorkspacesRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/CheckIns/CheckInsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/CheckIns/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/Children/ChildrenRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/Children/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/Children/Item/PlaceItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/GraphSectionRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/CheckIns/CheckInsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/CheckIns/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/Children/ChildrenRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/Children/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/Children/Item/PlaceItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/GraphWorkspaceRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/Item/PlaceItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/ListOperations/ListOperationsGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/ListOperations/ListOperationsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/ListOperations/ListOperationsResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Places/PlacesRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarView/CalendarViewRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarView/Delta/DeltaResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Delta/DeltaGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Delta/DeltaResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/EventsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/EventItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/GetSchedule/GetSchedulePostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/GetSchedule/GetScheduleResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendar/PermanentDelete/PermanentDeleteRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/CalendarGroupsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/CalendarGroupItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Delta/DeltaGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Delta/DeltaRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Delta/DeltaResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarView/CalendarViewRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarView/Delta/DeltaGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarView/Delta/DeltaRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/CalendarView/Delta/DeltaResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/CalendarsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Delta/DeltaGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Delta/DeltaRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Delta/DeltaResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Delta/DeltaResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/EventsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Delta/DeltaGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Delta/DeltaRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Delta/DeltaResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/EventsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Accept/AcceptPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Accept/AcceptRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Calendar/CalendarRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Cancel/CancelPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Cancel/CancelRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Decline/DeclinePostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Decline/DeclineRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/EventItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Forward/ForwardPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Forward/ForwardRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Instances/Delta/DeltaResponse.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Instances/InstancesRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/Item/UserItemRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/Users/UsersRequestBuilder.cs create mode 100644 src/Calendar/wrapper/beta/Client/kiota-lock.json create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendar.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachmentCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventCalendar.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtensionCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventInstance.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermissionCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarView.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachmentCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventCalendar.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventDelta.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtensionCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstance.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstanceDelta.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckInCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChildCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMap.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprintCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixtureCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSectionCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnitCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckInCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChildCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckInCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChildCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckInCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChildCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckInCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChildCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckInCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChildCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckInCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChildCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckInCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChildCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckInCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChildCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckInCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChildCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsBuilding.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsDesk.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsFloor.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsRoom.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsRoomList.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsSection.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsWorkspace.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceDescendants.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceGetOperationWithId.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceListOperations.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarAllowedCalendarSharingRolesWithUser.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarDelta.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarEvent.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarDelta.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachmentCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventCalendar.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventDelta.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtensionCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventInstance.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventInstanceDelta.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermissionCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarView.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarViewDelta.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermissionCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarView.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarViewDelta.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendar.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachmentCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventCalendar.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventDelta.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtensionCount.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstance.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstanceDelta.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_Get.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_List.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgCalendarUserCalendarAllowedCalendarSharingRoles.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupCalendarGetSchedule.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupCalendarPermanentDelete.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventAccept.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventAttachmentCreateUploadSession.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventCancel.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventDecline.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventDismissReminder.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventForward.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventPermanentDelete.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventSnoozeReminder.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventTentativelyAccept.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventAccept.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventAttachmentCreateUploadSession.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventCancel.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventDecline.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventDismissReminder.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventForward.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventPermanentDelete.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventSnoozeReminder.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventTentativelyAccept.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarGetSchedule.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarPermanentDelete.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarPermanentDelete.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventAccept.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventAttachmentCreateUploadSession.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventCancel.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventDecline.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventDismissReminder.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventForward.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventPermanentDelete.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventSnoozeReminder.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventTentativelyAccept.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEvent.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEventAttachment.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEventExtension.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarPermission.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgGroupEvent.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgGroupEventAttachment.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgGroupEventExtension.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgPlace.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapFootprint.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevel.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelFixture.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelSection.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelUnit.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsDeskCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsFloorCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListRoom.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListRoomCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListWorkspace.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListWorkspaceCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsSectionCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsWorkspaceCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendar.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarEvent.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroup.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendar.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEvent.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEventAttachment.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEventExtension.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarPermission.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarPermission.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgUserDefaultCalendarEvent.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgUserEvent.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgUserEventAttachment.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgUserEventExtension.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEvent.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEventAttachment.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEventExtension.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarPermission.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEvent.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEventAttachment.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEventExtension.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlace.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMap.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapFootprint.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevel.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelFixture.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelSection.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelUnit.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsDeskCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsFloorCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListRoom.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListRoomCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListWorkspace.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListWorkspaceCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsSectionCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsWorkspaceCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendar.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroup.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendar.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEvent.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEventAttachment.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEventExtension.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarPermission.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarPermission.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEvent.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEventAttachment.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEventExtension.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarEvent.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarEventExtension.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarPermission.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEvent.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEventExtension.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlace.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceCheckIn.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendar.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroup.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendar.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarEvent.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarEventExtension.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarPermission.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarPermission.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEvent.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEventExtension.g.cs create mode 100644 src/Calendar/wrapper/beta/Cmdlets/kiota-lock.json create mode 100644 src/Calendar/wrapper/beta/Microsoft.Graph.Wrapper.Calendar.csproj diff --git a/src/Calendar/wrapper/beta/Client/ApiClient.cs b/src/Calendar/wrapper/beta/Client/ApiClient.cs new file mode 100644 index 00000000000..2e10f2b4257 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/ApiClient.cs @@ -0,0 +1,60 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Groups; +using Microsoft.Graph.PowerShell.Calendar.Client.Places; +using Microsoft.Graph.PowerShell.Calendar.Client.Users; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Serialization.Form; +using Microsoft.Kiota.Serialization.Json; +using Microsoft.Kiota.Serialization.Multipart; +using Microsoft.Kiota.Serialization.Text; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client +{ + /// + /// The main entry point of the SDK, exposes the configuration and the fluent API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ApiClient : BaseRequestBuilder + { + /// The groups property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.GroupsRequestBuilder Groups + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.GroupsRequestBuilder(PathParameters, RequestAdapter); + } + /// The places property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.PlacesRequestBuilder Places + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.PlacesRequestBuilder(PathParameters, RequestAdapter); + } + /// The users property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.UsersRequestBuilder Users + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.UsersRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// The request adapter to use to execute the requests. + public ApiClient(IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}", new Dictionary()) + { + ApiClientBuilder.RegisterDefaultSerializer(); + ApiClientBuilder.RegisterDefaultSerializer(); + ApiClientBuilder.RegisterDefaultSerializer(); + ApiClientBuilder.RegisterDefaultSerializer(); + ApiClientBuilder.RegisterDefaultDeserializer(); + ApiClientBuilder.RegisterDefaultDeserializer(); + ApiClientBuilder.RegisterDefaultDeserializer(); + if (string.IsNullOrEmpty(RequestAdapter.BaseUrl)) + { + RequestAdapter.BaseUrl = "https://graph.microsoft.com/beta"; + } + PathParameters.TryAdd("baseurl", RequestAdapter.BaseUrl); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Client.csproj b/src/Calendar/wrapper/beta/Client/Client.csproj new file mode 100644 index 00000000000..21e2a619dd2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Client.csproj @@ -0,0 +1,28 @@ + + + + + + netstandard2.0 + latest + enable + enable + Microsoft.Graph.Wrapper.Calendar.Client + $(NoWarn);CS1591 + + + + + + + + + diff --git a/src/Calendar/wrapper/beta/Client/Groups/GroupsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/GroupsRequestBuilder.cs new file mode 100644 index 00000000000..d6d5c6d27d7 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/GroupsRequestBuilder.cs @@ -0,0 +1,48 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups +{ + /// + /// Builds and executes requests for operations under \groups + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupsRequestBuilder : BaseRequestBuilder + { + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.groups.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.GroupItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("group%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.GroupItemRequestBuilder(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 GroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups", rawUrl) + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs new file mode 100644 index 00000000000..2efc8d4bfd3 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AllowedCalendarSharingRolesWithUserGetResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse(); + } + /// + /// 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.GetCollectionOfEnumValues()?.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.WriteCollectionOfEnumValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs new file mode 100644 index 00000000000..f04c9618aa9 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs @@ -0,0 +1,157 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\allowedCalendarSharingRoles(User='{User}') + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllowedCalendarSharingRolesWithUserRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AllowedCalendarSharingRolesWithUserRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/allowedCalendarSharingRoles(User='{User}'){?%24count,%24filter,%24search,%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 AllowedCalendarSharingRolesWithUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/allowedCalendarSharingRoles(User='{User}'){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl) + { + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + /// A + /// Cancellation token to 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 GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllowedCalendarSharingRolesWithUserRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || 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 + /// 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 AllowedCalendarSharingRolesWithUserRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs new file mode 100644 index 00000000000..2de162f2bc5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.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.Calendar.Client.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser +{ + [Obsolete("This class is obsolete. Use AllowedCalendarSharingRolesWithUserGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AllowedCalendarSharingRolesWithUserResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse, 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.Calendar.Client.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs new file mode 100644 index 00000000000..f3674534f13 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarPermissions.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarPermissions.Item; +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarPermissions +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\calendarPermissions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarPermissions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarPermissions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.groups.item.calendar.calendarPermissions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarPermissions.Item.CalendarPermissionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("calendarPermission%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarPermissions.Item.CalendarPermissionItemRequestBuilder(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 CalendarPermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarPermissions{?%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 CalendarPermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarPermissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The permissions of the users with whom the calendar is shared. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermissionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to calendarPermissions for groups + /// + /// 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.Calendar.Client.Models.CalendarPermission body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The permissions of the users with whom the calendar is shared. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 calendarPermissions for groups + /// + /// 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.Calendar.Client.Models.CalendarPermission body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission 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.Calendar.Client.Groups.Item.Calendar.CalendarPermissions.CalendarPermissionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarPermissions.CalendarPermissionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The permissions of the users with whom the calendar is shared. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionsRequestBuilderGetQueryParameters + { + /// 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 CalendarPermissionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b0733e0f301 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarPermissions.Count +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\calendarPermissions\$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}/groups/{group%2Did}/calendar/calendarPermissions/$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}/groups/{group%2Did}/calendar/calendarPermissions/$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.Calendar.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.Calendar.Client.Groups.Item.Calendar.CalendarPermissions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarPermissions.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/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs new file mode 100644 index 00000000000..3dceabfee28 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarPermissions.Item +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\calendarPermissions\{calendarPermission-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CalendarPermissionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarPermissions/{calendarPermission%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 CalendarPermissionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarPermissions/{calendarPermission%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property calendarPermissions for groups + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The permissions of the users with whom the calendar is shared. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property calendarPermissions in groups + /// + /// 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.Calendar.Client.Models.CalendarPermission body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property calendarPermissions for groups + /// + /// A + /// Configuration 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 permissions of the users with whom the calendar is shared. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 calendarPermissions in groups + /// + /// 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.Calendar.Client.Models.CalendarPermission body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission 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.Calendar.Client.Groups.Item.Calendar.CalendarPermissions.Item.CalendarPermissionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarPermissions.Item.CalendarPermissionItemRequestBuilder(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 CalendarPermissionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The permissions of the users with whom the calendar is shared. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CalendarPermissionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarRequestBuilder.cs new file mode 100644 index 00000000000..9c8803c0718 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarRequestBuilder.cs @@ -0,0 +1,164 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarPermissions; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarView; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.GetSchedule; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.PermanentDelete; +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilder : BaseRequestBuilder + { + /// The calendarPermissions property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarPermissions.CalendarPermissionsRequestBuilder CalendarPermissions + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarPermissions.CalendarPermissionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The calendarView property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarView.CalendarViewRequestBuilder CalendarView + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarView.CalendarViewRequestBuilder(PathParameters, RequestAdapter); + } + /// The events property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.EventsRequestBuilder Events + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.EventsRequestBuilder(PathParameters, RequestAdapter); + } + /// The getSchedule property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetScheduleRequestBuilder GetSchedule + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetScheduleRequestBuilder(PathParameters, RequestAdapter); + } + /// The permanentDelete property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.PermanentDelete.PermanentDeleteRequestBuilder PermanentDelete + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.PermanentDelete.PermanentDeleteRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\allowedCalendarSharingRoles(User='{User}') + /// + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder AllowedCalendarSharingRolesWithUser() + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder(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 CalendarRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar{?%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 CalendarRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar{?%24expand,%24select}", rawUrl) + { + } + /// + /// The group's calendar. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The group's calendar. 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.Calendar.Client.Groups.Item.Calendar.CalendarRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The group's calendar. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CalendarRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarView/CalendarViewRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarView/CalendarViewRequestBuilder.cs new file mode 100644 index 00000000000..13a692b12f9 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarView/CalendarViewRequestBuilder.cs @@ -0,0 +1,190 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarView.Delta; +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarView +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\calendarView + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarViewRequestBuilder : BaseRequestBuilder + { + /// The delta property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarView.Delta.DeltaRequestBuilder Delta + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarView.Delta.DeltaRequestBuilder(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 CalendarViewRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 CalendarViewRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The calendar view for the calendar. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The calendar view for the calendar. Navigation property. 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.Calendar.Client.Groups.Item.Calendar.CalendarView.CalendarViewRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarView.CalendarViewRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The calendar view for the calendar. Navigation property. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarViewRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T19:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 CalendarViewRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..313fa64d641 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Groups.Item.Calendar.CalendarView.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseDeltaFunctionResponse, 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.Calendar.Client.Groups.Item.Calendar.CalendarView.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarView.Delta.DeltaGetResponse(); + } + /// + /// 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.Calendar.Client.Models.Event.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/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..716e2b39634 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,209 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarView.Delta +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\calendarView\delta() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarView.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarView.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Groups.Item.Calendar.CalendarView.Delta.DeltaRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarView.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarView/Delta/DeltaResponse.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarView/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..844b695aa39 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/CalendarView/Delta/DeltaResponse.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.Calendar.Client.Groups.Item.Calendar.CalendarView.Delta +{ + [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarView.Delta.DeltaGetResponse, 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.Calendar.Client.Groups.Item.Calendar.CalendarView.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarView.Delta.DeltaResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..a74389f5282 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Count +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events\$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}/groups/{group%2Did}/calendar/events/$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}/groups/{group%2Did}/calendar/events/$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.Calendar.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.Calendar.Client.Groups.Item.Calendar.Events.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.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/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Delta/DeltaGetResponse.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..164a46128f6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Groups.Item.Calendar.Events.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseDeltaFunctionResponse, 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.Calendar.Client.Groups.Item.Calendar.Events.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Delta.DeltaGetResponse(); + } + /// + /// 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.Calendar.Client.Models.Event.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/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..7b2d101040c --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,209 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Delta +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events\delta() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Groups.Item.Calendar.Events.Delta.DeltaRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Delta/DeltaResponse.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..ff27e654251 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Delta/DeltaResponse.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.Calendar.Client.Groups.Item.Calendar.Events.Delta +{ + [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Delta.DeltaGetResponse, 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.Calendar.Client.Groups.Item.Calendar.Events.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Delta.DeltaResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/EventsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/EventsRequestBuilder.cs new file mode 100644 index 00000000000..465c75b918f --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/EventsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Delta; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item; +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// The delta property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Delta.DeltaRequestBuilder Delta + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Delta.DeltaRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.groups.item.calendar.events.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.EventItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("event%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.EventItemRequestBuilder(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 EventsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events{?%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 EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The events in the calendar. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to events for groups + /// + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The events in the calendar. Navigation property. 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 events for groups + /// + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Groups.Item.Calendar.Events.EventsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.EventsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The events in the calendar. Navigation property. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilderGetQueryParameters + { + /// 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 EventsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs new file mode 100644 index 00000000000..cbfaccff292 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Accept/AcceptPostRequestBody.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.Calendar.Client.Groups.Item.Calendar.Events.Item.Accept +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AcceptPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The SendResponse property + public bool? SendResponse { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public AcceptPostRequestBody() + { + AdditionalData = new Dictionary(); + SendResponse = false; + } + /// + /// 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Accept.AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Accept.AcceptPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteBoolValue("SendResponse", SendResponse); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs new file mode 100644 index 00000000000..81a30c44df5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Accept +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events\{event-id}\accept + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AcceptRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/accept", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/accept", rawUrl) + { + } + /// + /// Accept the specified event in a user calendar. + /// 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Accept.AcceptPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Accept.AcceptPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Accept the specified event in a user calendar. + /// + /// 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Accept.AcceptPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Accept.AcceptPostRequestBody 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Accept.AcceptRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Accept.AcceptRequestBuilder(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 AcceptRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs new file mode 100644 index 00000000000..4cb2f0f96a4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSession; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.Item; +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events\{event-id}\attachments + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// The createUploadSession property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder CreateUploadSession + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.groups.item.calendar.events.item.attachments.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.Item.AttachmentItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("attachment%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.Item.AttachmentItemRequestBuilder(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 AttachmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments{?%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 AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to attachments for groups + /// + /// 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.Calendar.Client.Models.Attachment body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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; + } + /// + /// Create new navigation property to attachments for groups + /// + /// 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.Calendar.Client.Models.Attachment body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.AttachmentsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.AttachmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderGetQueryParameters + { + /// 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 AttachmentsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..fe1b05ad1f2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.Count +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events\{event-id}\attachments\$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}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments/$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}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments/$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.Calendar.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.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.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/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs new file mode 100644 index 00000000000..6bd0f0f586e --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -0,0 +1,66 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSession +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CreateUploadSessionPostRequestBody : 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 AttachmentItem property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem? AttachmentItem { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem AttachmentItem { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CreateUploadSessionPostRequestBody() + { + 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem.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("AttachmentItem", AttachmentItem); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs new file mode 100644 index 00000000000..7cf56b2fb16 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -0,0 +1,104 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSession +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events\{event-id}\attachments\createUploadSession + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateUploadSessionRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CreateUploadSessionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments/createUploadSession", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments/createUploadSession", rawUrl) + { + } + /// + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// + /// 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(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 CreateUploadSessionRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs new file mode 100644 index 00000000000..743abe4a1d5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -0,0 +1,174 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.Item +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events\{event-id}\attachments\{attachment-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AttachmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments/{attachment%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 AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/attachments/{attachment%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property attachments for groups + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property attachments for groups + /// + /// A + /// Configuration 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 collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.Item.AttachmentItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.Item.AttachmentItemRequestBuilder(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 AttachmentItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 AttachmentItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs new file mode 100644 index 00000000000..31a858d981b --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Calendar +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events\{event-id}\calendar + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CalendarRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/calendar{?%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 CalendarRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/calendar{?%24expand,%24select}", rawUrl) + { + } + /// + /// The calendar that contains the event. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The calendar that contains the event. Navigation property. 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Calendar.CalendarRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Calendar.CalendarRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The calendar that contains the event. Navigation property. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CalendarRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs new file mode 100644 index 00000000000..18226510d78 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Cancel/CancelPostRequestBody.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.Calendar.Client.Groups.Item.Calendar.Events.Item.Cancel +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CancelPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CancelPostRequestBody() + { + 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Cancel.CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Cancel.CancelPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = 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("Comment", Comment); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs new file mode 100644 index 00000000000..fe1f9b7fa2d --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Cancel +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events\{event-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}/groups/{group%2Did}/calendar/events/{event%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}/groups/{group%2Did}/calendar/events/{event%2Did}/cancel", rawUrl) + { + } + /// + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Cancel.CancelPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Cancel.CancelPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// + /// 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Cancel.CancelPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Cancel.CancelPostRequestBody 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Cancel.CancelRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.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/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs new file mode 100644 index 00000000000..ca0e2f5ab01 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs @@ -0,0 +1,81 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Groups.Item.Calendar.Events.Item.Decline +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeclinePostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The ProposedNewTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot? ProposedNewTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot ProposedNewTime { get; set; } +#endif + /// The SendResponse property + public bool? SendResponse { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public DeclinePostRequestBody() + { + AdditionalData = new Dictionary(); + SendResponse = false; + } + /// + /// 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Decline.DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Decline.DeclinePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot.CreateFromDiscriminatorValue); } }, + { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteBoolValue("SendResponse", SendResponse); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs new file mode 100644 index 00000000000..6287caa0c80 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Decline +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events\{event-id}\decline + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeclineRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeclineRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/decline", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/decline", rawUrl) + { + } + /// + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Decline.DeclinePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Decline.DeclinePostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// + /// 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Decline.DeclinePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Decline.DeclinePostRequestBody 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Decline.DeclineRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Decline.DeclineRequestBuilder(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 DeclineRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs new file mode 100644 index 00000000000..3b41a9f8df2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.DismissReminder +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events\{event-id}\dismissReminder + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DismissReminderRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DismissReminderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/dismissReminder", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/dismissReminder", rawUrl) + { + } + /// + /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// + /// A + /// Configuration 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.Calendar.Client.Groups.Item.Calendar.Events.Item.DismissReminder.DismissReminderRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.DismissReminder.DismissReminderRequestBuilder(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 DismissReminderRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/EventItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/EventItemRequestBuilder.cs new file mode 100644 index 00000000000..626700eb286 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/EventItemRequestBuilder.cs @@ -0,0 +1,301 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Accept; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Calendar; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Cancel; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Decline; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.DismissReminder; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Extensions; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Forward; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Instances; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.PermanentDelete; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.SnoozeReminder; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.TentativelyAccept; +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events\{event-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilder : BaseRequestBuilder + { + /// The accept property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Accept.AcceptRequestBuilder Accept + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Accept.AcceptRequestBuilder(PathParameters, RequestAdapter); + } + /// The attachments property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.AttachmentsRequestBuilder Attachments + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Attachments.AttachmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// The calendar property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Calendar.CalendarRequestBuilder Calendar + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Calendar.CalendarRequestBuilder(PathParameters, RequestAdapter); + } + /// The cancel property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Cancel.CancelRequestBuilder Cancel + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Cancel.CancelRequestBuilder(PathParameters, RequestAdapter); + } + /// The decline property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Decline.DeclineRequestBuilder Decline + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Decline.DeclineRequestBuilder(PathParameters, RequestAdapter); + } + /// The dismissReminder property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.DismissReminder.DismissReminderRequestBuilder DismissReminder + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.DismissReminder.DismissReminderRequestBuilder(PathParameters, RequestAdapter); + } + /// The extensions property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Extensions.ExtensionsRequestBuilder Extensions + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Extensions.ExtensionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The forward property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Forward.ForwardRequestBuilder Forward + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Forward.ForwardRequestBuilder(PathParameters, RequestAdapter); + } + /// The instances property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Instances.InstancesRequestBuilder Instances + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Instances.InstancesRequestBuilder(PathParameters, RequestAdapter); + } + /// The permanentDelete property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder PermanentDelete + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder(PathParameters, RequestAdapter); + } + /// The snoozeReminder property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder SnoozeReminder + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder(PathParameters, RequestAdapter); + } + /// The tentativelyAccept property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder TentativelyAccept + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder(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 EventItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%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 EventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property events for groups + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The events in the calendar. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property events in groups + /// + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property events for groups + /// + /// A + /// Configuration 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 events in the calendar. Navigation property. 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 events in groups + /// + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Groups.Item.Calendar.Events.Item.EventItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.EventItemRequestBuilder(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 EventItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The events in the calendar. Navigation property. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 EventItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..6e3564ef929 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Extensions.Count +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events\{event-id}\extensions\$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}/groups/{group%2Did}/calendar/events/{event%2Did}/extensions/$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}/groups/{group%2Did}/calendar/events/{event%2Did}/extensions/$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.Calendar.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.Calendar.Client.Groups.Item.Calendar.Events.Item.Extensions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Extensions.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/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs new file mode 100644 index 00000000000..73bea98d660 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Extensions.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Extensions.Item; +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Extensions +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events\{event-id}\extensions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Extensions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Extensions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.groups.item.calendar.events.item.extensions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Extensions.Item.ExtensionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("extension%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Extensions.Item.ExtensionItemRequestBuilder(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 ExtensionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/extensions{?%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 ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The collection of open extensions defined for the event. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to extensions for groups + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of open extensions defined for the event. 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; + } + /// + /// Create new navigation property to extensions for groups + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Extensions.ExtensionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Extensions.ExtensionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of open extensions defined for the event. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderGetQueryParameters + { + /// 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 ExtensionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs new file mode 100644 index 00000000000..65ae150a7c3 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Extensions.Item +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events\{event-id}\extensions\{extension-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExtensionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/extensions/{extension%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 ExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/extensions/{extension%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property extensions for groups + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of open extensions defined for the event. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property extensions in groups + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property extensions for groups + /// + /// A + /// Configuration 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 collection of open extensions defined for the event. 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; + } + /// + /// Update the navigation property extensions in groups + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Extensions.Item.ExtensionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Extensions.Item.ExtensionItemRequestBuilder(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 ExtensionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The collection of open extensions defined for the event. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 ExtensionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs new file mode 100644 index 00000000000..75b0806c80b --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs @@ -0,0 +1,76 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Groups.Item.Calendar.Events.Item.Forward +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ForwardPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The ToRecipients property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ToRecipients { get; set; } +#nullable restore +#else + public List ToRecipients { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ForwardPostRequestBody() + { + 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Forward.ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Forward.ForwardPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs new file mode 100644 index 00000000000..16dc7cc4b3d --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Forward +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events\{event-id}\forward + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ForwardRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ForwardRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/forward", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/forward", rawUrl) + { + } + /// + /// This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Forward.ForwardPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// + /// 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Forward.ForwardPostRequestBody 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Forward.ForwardRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Forward.ForwardRequestBuilder(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 ForwardRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..12dce1909f6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Groups.Item.Calendar.Events.Item.Instances.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseDeltaFunctionResponse, 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Instances.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Instances.Delta.DeltaGetResponse(); + } + /// + /// 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.Calendar.Client.Models.Event.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/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..dd2540f5293 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,209 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Instances.Delta +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events\{event-id}\instances\delta() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Instances.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Instances.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Instances.Delta.DeltaRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Instances.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..d96d3efa018 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.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.Calendar.Client.Groups.Item.Calendar.Events.Item.Instances.Delta +{ + [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Instances.Delta.DeltaGetResponse, 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Instances.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Instances.Delta.DeltaResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs new file mode 100644 index 00000000000..45f0d6dbd56 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs @@ -0,0 +1,190 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Instances.Delta; +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Instances +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events\{event-id}\instances + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilder : BaseRequestBuilder + { + /// The delta property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Instances.Delta.DeltaRequestBuilder Delta + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Instances.Delta.DeltaRequestBuilder(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 InstancesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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}/groups/{group%2Did}/calendar/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. 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.Calendar.Client.Groups.Item.Calendar.Events.Item.Instances.InstancesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.Instances.InstancesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T19:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs new file mode 100644 index 00000000000..b096bb62f73 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.PermanentDelete +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events\{event-id}\permanentDelete + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermanentDeleteRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/permanentDelete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/permanentDelete", rawUrl) + { + } + /// + /// Permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. + /// + /// A + /// Configuration 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.Calendar.Client.Groups.Item.Calendar.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder(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 PermanentDeleteRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs new file mode 100644 index 00000000000..ccd2c5504ff --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -0,0 +1,66 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Groups.Item.Calendar.Events.Item.SnoozeReminder +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class SnoozeReminderPostRequestBody : 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 NewReminderTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? NewReminderTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone NewReminderTime { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public SnoozeReminderPostRequestBody() + { + 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.Calendar.Client.Groups.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone.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("NewReminderTime", NewReminderTime); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs new file mode 100644 index 00000000000..3e21efe387c --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.SnoozeReminder +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events\{event-id}\snoozeReminder + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SnoozeReminderRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SnoozeReminderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/snoozeReminder", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/snoozeReminder", rawUrl) + { + } + /// + /// Postpone a reminder for an event in a user calendar until a new time. + /// 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.Calendar.Client.Groups.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Postpone a reminder for an event in a user calendar until a new time. + /// + /// 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.Calendar.Client.Groups.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody 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.Calendar.Client.Groups.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder(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 SnoozeReminderRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs new file mode 100644 index 00000000000..18daf79d324 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -0,0 +1,81 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Groups.Item.Calendar.Events.Item.TentativelyAccept +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class TentativelyAcceptPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The ProposedNewTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot? ProposedNewTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot ProposedNewTime { get; set; } +#endif + /// The SendResponse property + public bool? SendResponse { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public TentativelyAcceptPostRequestBody() + { + AdditionalData = new Dictionary(); + SendResponse = false; + } + /// + /// 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.Calendar.Client.Groups.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot.CreateFromDiscriminatorValue); } }, + { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteBoolValue("SendResponse", SendResponse); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs new file mode 100644 index 00000000000..2b1fab0471c --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.TentativelyAccept +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\events\{event-id}\tentativelyAccept + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TentativelyAcceptRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TentativelyAcceptRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/tentativelyAccept", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/events/{event%2Did}/tentativelyAccept", rawUrl) + { + } + /// + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// 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.Calendar.Client.Groups.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// + /// 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.Calendar.Client.Groups.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody 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.Calendar.Client.Groups.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder(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 TentativelyAcceptRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/GetSchedule/GetSchedulePostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/GetSchedule/GetSchedulePostRequestBody.cs new file mode 100644 index 00000000000..d5f668ac347 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/GetSchedule/GetSchedulePostRequestBody.cs @@ -0,0 +1,90 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Groups.Item.Calendar.GetSchedule +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class GetSchedulePostRequestBody : 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 AvailabilityViewInterval property + public int? AvailabilityViewInterval { get; set; } + /// The EndTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? EndTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone EndTime { get; set; } +#endif + /// The Schedules property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Schedules { get; set; } +#nullable restore +#else + public List Schedules { get; set; } +#endif + /// The StartTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? StartTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone StartTime { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public GetSchedulePostRequestBody() + { + 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.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetSchedulePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetSchedulePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "AvailabilityViewInterval", n => { AvailabilityViewInterval = n.GetIntValue(); } }, + { "EndTime", n => { EndTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "Schedules", n => { Schedules = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "StartTime", n => { StartTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone.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.WriteIntValue("AvailabilityViewInterval", AvailabilityViewInterval); + writer.WriteObjectValue("EndTime", EndTime); + writer.WriteCollectionOfPrimitiveValues("Schedules", Schedules); + writer.WriteObjectValue("StartTime", StartTime); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs new file mode 100644 index 00000000000..8e343f92cd0 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Groups.Item.Calendar.GetSchedule +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class GetSchedulePostResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetSchedulePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetSchedulePostResponse(); + } + /// + /// 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.Calendar.Client.Models.ScheduleInformation.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/Calendar/wrapper/beta/Client/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs new file mode 100644 index 00000000000..713d16def94 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.GetSchedule +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\getSchedule + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetScheduleRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetScheduleRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/getSchedule", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetScheduleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/getSchedule", rawUrl) + { + } + /// + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// 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 PostAsGetSchedulePostResponseAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetSchedulePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsGetSchedulePostResponseAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetSchedulePostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetSchedulePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// 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 + [Obsolete("This method is obsolete. Use PostAsGetSchedulePostResponseAsync instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetSchedulePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetSchedulePostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetScheduleResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// + /// 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.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetSchedulePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetSchedulePostRequestBody 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.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetScheduleRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetScheduleRequestBuilder(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 GetScheduleRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/GetSchedule/GetScheduleResponse.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/GetSchedule/GetScheduleResponse.cs new file mode 100644 index 00000000000..867421b5c38 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/GetSchedule/GetScheduleResponse.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.Calendar.Client.Groups.Item.Calendar.GetSchedule +{ + [Obsolete("This class is obsolete. Use GetSchedulePostResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class GetScheduleResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetSchedulePostResponse, 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.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetScheduleResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetScheduleResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/PermanentDelete/PermanentDeleteRequestBuilder.cs new file mode 100644 index 00000000000..f4884633e53 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Calendar/PermanentDelete/PermanentDeleteRequestBuilder.cs @@ -0,0 +1,96 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.PermanentDelete +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendar\permanentDelete + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermanentDeleteRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/permanentDelete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/permanentDelete", rawUrl) + { + } + /// + /// Invoke action permanentDelete + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action permanentDelete + /// + /// A + /// Configuration 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.Calendar.Client.Groups.Item.Calendar.PermanentDelete.PermanentDeleteRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.PermanentDelete.PermanentDeleteRequestBuilder(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 PermanentDeleteRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/CalendarView/CalendarViewRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/CalendarView/CalendarViewRequestBuilder.cs new file mode 100644 index 00000000000..30e7feac675 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/CalendarView/CalendarViewRequestBuilder.cs @@ -0,0 +1,191 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.CalendarView.Delta; +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.CalendarView +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendarView + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarViewRequestBuilder : BaseRequestBuilder + { + /// The delta property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.CalendarView.Delta.DeltaRequestBuilder Delta + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.CalendarView.Delta.DeltaRequestBuilder(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 CalendarViewRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 CalendarViewRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get the occurrences, exceptions, and single instances of events in a calendar view defined by a time range, from the default calendar of a group. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the occurrences, exceptions, and single instances of events in a calendar view defined by a time range, from the default calendar of a group. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Groups.Item.CalendarView.CalendarViewRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.CalendarView.CalendarViewRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the occurrences, exceptions, and single instances of events in a calendar view defined by a time range, from the default calendar of a group. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarViewRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T19:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 CalendarViewRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/CalendarView/Delta/DeltaGetResponse.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/CalendarView/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..b905274e6c4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/CalendarView/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Groups.Item.CalendarView.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseDeltaFunctionResponse, 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.Calendar.Client.Groups.Item.CalendarView.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.CalendarView.Delta.DeltaGetResponse(); + } + /// + /// 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.Calendar.Client.Models.Event.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/Calendar/wrapper/beta/Client/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..09d3d09a005 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/CalendarView/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,209 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.CalendarView.Delta +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\calendarView\delta() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendarView/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.CalendarView.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.CalendarView.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Groups.Item.CalendarView.Delta.DeltaRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.CalendarView.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/CalendarView/Delta/DeltaResponse.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/CalendarView/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..00a71a00920 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/CalendarView/Delta/DeltaResponse.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.Calendar.Client.Groups.Item.CalendarView.Delta +{ + [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.CalendarView.Delta.DeltaGetResponse, 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.Calendar.Client.Groups.Item.CalendarView.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.CalendarView.Delta.DeltaResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b2fef83522a --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Count +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events\$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}/groups/{group%2Did}/events/$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}/groups/{group%2Did}/events/$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.Calendar.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.Calendar.Client.Groups.Item.Events.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.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/Calendar/wrapper/beta/Client/Groups/Item/Events/Delta/DeltaGetResponse.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..cfe68d84136 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Groups.Item.Events.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseDeltaFunctionResponse, 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.Calendar.Client.Groups.Item.Events.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Delta.DeltaGetResponse(); + } + /// + /// 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.Calendar.Client.Models.Event.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/Calendar/wrapper/beta/Client/Groups/Item/Events/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..3d1b2dbed58 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,209 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Delta +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events\delta() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Groups.Item.Events.Delta.DeltaRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Delta/DeltaResponse.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..f53c878d9fa --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Delta/DeltaResponse.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.Calendar.Client.Groups.Item.Events.Delta +{ + [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Delta.DeltaGetResponse, 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.Calendar.Client.Groups.Item.Events.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Delta.DeltaResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/EventsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/EventsRequestBuilder.cs new file mode 100644 index 00000000000..83c72053a9d --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/EventsRequestBuilder.cs @@ -0,0 +1,246 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Delta; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item; +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// The delta property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Delta.DeltaRequestBuilder Delta + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Delta.DeltaRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.groups.item.events.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.EventItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("event%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.EventItemRequestBuilder(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 EventsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events{?%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 EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Retrieve a list of event 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Use this API to create a new event. + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve a list of event 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; + } + /// + /// Use this API to create a new event. + /// + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Groups.Item.Events.EventsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.EventsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Retrieve a list of event objects. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilderGetQueryParameters + { + /// 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 EventsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Accept/AcceptPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Accept/AcceptPostRequestBody.cs new file mode 100644 index 00000000000..4740c08f82b --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Accept/AcceptPostRequestBody.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.Calendar.Client.Groups.Item.Events.Item.Accept +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AcceptPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The SendResponse property + public bool? SendResponse { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public AcceptPostRequestBody() + { + AdditionalData = new Dictionary(); + SendResponse = false; + } + /// + /// 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.Calendar.Client.Groups.Item.Events.Item.Accept.AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Accept.AcceptPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteBoolValue("SendResponse", SendResponse); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.cs new file mode 100644 index 00000000000..3b74d7bba1b --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Accept/AcceptRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Accept +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events\{event-id}\accept + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AcceptRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/accept", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/accept", rawUrl) + { + } + /// + /// Accept the specified event in a user calendar. + /// 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.Calendar.Client.Groups.Item.Events.Item.Accept.AcceptPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Accept.AcceptPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Accept the specified event in a user calendar. + /// + /// 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.Calendar.Client.Groups.Item.Events.Item.Accept.AcceptPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Accept.AcceptPostRequestBody 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.Calendar.Client.Groups.Item.Events.Item.Accept.AcceptRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Accept.AcceptRequestBuilder(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 AcceptRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs new file mode 100644 index 00000000000..b3b545077f2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.CreateUploadSession; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.Item; +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events\{event-id}\attachments + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// The createUploadSession property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder CreateUploadSession + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.groups.item.events.item.attachments.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.Item.AttachmentItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("attachment%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.Item.AttachmentItemRequestBuilder(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 AttachmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments{?%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 AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to attachments for groups + /// + /// 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.Calendar.Client.Models.Attachment body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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; + } + /// + /// Create new navigation property to attachments for groups + /// + /// 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.Calendar.Client.Models.Attachment body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment 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.Calendar.Client.Groups.Item.Events.Item.Attachments.AttachmentsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.AttachmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderGetQueryParameters + { + /// 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 AttachmentsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..626bbaa52ed --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.Count +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events\{event-id}\attachments\$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}/groups/{group%2Did}/events/{event%2Did}/attachments/$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}/groups/{group%2Did}/events/{event%2Did}/attachments/$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.Calendar.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.Calendar.Client.Groups.Item.Events.Item.Attachments.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.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/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs new file mode 100644 index 00000000000..33b54fb1062 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -0,0 +1,66 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Groups.Item.Events.Item.Attachments.CreateUploadSession +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CreateUploadSessionPostRequestBody : 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 AttachmentItem property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem? AttachmentItem { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem AttachmentItem { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CreateUploadSessionPostRequestBody() + { + 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.Calendar.Client.Groups.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem.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("AttachmentItem", AttachmentItem); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs new file mode 100644 index 00000000000..8baf4d5324d --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -0,0 +1,104 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.CreateUploadSession +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events\{event-id}\attachments\createUploadSession + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateUploadSessionRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CreateUploadSessionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments/createUploadSession", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments/createUploadSession", rawUrl) + { + } + /// + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// 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.Calendar.Client.Groups.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// + /// 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.Calendar.Client.Groups.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody 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.Calendar.Client.Groups.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(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 CreateUploadSessionRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs new file mode 100644 index 00000000000..9967672e619 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -0,0 +1,174 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.Item +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events\{event-id}\attachments\{attachment-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AttachmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments/{attachment%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 AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/attachments/{attachment%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property attachments for groups + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property attachments for groups + /// + /// A + /// Configuration 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 collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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.Calendar.Client.Groups.Item.Events.Item.Attachments.Item.AttachmentItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.Item.AttachmentItemRequestBuilder(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 AttachmentItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 AttachmentItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Calendar/CalendarRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Calendar/CalendarRequestBuilder.cs new file mode 100644 index 00000000000..55b8b0c828d --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Calendar/CalendarRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Calendar +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events\{event-id}\calendar + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CalendarRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/calendar{?%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 CalendarRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/calendar{?%24expand,%24select}", rawUrl) + { + } + /// + /// The calendar that contains the event. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The calendar that contains the event. Navigation property. 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.Calendar.Client.Groups.Item.Events.Item.Calendar.CalendarRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Calendar.CalendarRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The calendar that contains the event. Navigation property. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CalendarRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Cancel/CancelPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Cancel/CancelPostRequestBody.cs new file mode 100644 index 00000000000..656537b8b31 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Cancel/CancelPostRequestBody.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.Calendar.Client.Groups.Item.Events.Item.Cancel +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CancelPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CancelPostRequestBody() + { + 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.Calendar.Client.Groups.Item.Events.Item.Cancel.CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Cancel.CancelPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = 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("Comment", Comment); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.cs new file mode 100644 index 00000000000..530eaa954ca --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Cancel/CancelRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Cancel +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events\{event-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}/groups/{group%2Did}/events/{event%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}/groups/{group%2Did}/events/{event%2Did}/cancel", rawUrl) + { + } + /// + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// 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.Calendar.Client.Groups.Item.Events.Item.Cancel.CancelPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Cancel.CancelPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// + /// 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.Calendar.Client.Groups.Item.Events.Item.Cancel.CancelPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Cancel.CancelPostRequestBody 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.Calendar.Client.Groups.Item.Events.Item.Cancel.CancelRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.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/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Decline/DeclinePostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Decline/DeclinePostRequestBody.cs new file mode 100644 index 00000000000..e512e408ac7 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Decline/DeclinePostRequestBody.cs @@ -0,0 +1,81 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Groups.Item.Events.Item.Decline +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeclinePostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The ProposedNewTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot? ProposedNewTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot ProposedNewTime { get; set; } +#endif + /// The SendResponse property + public bool? SendResponse { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public DeclinePostRequestBody() + { + AdditionalData = new Dictionary(); + SendResponse = false; + } + /// + /// 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.Calendar.Client.Groups.Item.Events.Item.Decline.DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Decline.DeclinePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot.CreateFromDiscriminatorValue); } }, + { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteBoolValue("SendResponse", SendResponse); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.cs new file mode 100644 index 00000000000..ac57dfa26e0 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Decline/DeclineRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Decline +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events\{event-id}\decline + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeclineRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeclineRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/decline", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/decline", rawUrl) + { + } + /// + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// 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.Calendar.Client.Groups.Item.Events.Item.Decline.DeclinePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Decline.DeclinePostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// + /// 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.Calendar.Client.Groups.Item.Events.Item.Decline.DeclinePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Decline.DeclinePostRequestBody 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.Calendar.Client.Groups.Item.Events.Item.Decline.DeclineRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Decline.DeclineRequestBuilder(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 DeclineRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs new file mode 100644 index 00000000000..eae89d5b484 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.DismissReminder +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events\{event-id}\dismissReminder + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DismissReminderRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DismissReminderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/dismissReminder", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/dismissReminder", rawUrl) + { + } + /// + /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// + /// A + /// Configuration 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.Calendar.Client.Groups.Item.Events.Item.DismissReminder.DismissReminderRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.DismissReminder.DismissReminderRequestBuilder(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 DismissReminderRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/EventItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/EventItemRequestBuilder.cs new file mode 100644 index 00000000000..563587aa96e --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/EventItemRequestBuilder.cs @@ -0,0 +1,304 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Accept; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Calendar; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Cancel; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Decline; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.DismissReminder; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Extensions; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Forward; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Instances; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.PermanentDelete; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.SnoozeReminder; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.TentativelyAccept; +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events\{event-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilder : BaseRequestBuilder + { + /// The accept property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Accept.AcceptRequestBuilder Accept + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Accept.AcceptRequestBuilder(PathParameters, RequestAdapter); + } + /// The attachments property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.AttachmentsRequestBuilder Attachments + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.AttachmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// The calendar property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Calendar.CalendarRequestBuilder Calendar + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Calendar.CalendarRequestBuilder(PathParameters, RequestAdapter); + } + /// The cancel property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Cancel.CancelRequestBuilder Cancel + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Cancel.CancelRequestBuilder(PathParameters, RequestAdapter); + } + /// The decline property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Decline.DeclineRequestBuilder Decline + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Decline.DeclineRequestBuilder(PathParameters, RequestAdapter); + } + /// The dismissReminder property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.DismissReminder.DismissReminderRequestBuilder DismissReminder + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.DismissReminder.DismissReminderRequestBuilder(PathParameters, RequestAdapter); + } + /// The extensions property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Extensions.ExtensionsRequestBuilder Extensions + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Extensions.ExtensionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The forward property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Forward.ForwardRequestBuilder Forward + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Forward.ForwardRequestBuilder(PathParameters, RequestAdapter); + } + /// The instances property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Instances.InstancesRequestBuilder Instances + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Instances.InstancesRequestBuilder(PathParameters, RequestAdapter); + } + /// The permanentDelete property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder PermanentDelete + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder(PathParameters, RequestAdapter); + } + /// The snoozeReminder property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder SnoozeReminder + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder(PathParameters, RequestAdapter); + } + /// The tentativelyAccept property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder TentativelyAccept + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder(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 EventItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%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 EventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete an event 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get an event 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update an event 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete an event 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; + } + /// + /// Get an event 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 an event 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Groups.Item.Events.Item.EventItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.EventItemRequestBuilder(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 EventItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get an event object. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 EventItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..2d00b60e621 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Extensions.Count +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events\{event-id}\extensions\$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}/groups/{group%2Did}/events/{event%2Did}/extensions/$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}/groups/{group%2Did}/events/{event%2Did}/extensions/$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.Calendar.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.Calendar.Client.Groups.Item.Events.Item.Extensions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Extensions.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/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs new file mode 100644 index 00000000000..8dc93a88d17 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -0,0 +1,239 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Extensions.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Extensions.Item; +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Extensions +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events\{event-id}\extensions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Extensions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Extensions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.groups.item.events.item.extensions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Extensions.Item.ExtensionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("extension%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Extensions.Item.ExtensionItemRequestBuilder(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 ExtensionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/extensions{?%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 ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource 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 ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Groups.Item.Events.Item.Extensions.ExtensionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Extensions.ExtensionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderGetQueryParameters + { + /// 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 ExtensionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs new file mode 100644 index 00000000000..c614e8a7169 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -0,0 +1,230 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Extensions.Item +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events\{event-id}\extensions\{extension-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExtensionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/extensions/{extension%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 ExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/extensions/{extension%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property extensions for groups + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property extensions in groups + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property extensions for groups + /// + /// A + /// Configuration 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 an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource 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 ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 extensions in groups + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Groups.Item.Events.Item.Extensions.Item.ExtensionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Extensions.Item.ExtensionItemRequestBuilder(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 ExtensionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 ExtensionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Forward/ForwardPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Forward/ForwardPostRequestBody.cs new file mode 100644 index 00000000000..e9e04d11e97 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Forward/ForwardPostRequestBody.cs @@ -0,0 +1,76 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Groups.Item.Events.Item.Forward +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ForwardPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The ToRecipients property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ToRecipients { get; set; } +#nullable restore +#else + public List ToRecipients { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ForwardPostRequestBody() + { + 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.Calendar.Client.Groups.Item.Events.Item.Forward.ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Forward.ForwardPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.cs new file mode 100644 index 00000000000..3236b462762 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Forward/ForwardRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Forward +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events\{event-id}\forward + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ForwardRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ForwardRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/forward", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/forward", rawUrl) + { + } + /// + /// This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// 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.Calendar.Client.Groups.Item.Events.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Forward.ForwardPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// + /// 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.Calendar.Client.Groups.Item.Events.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Forward.ForwardPostRequestBody 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.Calendar.Client.Groups.Item.Events.Item.Forward.ForwardRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Forward.ForwardRequestBuilder(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 ForwardRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..7abed0084d5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Groups.Item.Events.Item.Instances.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseDeltaFunctionResponse, 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.Calendar.Client.Groups.Item.Events.Item.Instances.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Instances.Delta.DeltaGetResponse(); + } + /// + /// 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.Calendar.Client.Models.Event.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/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..1978f03651a --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,209 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Instances.Delta +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events\{event-id}\instances\delta() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Instances.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Instances.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Groups.Item.Events.Item.Instances.Delta.DeltaRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Instances.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Instances/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..b6c3fdb4373 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Instances/Delta/DeltaResponse.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.Calendar.Client.Groups.Item.Events.Item.Instances.Delta +{ + [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Instances.Delta.DeltaGetResponse, 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.Calendar.Client.Groups.Item.Events.Item.Instances.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Instances.Delta.DeltaResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Instances/InstancesRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Instances/InstancesRequestBuilder.cs new file mode 100644 index 00000000000..208ca94c947 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/Instances/InstancesRequestBuilder.cs @@ -0,0 +1,190 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Instances.Delta; +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Instances +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events\{event-id}\instances + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilder : BaseRequestBuilder + { + /// The delta property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Instances.Delta.DeltaRequestBuilder Delta + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Instances.Delta.DeltaRequestBuilder(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 InstancesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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}/groups/{group%2Did}/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. 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.Calendar.Client.Groups.Item.Events.Item.Instances.InstancesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Instances.InstancesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T19:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs new file mode 100644 index 00000000000..566f3b2af30 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.PermanentDelete +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events\{event-id}\permanentDelete + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermanentDeleteRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/permanentDelete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/permanentDelete", rawUrl) + { + } + /// + /// Permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. + /// + /// A + /// Configuration 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.Calendar.Client.Groups.Item.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder(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 PermanentDeleteRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs new file mode 100644 index 00000000000..eef9b7d7c6c --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -0,0 +1,66 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Groups.Item.Events.Item.SnoozeReminder +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class SnoozeReminderPostRequestBody : 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 NewReminderTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? NewReminderTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone NewReminderTime { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public SnoozeReminderPostRequestBody() + { + 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.Calendar.Client.Groups.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone.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("NewReminderTime", NewReminderTime); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs new file mode 100644 index 00000000000..f081a156a80 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.SnoozeReminder +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events\{event-id}\snoozeReminder + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SnoozeReminderRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SnoozeReminderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/snoozeReminder", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/snoozeReminder", rawUrl) + { + } + /// + /// Postpone a reminder for an event in a user calendar until a new time. + /// 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.Calendar.Client.Groups.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Postpone a reminder for an event in a user calendar until a new time. + /// + /// 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.Calendar.Client.Groups.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody 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.Calendar.Client.Groups.Item.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder(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 SnoozeReminderRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs new file mode 100644 index 00000000000..186a5333306 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -0,0 +1,81 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Groups.Item.Events.Item.TentativelyAccept +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class TentativelyAcceptPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The ProposedNewTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot? ProposedNewTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot ProposedNewTime { get; set; } +#endif + /// The SendResponse property + public bool? SendResponse { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public TentativelyAcceptPostRequestBody() + { + AdditionalData = new Dictionary(); + SendResponse = false; + } + /// + /// 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.Calendar.Client.Groups.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot.CreateFromDiscriminatorValue); } }, + { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteBoolValue("SendResponse", SendResponse); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs new file mode 100644 index 00000000000..200eb6f3f42 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.TentativelyAccept +{ + /// + /// Builds and executes requests for operations under \groups\{group-id}\events\{event-id}\tentativelyAccept + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TentativelyAcceptRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TentativelyAcceptRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/tentativelyAccept", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/events/{event%2Did}/tentativelyAccept", rawUrl) + { + } + /// + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// 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.Calendar.Client.Groups.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// + /// 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.Calendar.Client.Groups.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody 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.Calendar.Client.Groups.Item.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder(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 TentativelyAcceptRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Groups/Item/GroupItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Groups/Item/GroupItemRequestBuilder.cs new file mode 100644 index 00000000000..dd03822f7c5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Groups/Item/GroupItemRequestBuilder.cs @@ -0,0 +1,53 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.CalendarView; +using Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item +{ + /// + /// Builds and executes requests for operations under \groups\{group-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GroupItemRequestBuilder : BaseRequestBuilder + { + /// The calendar property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarRequestBuilder Calendar + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.CalendarRequestBuilder(PathParameters, RequestAdapter); + } + /// The calendarView property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.CalendarView.CalendarViewRequestBuilder CalendarView + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.CalendarView.CalendarViewRequestBuilder(PathParameters, RequestAdapter); + } + /// The events property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.EventsRequestBuilder Events + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.EventsRequestBuilder(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 GroupItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}", rawUrl) + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/Attachment.cs b/src/Calendar/wrapper/beta/Client/Models/Attachment.cs new file mode 100644 index 00000000000..a61644e538c --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/Attachment.cs @@ -0,0 +1,78 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class Attachment : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Entity, IParsable + #pragma warning restore CS1591 + { + /// The MIME type. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ContentType { get; set; } +#nullable restore +#else + public string ContentType { get; set; } +#endif + /// true if the attachment is an inline attachment; otherwise, false. + public bool? IsInline { get; set; } + /// The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + public DateTimeOffset? LastModifiedDateTime { get; set; } + /// The display name of the attachment. This does not need to be the actual file name. +#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 + /// The length of the attachment in bytes. + public int? Size { 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.Calendar.Client.Models.Attachment CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "contentType", n => { ContentType = n.GetStringValue(); } }, + { "isInline", n => { IsInline = n.GetBoolValue(); } }, + { "lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "size", n => { Size = 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.WriteStringValue("contentType", ContentType); + writer.WriteBoolValue("isInline", IsInline); + writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); + writer.WriteStringValue("name", Name); + writer.WriteIntValue("size", Size); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/AttachmentCollectionResponse.cs b/src/Calendar/wrapper/beta/Client/Models/AttachmentCollectionResponse.cs new file mode 100644 index 00000000000..e4d3cfe93f6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/AttachmentCollectionResponse.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AttachmentCollectionResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Models.AttachmentCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentCollectionResponse(); + } + /// + /// 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.Calendar.Client.Models.Attachment.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/Calendar/wrapper/beta/Client/Models/AttachmentItem.cs b/src/Calendar/wrapper/beta/Client/Models/AttachmentItem.cs new file mode 100644 index 00000000000..81ab89fc9ea --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/AttachmentItem.cs @@ -0,0 +1,107 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AttachmentItem : 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 type of attachment. The possible values are: file, item, reference. Required. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentType? AttachmentType { get; set; } + /// The CID or Content-Id of the attachment for referencing in case of in-line attachments using <img src='cid:contentId'> tag in HTML messages. Optional. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ContentId { get; set; } +#nullable restore +#else + public string ContentId { get; set; } +#endif + /// The nature of the data in the attachment. Optional. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ContentType { get; set; } +#nullable restore +#else + public string ContentType { get; set; } +#endif + /// true if the attachment is an inline attachment; otherwise, false. Optional. + public bool? IsInline { get; set; } + /// The display name of the attachment. This can be a descriptive string and doesn't have to be the actual file name. Required. +#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 + /// 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 length of the attachment in bytes. Required. + public long? Size { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public AttachmentItem() + { + 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.Calendar.Client.Models.AttachmentItem CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "attachmentType", n => { AttachmentType = n.GetEnumValue(); } }, + { "contentId", n => { ContentId = n.GetStringValue(); } }, + { "contentType", n => { ContentType = n.GetStringValue(); } }, + { "isInline", n => { IsInline = n.GetBoolValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "size", n => { Size = 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.WriteEnumValue("attachmentType", AttachmentType); + writer.WriteStringValue("contentId", ContentId); + writer.WriteStringValue("contentType", ContentType); + writer.WriteBoolValue("isInline", IsInline); + writer.WriteStringValue("name", Name); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteLongValue("size", Size); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/AttachmentType.cs b/src/Calendar/wrapper/beta/Client/Models/AttachmentType.cs new file mode 100644 index 00000000000..9713a8711f1 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/AttachmentType.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum AttachmentType + #pragma warning restore CS1591 + { + [EnumMember(Value = "file")] + #pragma warning disable CS1591 + File, + #pragma warning restore CS1591 + [EnumMember(Value = "item")] + #pragma warning disable CS1591 + Item, + #pragma warning restore CS1591 + [EnumMember(Value = "reference")] + #pragma warning disable CS1591 + Reference, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/Attendee.cs b/src/Calendar/wrapper/beta/Client/Models/Attendee.cs new file mode 100644 index 00000000000..7ca1c0845a7 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/Attendee.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class Attendee : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttendeeBase, IParsable + #pragma warning restore CS1591 + { + /// An alternate date/time proposed by the attendee for a meeting request to start and end. If the attendee hasn't proposed another time, then this property isn't included in a response of a GET event. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot? ProposedNewTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot ProposedNewTime { get; set; } +#endif + /// The attendee's response (none, accepted, declined, etc.) for the event and date-time that the response was sent. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ResponseStatus? Status { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ResponseStatus Status { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public Attendee() : base() + { + OdataType = "#microsoft.graph.attendee"; + } + /// + /// 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.Calendar.Client.Models.Attendee CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attendee(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "proposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot.CreateFromDiscriminatorValue); } }, + { "status", n => { Status = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ResponseStatus.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// 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("proposedNewTime", ProposedNewTime); + writer.WriteObjectValue("status", Status); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/AttendeeBase.cs b/src/Calendar/wrapper/beta/Client/Models/AttendeeBase.cs new file mode 100644 index 00000000000..7af395be4e8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/AttendeeBase.cs @@ -0,0 +1,62 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AttendeeBase : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient, IParsable + #pragma warning restore CS1591 + { + /// The type of attendee. The possible values are: required, optional, resource. Currently if the attendee is a person, findMeetingTimes always considers the person is of the Required type. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttendeeType? Type { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public AttendeeBase() : base() + { + OdataType = "#microsoft.graph.attendeeBase"; + } + /// + /// 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.Calendar.Client.Models.AttendeeBase CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch + { + "#microsoft.graph.attendee" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attendee(), + _ => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttendeeBase(), + }; + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "type", n => { Type = 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.WriteEnumValue("type", Type); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/AttendeeType.cs b/src/Calendar/wrapper/beta/Client/Models/AttendeeType.cs new file mode 100644 index 00000000000..e6d31523b1b --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/AttendeeType.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum AttendeeType + #pragma warning restore CS1591 + { + [EnumMember(Value = "required")] + #pragma warning disable CS1591 + Required, + #pragma warning restore CS1591 + [EnumMember(Value = "optional")] + #pragma warning disable CS1591 + Optional, + #pragma warning restore CS1591 + [EnumMember(Value = "resource")] + #pragma warning disable CS1591 + Resource, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/BaseCollectionPaginationCountResponse.cs b/src/Calendar/wrapper/beta/Client/Models/BaseCollectionPaginationCountResponse.cs new file mode 100644 index 00000000000..d507df1b635 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/BaseCollectionPaginationCountResponse.cs @@ -0,0 +1,69 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class BaseCollectionPaginationCountResponse : 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 OdataCount property + public long? OdataCount { get; set; } + /// The OdataNextLink property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataNextLink { get; set; } +#nullable restore +#else + public string OdataNextLink { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public BaseCollectionPaginationCountResponse() + { + 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.Calendar.Client.Models.BaseCollectionPaginationCountResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseCollectionPaginationCountResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "@odata.count", n => { OdataCount = n.GetLongValue(); } }, + { "@odata.nextLink", n => { OdataNextLink = 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.WriteLongValue("@odata.count", OdataCount); + writer.WriteStringValue("@odata.nextLink", OdataNextLink); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/BaseDeltaFunctionResponse.cs b/src/Calendar/wrapper/beta/Client/Models/BaseDeltaFunctionResponse.cs new file mode 100644 index 00000000000..1b791fe2111 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/BaseDeltaFunctionResponse.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class BaseDeltaFunctionResponse : 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 OdataDeltaLink property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataDeltaLink { get; set; } +#nullable restore +#else + public string OdataDeltaLink { get; set; } +#endif + /// The OdataNextLink property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataNextLink { get; set; } +#nullable restore +#else + public string OdataNextLink { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public BaseDeltaFunctionResponse() + { + 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.Calendar.Client.Models.BaseDeltaFunctionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseDeltaFunctionResponse(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "@odata.deltaLink", n => { OdataDeltaLink = n.GetStringValue(); } }, + { "@odata.nextLink", n => { OdataNextLink = 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.deltaLink", OdataDeltaLink); + writer.WriteStringValue("@odata.nextLink", OdataNextLink); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/BaseMapFeature.cs b/src/Calendar/wrapper/beta/Client/Models/BaseMapFeature.cs new file mode 100644 index 00000000000..9de762deb81 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/BaseMapFeature.cs @@ -0,0 +1,66 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class BaseMapFeature : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Entity, IParsable + #pragma warning restore CS1591 + { + /// Concatenated key-value pair of all properties of a GeoJSON file for this baseMapFeature. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Properties { get; set; } +#nullable restore +#else + public string Properties { 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.Calendar.Client.Models.BaseMapFeature CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch + { + "#microsoft.graph.buildingMap" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingMap(), + "#microsoft.graph.fixtureMap" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap(), + "#microsoft.graph.footprintMap" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap(), + "#microsoft.graph.levelMap" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap(), + "#microsoft.graph.sectionMap" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap(), + "#microsoft.graph.unitMap" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap(), + _ => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseMapFeature(), + }; + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "properties", n => { Properties = 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("properties", Properties); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/BodyType.cs b/src/Calendar/wrapper/beta/Client/Models/BodyType.cs new file mode 100644 index 00000000000..e0fae7c1e4f --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/BodyType.cs @@ -0,0 +1,20 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum BodyType + #pragma warning restore CS1591 + { + [EnumMember(Value = "text")] + #pragma warning disable CS1591 + Text, + #pragma warning restore CS1591 + [EnumMember(Value = "html")] + #pragma warning disable CS1591 + Html, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/BookingType.cs b/src/Calendar/wrapper/beta/Client/Models/BookingType.cs new file mode 100644 index 00000000000..2692475a3e7 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/BookingType.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum BookingType + #pragma warning restore CS1591 + { + [EnumMember(Value = "unknown")] + #pragma warning disable CS1591 + Unknown, + #pragma warning restore CS1591 + [EnumMember(Value = "standard")] + #pragma warning disable CS1591 + Standard, + #pragma warning restore CS1591 + [EnumMember(Value = "reserved")] + #pragma warning disable CS1591 + Reserved, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/Building.cs b/src/Calendar/wrapper/beta/Client/Models/Building.cs new file mode 100644 index 00000000000..6eb6b0c3566 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/Building.cs @@ -0,0 +1,81 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class Building : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place, IParsable + #pragma warning restore CS1591 + { + /// Indicates whether the building has a wireless network. + public bool? HasWiFi { get; set; } + /// Map file associated with a building in Places. This object is the IMDF-format representation of building.geojson. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingMap? Map { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingMap Map { get; set; } +#endif + /// A set of links to external resources that are associated with the building. Inherited from place. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ResourceLinks { get; set; } +#nullable restore +#else + public List ResourceLinks { get; set; } +#endif + /// The wifiState property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceFeatureEnablement? WifiState { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Building() : base() + { + OdataType = "#microsoft.graph.building"; + } + /// + /// 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.Calendar.Client.Models.Building CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Building(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "hasWiFi", n => { HasWiFi = n.GetBoolValue(); } }, + { "map", n => { Map = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingMap.CreateFromDiscriminatorValue); } }, + { "resourceLinks", n => { ResourceLinks = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ResourceLink.CreateFromDiscriminatorValue)?.AsList(); } }, + { "wifiState", n => { WifiState = 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.WriteBoolValue("hasWiFi", HasWiFi); + writer.WriteObjectValue("map", Map); + writer.WriteCollectionOfObjectValues("resourceLinks", ResourceLinks); + writer.WriteEnumValue("wifiState", WifiState); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/BuildingCollectionResponse.cs b/src/Calendar/wrapper/beta/Client/Models/BuildingCollectionResponse.cs new file mode 100644 index 00000000000..9e9e24edaed --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/BuildingCollectionResponse.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class BuildingCollectionResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Models.BuildingCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingCollectionResponse(); + } + /// + /// 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.Calendar.Client.Models.Building.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/Calendar/wrapper/beta/Client/Models/BuildingMap.cs b/src/Calendar/wrapper/beta/Client/Models/BuildingMap.cs new file mode 100644 index 00000000000..4afead2c074 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/BuildingMap.cs @@ -0,0 +1,83 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class BuildingMap : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseMapFeature, IParsable + #pragma warning restore CS1591 + { + /// Represents the approximate physical extent of a referenced building. It corresponds to footprint.geojson in IMDF format. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Footprints { get; set; } +#nullable restore +#else + public List Footprints { get; set; } +#endif + /// Represents a physical floor structure within a building. It corresponds to level.geojson in IMDF format. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Levels { get; set; } +#nullable restore +#else + public List Levels { get; set; } +#endif + /// Identifier for the building to which this buildingMap belongs. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PlaceId { get; set; } +#nullable restore +#else + public string PlaceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public BuildingMap() : base() + { + OdataType = "#microsoft.graph.buildingMap"; + } + /// + /// 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.Calendar.Client.Models.BuildingMap CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingMap(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "footprints", n => { Footprints = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap.CreateFromDiscriminatorValue)?.AsList(); } }, + { "levels", n => { Levels = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap.CreateFromDiscriminatorValue)?.AsList(); } }, + { "placeId", n => { PlaceId = 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.WriteCollectionOfObjectValues("footprints", Footprints); + writer.WriteCollectionOfObjectValues("levels", Levels); + writer.WriteStringValue("placeId", PlaceId); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/Calendar.cs b/src/Calendar/wrapper/beta/Client/Models/Calendar.cs new file mode 100644 index 00000000000..9741830543e --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/Calendar.cs @@ -0,0 +1,196 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class Calendar : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Entity, IParsable + #pragma warning restore CS1591 + { + /// Represent the online meeting service providers that can be used to create online meetings in this calendar. The possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AllowedOnlineMeetingProviders { get; set; } +#nullable restore +#else + public List AllowedOnlineMeetingProviders { get; set; } +#endif + /// The calendarGroup in which to create the calendar. If the user has never explicitly set a group for the calendar, this property is null. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? CalendarGroupId { get; set; } +#nullable restore +#else + public string CalendarGroupId { get; set; } +#endif + /// The permissions of the users with whom the calendar is shared. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? CalendarPermissions { get; set; } +#nullable restore +#else + public List CalendarPermissions { get; set; } +#endif + /// The calendar view for the calendar. Navigation property. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? CalendarView { get; set; } +#nullable restore +#else + public List CalendarView { get; set; } +#endif + /// true if the user can write to the calendar, false otherwise. This property is true for the user who created the calendar. This property is also true for a user who has been shared a calendar and granted write access, through an Outlook client or the corresponding calendarPermission resource. Read-only. + public bool? CanEdit { get; set; } + /// true if the user has the permission to share the calendar, false otherwise. Only the user who created the calendar can share it. Read-only. + public bool? CanShare { get; set; } + /// true if the user can read calendar items that have been marked private, false otherwise. This property is set through an Outlook client or the corresponding calendarPermission resource. Read-only. + public bool? CanViewPrivateItems { get; set; } + /// Identifies the version of the calendar object. Every time the calendar is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ChangeKey { get; set; } +#nullable restore +#else + public string ChangeKey { get; set; } +#endif + /// Specifies the color theme to distinguish the calendar from other calendars in a UI. The property values are: auto, lightBlue, lightGreen, lightOrange, lightGray, lightYellow, lightTeal, lightPink, lightBrown, lightRed, maxColor. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarColor? Color { get; set; } + /// The default online meeting provider for meetings sent from this calendar. The possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType? DefaultOnlineMeetingProvider { get; set; } + /// The events in the calendar. Navigation property. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Events { get; set; } +#nullable restore +#else + public List Events { get; set; } +#endif + /// The calendar color, expressed in a hex color code of three hexadecimal values, each ranging from 00 to FF and representing the red, green, or blue components of the color in the RGB color space. If the user has never explicitly set a color for the calendar, this property is empty. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? HexColor { get; set; } +#nullable restore +#else + public string HexColor { get; set; } +#endif + /// true if this is the default calendar where new events are created by default, false otherwise. + public bool? IsDefaultCalendar { get; set; } + /// Indicates whether this user calendar can be deleted from the user mailbox. + public bool? IsRemovable { get; set; } + /// true if the user has shared the calendar with other users, false otherwise. Since only the user who created the calendar can share it, isShared and isSharedWithMe cannot be true for the same user. This property is set when sharing is initiated in an Outlook client, and can be reset when the sharing is cancelled through the client or the corresponding calendarPermission resource. Read-only. + public bool? IsShared { get; set; } + /// true if the user has been shared this calendar, false otherwise. This property is always false for a calendar owner. This property is set when sharing is initiated in an Outlook client, and can be reset when the sharing is cancelled through the client or the corresponding calendarPermission resource. Read-only. + public bool? IsSharedWithMe { get; set; } + /// Indicates whether this user calendar supports tracking of meeting responses. Only meeting invites sent from users' primary calendars support tracking of meeting responses. + public bool? IsTallyingResponses { get; set; } + /// The collection of multi-value extended properties defined for the calendar. Read-only. Nullable. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? MultiValueExtendedProperties { get; set; } +#nullable restore +#else + public List MultiValueExtendedProperties { get; set; } +#endif + /// The calendar name. +#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 + /// If set, this represents the user who created or added the calendar. For a calendar that the user created or added, the owner property is set to the user. For a calendar shared with the user, the owner property is set to the person who shared that calendar with the user. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress? Owner { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress Owner { get; set; } +#endif + /// The collection of single-value extended properties defined for the calendar. Read-only. Nullable. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SingleValueExtendedProperties { get; set; } +#nullable restore +#else + public List SingleValueExtendedProperties { 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.Calendar.Client.Models.Calendar CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "allowedOnlineMeetingProviders", n => { AllowedOnlineMeetingProviders = n.GetCollectionOfEnumValues()?.AsList(); } }, + { "calendarGroupId", n => { CalendarGroupId = n.GetStringValue(); } }, + { "calendarPermissions", n => { CalendarPermissions = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission.CreateFromDiscriminatorValue)?.AsList(); } }, + { "calendarView", n => { CalendarView = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue)?.AsList(); } }, + { "canEdit", n => { CanEdit = n.GetBoolValue(); } }, + { "canShare", n => { CanShare = n.GetBoolValue(); } }, + { "canViewPrivateItems", n => { CanViewPrivateItems = n.GetBoolValue(); } }, + { "changeKey", n => { ChangeKey = n.GetStringValue(); } }, + { "color", n => { Color = n.GetEnumValue(); } }, + { "defaultOnlineMeetingProvider", n => { DefaultOnlineMeetingProvider = n.GetEnumValue(); } }, + { "events", n => { Events = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue)?.AsList(); } }, + { "hexColor", n => { HexColor = n.GetStringValue(); } }, + { "isDefaultCalendar", n => { IsDefaultCalendar = n.GetBoolValue(); } }, + { "isRemovable", n => { IsRemovable = n.GetBoolValue(); } }, + { "isShared", n => { IsShared = n.GetBoolValue(); } }, + { "isSharedWithMe", n => { IsSharedWithMe = n.GetBoolValue(); } }, + { "isTallyingResponses", n => { IsTallyingResponses = n.GetBoolValue(); } }, + { "multiValueExtendedProperties", n => { MultiValueExtendedProperties = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.MultiValueLegacyExtendedProperty.CreateFromDiscriminatorValue)?.AsList(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "owner", n => { Owner = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress.CreateFromDiscriminatorValue); } }, + { "singleValueExtendedProperties", n => { SingleValueExtendedProperties = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.SingleValueLegacyExtendedProperty.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.WriteCollectionOfEnumValues("allowedOnlineMeetingProviders", AllowedOnlineMeetingProviders); + writer.WriteStringValue("calendarGroupId", CalendarGroupId); + writer.WriteCollectionOfObjectValues("calendarPermissions", CalendarPermissions); + writer.WriteCollectionOfObjectValues("calendarView", CalendarView); + writer.WriteBoolValue("canEdit", CanEdit); + writer.WriteBoolValue("canShare", CanShare); + writer.WriteBoolValue("canViewPrivateItems", CanViewPrivateItems); + writer.WriteStringValue("changeKey", ChangeKey); + writer.WriteEnumValue("color", Color); + writer.WriteEnumValue("defaultOnlineMeetingProvider", DefaultOnlineMeetingProvider); + writer.WriteCollectionOfObjectValues("events", Events); + writer.WriteStringValue("hexColor", HexColor); + writer.WriteBoolValue("isDefaultCalendar", IsDefaultCalendar); + writer.WriteBoolValue("isRemovable", IsRemovable); + writer.WriteBoolValue("isShared", IsShared); + writer.WriteBoolValue("isSharedWithMe", IsSharedWithMe); + writer.WriteBoolValue("isTallyingResponses", IsTallyingResponses); + writer.WriteCollectionOfObjectValues("multiValueExtendedProperties", MultiValueExtendedProperties); + writer.WriteStringValue("name", Name); + writer.WriteObjectValue("owner", Owner); + writer.WriteCollectionOfObjectValues("singleValueExtendedProperties", SingleValueExtendedProperties); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/CalendarCollectionResponse.cs b/src/Calendar/wrapper/beta/Client/Models/CalendarCollectionResponse.cs new file mode 100644 index 00000000000..20a64b9235f --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/CalendarCollectionResponse.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CalendarCollectionResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Models.CalendarCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarCollectionResponse(); + } + /// + /// 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.Calendar.Client.Models.Calendar.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/Calendar/wrapper/beta/Client/Models/CalendarColor.cs b/src/Calendar/wrapper/beta/Client/Models/CalendarColor.cs new file mode 100644 index 00000000000..655b77f3214 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/CalendarColor.cs @@ -0,0 +1,56 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum CalendarColor + #pragma warning restore CS1591 + { + [EnumMember(Value = "auto")] + #pragma warning disable CS1591 + Auto, + #pragma warning restore CS1591 + [EnumMember(Value = "lightBlue")] + #pragma warning disable CS1591 + LightBlue, + #pragma warning restore CS1591 + [EnumMember(Value = "lightGreen")] + #pragma warning disable CS1591 + LightGreen, + #pragma warning restore CS1591 + [EnumMember(Value = "lightOrange")] + #pragma warning disable CS1591 + LightOrange, + #pragma warning restore CS1591 + [EnumMember(Value = "lightGray")] + #pragma warning disable CS1591 + LightGray, + #pragma warning restore CS1591 + [EnumMember(Value = "lightYellow")] + #pragma warning disable CS1591 + LightYellow, + #pragma warning restore CS1591 + [EnumMember(Value = "lightTeal")] + #pragma warning disable CS1591 + LightTeal, + #pragma warning restore CS1591 + [EnumMember(Value = "lightPink")] + #pragma warning disable CS1591 + LightPink, + #pragma warning restore CS1591 + [EnumMember(Value = "lightBrown")] + #pragma warning disable CS1591 + LightBrown, + #pragma warning restore CS1591 + [EnumMember(Value = "lightRed")] + #pragma warning disable CS1591 + LightRed, + #pragma warning restore CS1591 + [EnumMember(Value = "maxColor")] + #pragma warning disable CS1591 + MaxColor, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/CalendarGroup.cs b/src/Calendar/wrapper/beta/Client/Models/CalendarGroup.cs new file mode 100644 index 00000000000..fc2e888389f --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/CalendarGroup.cs @@ -0,0 +1,80 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CalendarGroup : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Entity, IParsable + #pragma warning restore CS1591 + { + /// The calendars in the calendar group. Navigation property. Read-only. Nullable. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Calendars { get; set; } +#nullable restore +#else + public List Calendars { get; set; } +#endif + /// Identifies the version of the calendar group. Every time the calendar group is changed, ChangeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ChangeKey { get; set; } +#nullable restore +#else + public string ChangeKey { get; set; } +#endif + /// The class identifier. Read-only. + public Guid? ClassId { get; set; } + /// The group name. +#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.Calendar.Client.Models.CalendarGroup CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "calendars", n => { Calendars = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar.CreateFromDiscriminatorValue)?.AsList(); } }, + { "changeKey", n => { ChangeKey = n.GetStringValue(); } }, + { "classId", n => { ClassId = n.GetGuidValue(); } }, + { "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.WriteCollectionOfObjectValues("calendars", Calendars); + writer.WriteStringValue("changeKey", ChangeKey); + writer.WriteGuidValue("classId", ClassId); + writer.WriteStringValue("name", Name); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/CalendarGroupCollectionResponse.cs b/src/Calendar/wrapper/beta/Client/Models/CalendarGroupCollectionResponse.cs new file mode 100644 index 00000000000..a6772606ccd --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/CalendarGroupCollectionResponse.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CalendarGroupCollectionResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Models.CalendarGroupCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroupCollectionResponse(); + } + /// + /// 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.Calendar.Client.Models.CalendarGroup.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/Calendar/wrapper/beta/Client/Models/CalendarPermission.cs b/src/Calendar/wrapper/beta/Client/Models/CalendarPermission.cs new file mode 100644 index 00000000000..ea0a5d7ac6a --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/CalendarPermission.cs @@ -0,0 +1,78 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CalendarPermission : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Entity, IParsable + #pragma warning restore CS1591 + { + /// List of allowed sharing or delegating permission levels for the calendar. The possible values are: none, freeBusyRead, limitedRead, read, write, delegateWithoutPrivateEventAccess, delegateWithPrivateEventAccess, custom. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AllowedRoles { get; set; } +#nullable restore +#else + public List AllowedRoles { get; set; } +#endif + /// Represents a share recipient or delegate who has access to the calendar. For the 'My Organization' share recipient, the address property is null. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress? EmailAddress { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress EmailAddress { get; set; } +#endif + /// True if the user in context (share recipient or delegate) is inside the same organization as the calendar owner. + public bool? IsInsideOrganization { get; set; } + /// True if the user can be removed from the list of recipients or delegates for the specified calendar, false otherwise. The 'My organization' user determines the permissions other people within your organization have to the given calendar. You can't remove 'My organization' as a recipient to a calendar. + public bool? IsRemovable { get; set; } + /// Current permission level of the calendar share recipient or delegate. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarRoleType? Role { 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.Calendar.Client.Models.CalendarPermission CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "allowedRoles", n => { AllowedRoles = n.GetCollectionOfEnumValues()?.AsList(); } }, + { "emailAddress", n => { EmailAddress = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress.CreateFromDiscriminatorValue); } }, + { "isInsideOrganization", n => { IsInsideOrganization = n.GetBoolValue(); } }, + { "isRemovable", n => { IsRemovable = n.GetBoolValue(); } }, + { "role", n => { Role = 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.WriteCollectionOfEnumValues("allowedRoles", AllowedRoles); + writer.WriteObjectValue("emailAddress", EmailAddress); + writer.WriteBoolValue("isInsideOrganization", IsInsideOrganization); + writer.WriteBoolValue("isRemovable", IsRemovable); + writer.WriteEnumValue("role", Role); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/CalendarPermissionCollectionResponse.cs b/src/Calendar/wrapper/beta/Client/Models/CalendarPermissionCollectionResponse.cs new file mode 100644 index 00000000000..6bdad44fe9c --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/CalendarPermissionCollectionResponse.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CalendarPermissionCollectionResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Models.CalendarPermissionCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermissionCollectionResponse(); + } + /// + /// 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.Calendar.Client.Models.CalendarPermission.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/Calendar/wrapper/beta/Client/Models/CalendarRoleType.cs b/src/Calendar/wrapper/beta/Client/Models/CalendarRoleType.cs new file mode 100644 index 00000000000..a2e63217d1a --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/CalendarRoleType.cs @@ -0,0 +1,44 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum CalendarRoleType + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "freeBusyRead")] + #pragma warning disable CS1591 + FreeBusyRead, + #pragma warning restore CS1591 + [EnumMember(Value = "limitedRead")] + #pragma warning disable CS1591 + LimitedRead, + #pragma warning restore CS1591 + [EnumMember(Value = "read")] + #pragma warning disable CS1591 + Read, + #pragma warning restore CS1591 + [EnumMember(Value = "write")] + #pragma warning disable CS1591 + Write, + #pragma warning restore CS1591 + [EnumMember(Value = "delegateWithoutPrivateEventAccess")] + #pragma warning disable CS1591 + DelegateWithoutPrivateEventAccess, + #pragma warning restore CS1591 + [EnumMember(Value = "delegateWithPrivateEventAccess")] + #pragma warning disable CS1591 + DelegateWithPrivateEventAccess, + #pragma warning restore CS1591 + [EnumMember(Value = "custom")] + #pragma warning disable CS1591 + Custom, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/CheckInClaim.cs b/src/Calendar/wrapper/beta/Client/Models/CheckInClaim.cs new file mode 100644 index 00000000000..91feb70ca7f --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/CheckInClaim.cs @@ -0,0 +1,83 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CheckInClaim : 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 unique identifier for an Outlook calendar event associated with the checkInClaim object. For more information, see the iCalUId property in event. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? CalendarEventId { get; set; } +#nullable restore +#else + public string CalendarEventId { get; set; } +#endif + /// The checkInMethod property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInMethod? CheckInMethod { get; set; } + /// The date and time when the checkInClaim object was created. 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? CreatedDateTime { 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 CheckInClaim() + { + 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.Calendar.Client.Models.CheckInClaim CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "calendarEventId", n => { CalendarEventId = n.GetStringValue(); } }, + { "checkInMethod", n => { CheckInMethod = n.GetEnumValue(); } }, + { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + { "@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("calendarEventId", CalendarEventId); + writer.WriteEnumValue("checkInMethod", CheckInMethod); + writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/CheckInClaimCollectionResponse.cs b/src/Calendar/wrapper/beta/Client/Models/CheckInClaimCollectionResponse.cs new file mode 100644 index 00000000000..70d6b436ae4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/CheckInClaimCollectionResponse.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CheckInClaimCollectionResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Models.CheckInClaimCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse(); + } + /// + /// 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.Calendar.Client.Models.CheckInClaim.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/Calendar/wrapper/beta/Client/Models/CheckInMethod.cs b/src/Calendar/wrapper/beta/Client/Models/CheckInMethod.cs new file mode 100644 index 00000000000..9ac5a0ed7a6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/CheckInMethod.cs @@ -0,0 +1,32 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum CheckInMethod + #pragma warning restore CS1591 + { + [EnumMember(Value = "unspecified")] + #pragma warning disable CS1591 + Unspecified, + #pragma warning restore CS1591 + [EnumMember(Value = "manual")] + #pragma warning disable CS1591 + Manual, + #pragma warning restore CS1591 + [EnumMember(Value = "inferred")] + #pragma warning disable CS1591 + Inferred, + #pragma warning restore CS1591 + [EnumMember(Value = "verified")] + #pragma warning disable CS1591 + Verified, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/DateTimeTimeZone.cs b/src/Calendar/wrapper/beta/Client/Models/DateTimeTimeZone.cs new file mode 100644 index 00000000000..584bc8fe8bc --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/DateTimeTimeZone.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DateTimeTimeZone : 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; } + /// A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DateTime { get; set; } +#nullable restore +#else + public string DateTime { 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 + /// Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TimeZone { get; set; } +#nullable restore +#else + public string TimeZone { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public DateTimeTimeZone() + { + 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.Calendar.Client.Models.DateTimeTimeZone CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "dateTime", n => { DateTime = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "timeZone", n => { TimeZone = 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("dateTime", DateTime); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("timeZone", TimeZone); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/DayOfWeekObject.cs b/src/Calendar/wrapper/beta/Client/Models/DayOfWeekObject.cs new file mode 100644 index 00000000000..8207f7ff463 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/DayOfWeekObject.cs @@ -0,0 +1,40 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum DayOfWeekObject + #pragma warning restore CS1591 + { + [EnumMember(Value = "sunday")] + #pragma warning disable CS1591 + Sunday, + #pragma warning restore CS1591 + [EnumMember(Value = "monday")] + #pragma warning disable CS1591 + Monday, + #pragma warning restore CS1591 + [EnumMember(Value = "tuesday")] + #pragma warning disable CS1591 + Tuesday, + #pragma warning restore CS1591 + [EnumMember(Value = "wednesday")] + #pragma warning disable CS1591 + Wednesday, + #pragma warning restore CS1591 + [EnumMember(Value = "thursday")] + #pragma warning disable CS1591 + Thursday, + #pragma warning restore CS1591 + [EnumMember(Value = "friday")] + #pragma warning disable CS1591 + Friday, + #pragma warning restore CS1591 + [EnumMember(Value = "saturday")] + #pragma warning disable CS1591 + Saturday, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/Desk.cs b/src/Calendar/wrapper/beta/Client/Models/Desk.cs new file mode 100644 index 00000000000..5a270ad2f74 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/Desk.cs @@ -0,0 +1,97 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class Desk : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place, IParsable + #pragma warning restore CS1591 + { + /// The name of the display device (for example, monitor or projector) that is available at the desk. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayDeviceName { get; set; } +#nullable restore +#else + public string DisplayDeviceName { get; set; } +#endif + /// The heightAdjustableState property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceFeatureEnablement? HeightAdjustableState { get; set; } + /// The mailbox object id and email address that are associated with the desk. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.MailboxDetails? MailboxDetails { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.MailboxDetails MailboxDetails { get; set; } +#endif + /// The mode of the desk. The supported modes are:assignedPlaceMode - Desks that are assigned to a user.reservablePlaceMode - Desks that can be booked in advance using desk reservation tools.dropInPlaceMode - First come, first served desks. When you plug into a peripheral on one of these desks, the desk is booked for you, assuming the peripheral is associated with the desk in the Microsoft Teams Rooms pro management portal.unavailablePlaceMode - Desks that are taken down for maintenance or marked as not reservable. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceMode? Mode { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceMode Mode { get; set; } +#endif + /// Service plans associated with the desk. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ServicePlans { get; set; } +#nullable restore +#else + public List ServicePlans { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public Desk() : base() + { + OdataType = "#microsoft.graph.desk"; + } + /// + /// 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.Calendar.Client.Models.Desk CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Desk(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "displayDeviceName", n => { DisplayDeviceName = n.GetStringValue(); } }, + { "heightAdjustableState", n => { HeightAdjustableState = n.GetEnumValue(); } }, + { "mailboxDetails", n => { MailboxDetails = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.MailboxDetails.CreateFromDiscriminatorValue); } }, + { "mode", n => { Mode = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceMode.CreateFromDiscriminatorValue); } }, + { "servicePlans", n => { ServicePlans = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceServicePlanInfo.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.WriteStringValue("displayDeviceName", DisplayDeviceName); + writer.WriteEnumValue("heightAdjustableState", HeightAdjustableState); + writer.WriteObjectValue("mailboxDetails", MailboxDetails); + writer.WriteObjectValue("mode", Mode); + writer.WriteCollectionOfObjectValues("servicePlans", ServicePlans); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/DeskCollectionResponse.cs b/src/Calendar/wrapper/beta/Client/Models/DeskCollectionResponse.cs new file mode 100644 index 00000000000..6c959eee9a6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/DeskCollectionResponse.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeskCollectionResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Models.DeskCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DeskCollectionResponse(); + } + /// + /// 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.Calendar.Client.Models.Desk.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/Calendar/wrapper/beta/Client/Models/Dictionary.cs b/src/Calendar/wrapper/beta/Client/Models/Dictionary.cs new file mode 100644 index 00000000000..34c81638897 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/Dictionary.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class Dictionary : 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 Dictionary() + { + 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.Calendar.Client.Models.Dictionary CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch + { + "#microsoft.graph.stringDictionary" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.StringDictionary(), + _ => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Dictionary(), + }; + } + /// + /// 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/Calendar/wrapper/beta/Client/Models/EmailAddress.cs b/src/Calendar/wrapper/beta/Client/Models/EmailAddress.cs new file mode 100644 index 00000000000..fe106000c49 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/EmailAddress.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class EmailAddress : 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 email address of an entity instance. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Address { get; set; } +#nullable restore +#else + public string Address { get; set; } +#endif + /// The display name of an entity instance. +#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 + /// 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 EmailAddress() + { + 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.Calendar.Client.Models.EmailAddress CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "address", n => { Address = n.GetStringValue(); } }, + { "name", n => { Name = 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("address", Address); + writer.WriteStringValue("name", Name); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/Entity.cs b/src/Calendar/wrapper/beta/Client/Models/Entity.cs new file mode 100644 index 00000000000..b9999982fe1 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/Entity.cs @@ -0,0 +1,104 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class Entity : 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 unique identifier for an entity. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Id { get; set; } +#nullable restore +#else + public string Id { 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 Entity() + { + 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.Calendar.Client.Models.Entity CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch + { + "#microsoft.graph.attachment" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment(), + "#microsoft.graph.baseMapFeature" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseMapFeature(), + "#microsoft.graph.building" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Building(), + "#microsoft.graph.buildingMap" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingMap(), + "#microsoft.graph.calendar" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar(), + "#microsoft.graph.calendarGroup" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup(), + "#microsoft.graph.calendarPermission" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission(), + "#microsoft.graph.desk" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Desk(), + "#microsoft.graph.event" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event(), + "#microsoft.graph.extension" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension(), + "#microsoft.graph.fixtureMap" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap(), + "#microsoft.graph.floor" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Floor(), + "#microsoft.graph.footprintMap" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap(), + "#microsoft.graph.levelMap" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap(), + "#microsoft.graph.multiValueLegacyExtendedProperty" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.MultiValueLegacyExtendedProperty(), + "#microsoft.graph.outlookItem" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.OutlookItem(), + "#microsoft.graph.place" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place(), + "#microsoft.graph.placeOperation" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceOperation(), + "#microsoft.graph.room" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Room(), + "#microsoft.graph.roomList" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomList(), + "#microsoft.graph.section" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Section(), + "#microsoft.graph.sectionMap" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap(), + "#microsoft.graph.singleValueLegacyExtendedProperty" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.SingleValueLegacyExtendedProperty(), + "#microsoft.graph.unitMap" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap(), + "#microsoft.graph.workspace" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace(), + _ => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Entity(), + }; + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "id", n => { Id = 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("id", Id); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/Event.cs b/src/Calendar/wrapper/beta/Client/Models/Event.cs new file mode 100644 index 00000000000..df030f036d1 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/Event.cs @@ -0,0 +1,411 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class Event : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.OutlookItem, IParsable + #pragma warning restore CS1591 + { + /// true if the meeting organizer allows invitees to propose a new time when responding; otherwise false. Optional. Default is true. + public bool? AllowNewTimeProposals { get; set; } + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Attachments { get; set; } +#nullable restore +#else + public List Attachments { get; set; } +#endif + /// The collection of attendees for the event. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Attendees { get; set; } +#nullable restore +#else + public List Attendees { get; set; } +#endif + /// The body of the message associated with the event. It can be in HTML or text format. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ItemBody? Body { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ItemBody Body { get; set; } +#endif + /// The preview of the message associated with the event. It is in text format. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? BodyPreview { get; set; } +#nullable restore +#else + public string BodyPreview { get; set; } +#endif + /// The calendar that contains the event. Navigation property. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar? Calendar { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar Calendar { get; set; } +#endif + /// Contains occurrenceId property values of canceled instances in a recurring series, if the event is the series master. Instances in a recurring series that are canceled are called cancelledOccurences.Returned only on $select in a Get operation which specifies the id of a series master event (that is, the seriesMasterId property value). +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? CancelledOccurrences { get; set; } +#nullable restore +#else + public List CancelledOccurrences { get; set; } +#endif + /// The date, time, and time zone that the event ends. By default, the end time is in UTC. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? End { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone End { get; set; } +#endif + /// The exceptionOccurrences property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ExceptionOccurrences { get; set; } +#nullable restore +#else + public List ExceptionOccurrences { get; set; } +#endif + /// The collection of open extensions defined for the event. Nullable. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Extensions { get; set; } +#nullable restore +#else + public List Extensions { get; set; } +#endif + /// Set to true if the event has attachments. + public bool? HasAttachments { get; set; } + /// When set to true, each attendee only sees themselves in the meeting request and meeting Tracking list. Default is false. + public bool? HideAttendees { get; set; } + /// A unique identifier for an event across calendars. This ID is different for each occurrence in a recurring series. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ICalUId { get; set; } +#nullable restore +#else + public string ICalUId { get; set; } +#endif + /// The importance of the event. The possible values are: low, normal, high. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Importance? Importance { get; set; } + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. +#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 + /// Set to true if the event lasts all day. If true, regardless of whether it's a single-day or multi-day event, start and end time must be set to midnight and be in the same time zone. + public bool? IsAllDay { get; set; } + /// Set to true if the event has been canceled. + public bool? IsCancelled { get; set; } + /// Set to true if the user has updated the meeting in Outlook but hasn't sent the updates to attendees. Set to false if all changes have been sent, or if the event is an appointment without any attendees. + public bool? IsDraft { get; set; } + /// True if this event has online meeting information (that is, onlineMeeting points to an onlineMeetingInfo resource), false otherwise. Default is false (onlineMeeting is null). Optional. After you set isOnlineMeeting to true, Microsoft Graph initializes onlineMeeting. Outlook then ignores any further changes to isOnlineMeeting, and the meeting remains available online. + public bool? IsOnlineMeeting { get; set; } + /// Set to true if the calendar owner (specified by the owner property of the calendar) is the organizer of the event (specified by the organizer property of the event). This also applies if a delegate organized the event on behalf of the owner. + public bool? IsOrganizer { get; set; } + /// Set to true if an alert is set to remind the user of the event. + public bool? IsReminderOn { get; set; } + /// The location of the event. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Location? Location { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Location Location { get; set; } +#endif + /// The locations where the event is held or attended from. The location and locations properties always correspond with each other. If you update the location property, any prior locations in the locations collection would be removed and replaced by the new location value. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Locations { get; set; } +#nullable restore +#else + public List Locations { get; set; } +#endif + /// The collection of multi-value extended properties defined for the event. Read-only. Nullable. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? MultiValueExtendedProperties { get; set; } +#nullable restore +#else + public List MultiValueExtendedProperties { get; set; } +#endif + /// An identifier for an occurrence in a recurring event series. Null if the event isn't part of a recurring series.The format of the property value is OID.{seriesMasterId-value}.{occurrence-start-date}. The time zone for {occurrence-start-date} is the recurrenceTimeZone property defined for the corresponding recurrenceRange.This property can identify any occurrence in a recurring series, including an occurrence that has been modified or canceled. You can use this property to perform all operations supported by occurrences in the recurring series. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OccurrenceId { get; set; } +#nullable restore +#else + public string OccurrenceId { get; set; } +#endif + /// Details for an attendee to join the meeting online. Default is null. Read-only. After you set the isOnlineMeeting and onlineMeetingProvider properties to enable a meeting online, Microsoft Graph initializes onlineMeeting. When set, the meeting remains available online, and you can't change the isOnlineMeeting, onlineMeetingProvider, and onlneMeeting properties again. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingInfo? OnlineMeeting { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingInfo OnlineMeeting { get; set; } +#endif + /// Represents the online meeting service provider. By default, onlineMeetingProvider is unknown. The possible values are unknown, teamsForBusiness, skypeForBusiness, and skypeForConsumer. Optional. After you set onlineMeetingProvider, Microsoft Graph initializes onlineMeeting. Subsequently you can't change onlineMeetingProvider again, and the meeting remains available online. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType? OnlineMeetingProvider { get; set; } + /// A URL for an online meeting. The property is set only when an organizer specifies in Outlook that an event is an online meeting such as Skype. Read-only.To access the URL to join an online meeting, use joinUrl which is exposed via the onlineMeeting property of the event. The onlineMeetingUrl property will be deprecated in the future. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OnlineMeetingUrl { get; set; } +#nullable restore +#else + public string OnlineMeetingUrl { get; set; } +#endif + /// The organizer of the event. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient? Organizer { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient Organizer { get; set; } +#endif + /// The end time zone that was set when the event was created. A value of tzone://Microsoft/Custom indicates that a legacy custom time zone was set in desktop Outlook. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OriginalEndTimeZone { get; set; } +#nullable restore +#else + public string OriginalEndTimeZone { get; set; } +#endif + /// Represents the start time of an event when it's initially created as an occurrence or exception in a recurring series. This property isn't returned for events that are single instances. Its date and time information is expressed in ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + public DateTimeOffset? OriginalStart { get; set; } + /// The start time zone that was set when the event was created. A value of tzone://Microsoft/Custom indicates that a legacy custom time zone was set in desktop Outlook. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OriginalStartTimeZone { get; set; } +#nullable restore +#else + public string OriginalStartTimeZone { get; set; } +#endif + /// The recurrence pattern for the event. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PatternedRecurrence? Recurrence { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PatternedRecurrence Recurrence { get; set; } +#endif + /// The number of minutes before the event start time that the reminder alert occurs. + public int? ReminderMinutesBeforeStart { get; set; } + /// Default is true, which represents the organizer would like an invitee to send a response to the event. + public bool? ResponseRequested { get; set; } + /// Indicates the type of response sent in response to an event message. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ResponseStatus? ResponseStatus { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ResponseStatus ResponseStatus { get; set; } +#endif + /// The possible values are: normal, personal, private, confidential. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Sensitivity? Sensitivity { get; set; } + /// The ID for the recurring series master item, if this event is part of a recurring series. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? SeriesMasterId { get; set; } +#nullable restore +#else + public string SeriesMasterId { get; set; } +#endif + /// The status to show. The possible values are: free, tentative, busy, oof, workingElsewhere, unknown. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FreeBusyStatus? ShowAs { get; set; } + /// The collection of single-value extended properties defined for the event. Read-only. Nullable. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? SingleValueExtendedProperties { get; set; } +#nullable restore +#else + public List SingleValueExtendedProperties { get; set; } +#endif + /// The start date, time, and time zone of the event. By default, the start time is in UTC. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? Start { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone Start { get; set; } +#endif + /// The text of the event's subject line. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Subject { get; set; } +#nullable restore +#else + public string Subject { get; set; } +#endif + /// A custom identifier specified by a client app for the server to avoid redundant POST operations if the client retries to create the same event. This is useful when low network connectivity causes the client to time out before receiving a response from the server for the client's prior create-event request. After you set transactionId when creating an event, you can't change transactionId in a subsequent update. This property is only returned in a response payload if an app has set it. Optional. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TransactionId { get; set; } +#nullable restore +#else + public string TransactionId { get; set; } +#endif + /// The event type. The possible values are: singleInstance, occurrence, exception, seriesMaster. Read-only + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EventType? Type { get; set; } + /// A unique identifier for calendar events. For recurring events, the value is the same for the series master and all of its occurrences including exceptions. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Uid { get; set; } +#nullable restore +#else + public string Uid { get; set; } +#endif + /// The URL to open the event in Outlook on the web.Outlook on the web opens the event in the browser if you're signed in to your mailbox. Otherwise, Outlook on the web prompts you to sign in.This URL can't be accessed from within an iFrame. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? WebLink { get; set; } +#nullable restore +#else + public string WebLink { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public Event() : base() + { + OdataType = "#microsoft.graph.event"; + } + /// + /// 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.Calendar.Client.Models.Event CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "allowNewTimeProposals", n => { AllowNewTimeProposals = n.GetBoolValue(); } }, + { "attachments", n => { Attachments = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment.CreateFromDiscriminatorValue)?.AsList(); } }, + { "attendees", n => { Attendees = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attendee.CreateFromDiscriminatorValue)?.AsList(); } }, + { "body", n => { Body = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ItemBody.CreateFromDiscriminatorValue); } }, + { "bodyPreview", n => { BodyPreview = n.GetStringValue(); } }, + { "calendar", n => { Calendar = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar.CreateFromDiscriminatorValue); } }, + { "cancelledOccurrences", n => { CancelledOccurrences = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "end", n => { End = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "exceptionOccurrences", n => { ExceptionOccurrences = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue)?.AsList(); } }, + { "extensions", n => { Extensions = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension.CreateFromDiscriminatorValue)?.AsList(); } }, + { "hasAttachments", n => { HasAttachments = n.GetBoolValue(); } }, + { "hideAttendees", n => { HideAttendees = n.GetBoolValue(); } }, + { "iCalUId", n => { ICalUId = n.GetStringValue(); } }, + { "importance", n => { Importance = n.GetEnumValue(); } }, + { "instances", n => { Instances = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue)?.AsList(); } }, + { "isAllDay", n => { IsAllDay = n.GetBoolValue(); } }, + { "isCancelled", n => { IsCancelled = n.GetBoolValue(); } }, + { "isDraft", n => { IsDraft = n.GetBoolValue(); } }, + { "isOnlineMeeting", n => { IsOnlineMeeting = n.GetBoolValue(); } }, + { "isOrganizer", n => { IsOrganizer = n.GetBoolValue(); } }, + { "isReminderOn", n => { IsReminderOn = n.GetBoolValue(); } }, + { "location", n => { Location = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Location.CreateFromDiscriminatorValue); } }, + { "locations", n => { Locations = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Location.CreateFromDiscriminatorValue)?.AsList(); } }, + { "multiValueExtendedProperties", n => { MultiValueExtendedProperties = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.MultiValueLegacyExtendedProperty.CreateFromDiscriminatorValue)?.AsList(); } }, + { "occurrenceId", n => { OccurrenceId = n.GetStringValue(); } }, + { "onlineMeeting", n => { OnlineMeeting = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingInfo.CreateFromDiscriminatorValue); } }, + { "onlineMeetingProvider", n => { OnlineMeetingProvider = n.GetEnumValue(); } }, + { "onlineMeetingUrl", n => { OnlineMeetingUrl = n.GetStringValue(); } }, + { "organizer", n => { Organizer = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient.CreateFromDiscriminatorValue); } }, + { "originalEndTimeZone", n => { OriginalEndTimeZone = n.GetStringValue(); } }, + { "originalStart", n => { OriginalStart = n.GetDateTimeOffsetValue(); } }, + { "originalStartTimeZone", n => { OriginalStartTimeZone = n.GetStringValue(); } }, + { "recurrence", n => { Recurrence = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PatternedRecurrence.CreateFromDiscriminatorValue); } }, + { "reminderMinutesBeforeStart", n => { ReminderMinutesBeforeStart = n.GetIntValue(); } }, + { "responseRequested", n => { ResponseRequested = n.GetBoolValue(); } }, + { "responseStatus", n => { ResponseStatus = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ResponseStatus.CreateFromDiscriminatorValue); } }, + { "sensitivity", n => { Sensitivity = n.GetEnumValue(); } }, + { "seriesMasterId", n => { SeriesMasterId = n.GetStringValue(); } }, + { "showAs", n => { ShowAs = n.GetEnumValue(); } }, + { "singleValueExtendedProperties", n => { SingleValueExtendedProperties = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.SingleValueLegacyExtendedProperty.CreateFromDiscriminatorValue)?.AsList(); } }, + { "start", n => { Start = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "subject", n => { Subject = n.GetStringValue(); } }, + { "transactionId", n => { TransactionId = n.GetStringValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, + { "uid", n => { Uid = n.GetStringValue(); } }, + { "webLink", n => { WebLink = 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.WriteBoolValue("allowNewTimeProposals", AllowNewTimeProposals); + writer.WriteCollectionOfObjectValues("attachments", Attachments); + writer.WriteCollectionOfObjectValues("attendees", Attendees); + writer.WriteObjectValue("body", Body); + writer.WriteStringValue("bodyPreview", BodyPreview); + writer.WriteObjectValue("calendar", Calendar); + writer.WriteCollectionOfPrimitiveValues("cancelledOccurrences", CancelledOccurrences); + writer.WriteObjectValue("end", End); + writer.WriteCollectionOfObjectValues("exceptionOccurrences", ExceptionOccurrences); + writer.WriteCollectionOfObjectValues("extensions", Extensions); + writer.WriteBoolValue("hasAttachments", HasAttachments); + writer.WriteBoolValue("hideAttendees", HideAttendees); + writer.WriteStringValue("iCalUId", ICalUId); + writer.WriteEnumValue("importance", Importance); + writer.WriteCollectionOfObjectValues("instances", Instances); + writer.WriteBoolValue("isAllDay", IsAllDay); + writer.WriteBoolValue("isCancelled", IsCancelled); + writer.WriteBoolValue("isDraft", IsDraft); + writer.WriteBoolValue("isOnlineMeeting", IsOnlineMeeting); + writer.WriteBoolValue("isOrganizer", IsOrganizer); + writer.WriteBoolValue("isReminderOn", IsReminderOn); + writer.WriteObjectValue("location", Location); + writer.WriteCollectionOfObjectValues("locations", Locations); + writer.WriteCollectionOfObjectValues("multiValueExtendedProperties", MultiValueExtendedProperties); + writer.WriteStringValue("occurrenceId", OccurrenceId); + writer.WriteObjectValue("onlineMeeting", OnlineMeeting); + writer.WriteEnumValue("onlineMeetingProvider", OnlineMeetingProvider); + writer.WriteStringValue("onlineMeetingUrl", OnlineMeetingUrl); + writer.WriteObjectValue("organizer", Organizer); + writer.WriteStringValue("originalEndTimeZone", OriginalEndTimeZone); + writer.WriteDateTimeOffsetValue("originalStart", OriginalStart); + writer.WriteStringValue("originalStartTimeZone", OriginalStartTimeZone); + writer.WriteObjectValue("recurrence", Recurrence); + writer.WriteIntValue("reminderMinutesBeforeStart", ReminderMinutesBeforeStart); + writer.WriteBoolValue("responseRequested", ResponseRequested); + writer.WriteObjectValue("responseStatus", ResponseStatus); + writer.WriteEnumValue("sensitivity", Sensitivity); + writer.WriteStringValue("seriesMasterId", SeriesMasterId); + writer.WriteEnumValue("showAs", ShowAs); + writer.WriteCollectionOfObjectValues("singleValueExtendedProperties", SingleValueExtendedProperties); + writer.WriteObjectValue("start", Start); + writer.WriteStringValue("subject", Subject); + writer.WriteStringValue("transactionId", TransactionId); + writer.WriteEnumValue("type", Type); + writer.WriteStringValue("uid", Uid); + writer.WriteStringValue("webLink", WebLink); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/EventCollectionResponse.cs b/src/Calendar/wrapper/beta/Client/Models/EventCollectionResponse.cs new file mode 100644 index 00000000000..34322bbf966 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/EventCollectionResponse.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class EventCollectionResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Models.EventCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse(); + } + /// + /// 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.Calendar.Client.Models.Event.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/Calendar/wrapper/beta/Client/Models/EventType.cs b/src/Calendar/wrapper/beta/Client/Models/EventType.cs new file mode 100644 index 00000000000..664cdea615b --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/EventType.cs @@ -0,0 +1,28 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum EventType + #pragma warning restore CS1591 + { + [EnumMember(Value = "singleInstance")] + #pragma warning disable CS1591 + SingleInstance, + #pragma warning restore CS1591 + [EnumMember(Value = "occurrence")] + #pragma warning disable CS1591 + Occurrence, + #pragma warning restore CS1591 + [EnumMember(Value = "exception")] + #pragma warning disable CS1591 + Exception, + #pragma warning restore CS1591 + [EnumMember(Value = "seriesMaster")] + #pragma warning disable CS1591 + SeriesMaster, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/Extension.cs b/src/Calendar/wrapper/beta/Client/Models/Extension.cs new file mode 100644 index 00000000000..6de55991987 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/Extension.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class Extension : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Models.Extension CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension(); + } + /// + /// 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/Calendar/wrapper/beta/Client/Models/ExtensionCollectionResponse.cs b/src/Calendar/wrapper/beta/Client/Models/ExtensionCollectionResponse.cs new file mode 100644 index 00000000000..a3e9b56ca32 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/ExtensionCollectionResponse.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ExtensionCollectionResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Models.ExtensionCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ExtensionCollectionResponse(); + } + /// + /// 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.Calendar.Client.Models.Extension.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/Calendar/wrapper/beta/Client/Models/FixtureMap.cs b/src/Calendar/wrapper/beta/Client/Models/FixtureMap.cs new file mode 100644 index 00000000000..495cffdb167 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/FixtureMap.cs @@ -0,0 +1,63 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FixtureMap : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseMapFeature, IParsable + #pragma warning restore CS1591 + { + /// Identifier for the floor to which this fixtureMap belongs. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PlaceId { get; set; } +#nullable restore +#else + public string PlaceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public FixtureMap() : base() + { + OdataType = "#microsoft.graph.fixtureMap"; + } + /// + /// 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.Calendar.Client.Models.FixtureMap CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "placeId", n => { PlaceId = 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("placeId", PlaceId); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/FixtureMapCollectionResponse.cs b/src/Calendar/wrapper/beta/Client/Models/FixtureMapCollectionResponse.cs new file mode 100644 index 00000000000..6e1fe2ae9f3 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/FixtureMapCollectionResponse.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FixtureMapCollectionResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Models.FixtureMapCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMapCollectionResponse(); + } + /// + /// 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.Calendar.Client.Models.FixtureMap.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/Calendar/wrapper/beta/Client/Models/Floor.cs b/src/Calendar/wrapper/beta/Client/Models/Floor.cs new file mode 100644 index 00000000000..788df568751 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/Floor.cs @@ -0,0 +1,57 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class Floor : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place, IParsable + #pragma warning restore CS1591 + { + /// Specifies the sort order of the floor. For example, a floor might be named 'Lobby' with a sort order of 0 to show this floor first in ordered lists. + public int? SortOrder { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Floor() : base() + { + OdataType = "#microsoft.graph.floor"; + } + /// + /// 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.Calendar.Client.Models.Floor CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Floor(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "sortOrder", n => { SortOrder = 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.WriteIntValue("sortOrder", SortOrder); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/FloorCollectionResponse.cs b/src/Calendar/wrapper/beta/Client/Models/FloorCollectionResponse.cs new file mode 100644 index 00000000000..c0ee9a5ea05 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/FloorCollectionResponse.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FloorCollectionResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Models.FloorCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FloorCollectionResponse(); + } + /// + /// 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.Calendar.Client.Models.Floor.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/Calendar/wrapper/beta/Client/Models/FootprintMap.cs b/src/Calendar/wrapper/beta/Client/Models/FootprintMap.cs new file mode 100644 index 00000000000..938ebee9148 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/FootprintMap.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FootprintMap : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseMapFeature, IParsable + #pragma warning restore CS1591 + { + /// + /// Instantiates a new and sets the default values. + /// + public FootprintMap() : base() + { + OdataType = "#microsoft.graph.footprintMap"; + } + /// + /// 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.Calendar.Client.Models.FootprintMap CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap(); + } + /// + /// 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/Calendar/wrapper/beta/Client/Models/FootprintMapCollectionResponse.cs b/src/Calendar/wrapper/beta/Client/Models/FootprintMapCollectionResponse.cs new file mode 100644 index 00000000000..1376d6946e5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/FootprintMapCollectionResponse.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FootprintMapCollectionResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Models.FootprintMapCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMapCollectionResponse(); + } + /// + /// 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.Calendar.Client.Models.FootprintMap.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/Calendar/wrapper/beta/Client/Models/FreeBusyError.cs b/src/Calendar/wrapper/beta/Client/Models/FreeBusyError.cs new file mode 100644 index 00000000000..8a90e09e5bd --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/FreeBusyError.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class FreeBusyError : 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; } + /// Describes the error. +#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 + /// The response code from querying for the availability of the user, distribution list, or resource. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ResponseCode { get; set; } +#nullable restore +#else + public string ResponseCode { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public FreeBusyError() + { + 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.Calendar.Client.Models.FreeBusyError CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FreeBusyError(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "message", n => { Message = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "responseCode", n => { ResponseCode = 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("message", Message); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("responseCode", ResponseCode); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/FreeBusyStatus.cs b/src/Calendar/wrapper/beta/Client/Models/FreeBusyStatus.cs new file mode 100644 index 00000000000..e6e1f0366f1 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/FreeBusyStatus.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum FreeBusyStatus + #pragma warning restore CS1591 + { + [EnumMember(Value = "unknown")] + #pragma warning disable CS1591 + Unknown, + #pragma warning restore CS1591 + [EnumMember(Value = "free")] + #pragma warning disable CS1591 + Free, + #pragma warning restore CS1591 + [EnumMember(Value = "tentative")] + #pragma warning disable CS1591 + Tentative, + #pragma warning restore CS1591 + [EnumMember(Value = "busy")] + #pragma warning disable CS1591 + Busy, + #pragma warning restore CS1591 + [EnumMember(Value = "oof")] + #pragma warning disable CS1591 + Oof, + #pragma warning restore CS1591 + [EnumMember(Value = "workingElsewhere")] + #pragma warning disable CS1591 + WorkingElsewhere, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/Importance.cs b/src/Calendar/wrapper/beta/Client/Models/Importance.cs new file mode 100644 index 00000000000..f9833430fc0 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/Importance.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum Importance + #pragma warning restore CS1591 + { + [EnumMember(Value = "low")] + #pragma warning disable CS1591 + Low, + #pragma warning restore CS1591 + [EnumMember(Value = "normal")] + #pragma warning disable CS1591 + Normal, + #pragma warning restore CS1591 + [EnumMember(Value = "high")] + #pragma warning disable CS1591 + High, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/ItemBody.cs b/src/Calendar/wrapper/beta/Client/Models/ItemBody.cs new file mode 100644 index 00000000000..cf885676013 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/ItemBody.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ItemBody : 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 content of the item. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Content { get; set; } +#nullable restore +#else + public string Content { get; set; } +#endif + /// The type of the content. Possible values are text and html. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BodyType? ContentType { 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 ItemBody() + { + 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.Calendar.Client.Models.ItemBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ItemBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "content", n => { Content = n.GetStringValue(); } }, + { "contentType", n => { ContentType = n.GetEnumValue(); } }, + { "@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("content", Content); + writer.WriteEnumValue("contentType", ContentType); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/LevelMap.cs b/src/Calendar/wrapper/beta/Client/Models/LevelMap.cs new file mode 100644 index 00000000000..d9dae17866a --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/LevelMap.cs @@ -0,0 +1,93 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class LevelMap : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseMapFeature, IParsable + #pragma warning restore CS1591 + { + /// Collection of fixtures (such as furniture or equipment) on this level. Supports upsert. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Fixtures { get; set; } +#nullable restore +#else + public List Fixtures { get; set; } +#endif + /// Identifier of the floor to which this levelMap belongs. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PlaceId { get; set; } +#nullable restore +#else + public string PlaceId { get; set; } +#endif + /// Collection of sections (such as zones or partitions) on this level. Supports upsert. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Sections { get; set; } +#nullable restore +#else + public List Sections { get; set; } +#endif + /// Collection of units (such as rooms or offices) on this level. Supports upsert. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Units { get; set; } +#nullable restore +#else + public List Units { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public LevelMap() : base() + { + OdataType = "#microsoft.graph.levelMap"; + } + /// + /// 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.Calendar.Client.Models.LevelMap CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "fixtures", n => { Fixtures = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap.CreateFromDiscriminatorValue)?.AsList(); } }, + { "placeId", n => { PlaceId = n.GetStringValue(); } }, + { "sections", n => { Sections = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap.CreateFromDiscriminatorValue)?.AsList(); } }, + { "units", n => { Units = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap.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("fixtures", Fixtures); + writer.WriteStringValue("placeId", PlaceId); + writer.WriteCollectionOfObjectValues("sections", Sections); + writer.WriteCollectionOfObjectValues("units", Units); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/LevelMapCollectionResponse.cs b/src/Calendar/wrapper/beta/Client/Models/LevelMapCollectionResponse.cs new file mode 100644 index 00000000000..295759a1d8c --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/LevelMapCollectionResponse.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class LevelMapCollectionResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Models.LevelMapCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMapCollectionResponse(); + } + /// + /// 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.Calendar.Client.Models.LevelMap.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/Calendar/wrapper/beta/Client/Models/Location.cs b/src/Calendar/wrapper/beta/Client/Models/Location.cs new file mode 100644 index 00000000000..65bd29aed85 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/Location.cs @@ -0,0 +1,133 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class Location : 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 street address of the location. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PhysicalAddress? Address { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PhysicalAddress Address { get; set; } +#endif + /// The geographic coordinates and elevation of the location. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.OutlookGeoCoordinates? Coordinates { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.OutlookGeoCoordinates Coordinates { get; set; } +#endif + /// The name associated with the location. +#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 + /// Optional email address of the location. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? LocationEmailAddress { get; set; } +#nullable restore +#else + public string LocationEmailAddress { get; set; } +#endif + /// The type of location. The possible values are: default, conferenceRoom, homeAddress, businessAddress,geoCoordinates, streetAddress, hotel, restaurant, localBusiness, postalAddress. Read-only. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.LocationType? LocationType { get; set; } + /// Optional URI representing the location. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? LocationUri { get; set; } +#nullable restore +#else + public string LocationUri { 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 + /// For internal use only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UniqueId { get; set; } +#nullable restore +#else + public string UniqueId { get; set; } +#endif + /// For internal use only. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.LocationUniqueIdType? UniqueIdType { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Location() + { + 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.Calendar.Client.Models.Location CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Location(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "address", n => { Address = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PhysicalAddress.CreateFromDiscriminatorValue); } }, + { "coordinates", n => { Coordinates = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.OutlookGeoCoordinates.CreateFromDiscriminatorValue); } }, + { "displayName", n => { DisplayName = n.GetStringValue(); } }, + { "locationEmailAddress", n => { LocationEmailAddress = n.GetStringValue(); } }, + { "locationType", n => { LocationType = n.GetEnumValue(); } }, + { "locationUri", n => { LocationUri = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "uniqueId", n => { UniqueId = n.GetStringValue(); } }, + { "uniqueIdType", n => { UniqueIdType = 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.WriteObjectValue("address", Address); + writer.WriteObjectValue("coordinates", Coordinates); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteStringValue("locationEmailAddress", LocationEmailAddress); + writer.WriteEnumValue("locationType", LocationType); + writer.WriteStringValue("locationUri", LocationUri); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("uniqueId", UniqueId); + writer.WriteEnumValue("uniqueIdType", UniqueIdType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/LocationType.cs b/src/Calendar/wrapper/beta/Client/Models/LocationType.cs new file mode 100644 index 00000000000..716028622d1 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/LocationType.cs @@ -0,0 +1,52 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum LocationType + #pragma warning restore CS1591 + { + [EnumMember(Value = "default")] + #pragma warning disable CS1591 + Default, + #pragma warning restore CS1591 + [EnumMember(Value = "conferenceRoom")] + #pragma warning disable CS1591 + ConferenceRoom, + #pragma warning restore CS1591 + [EnumMember(Value = "homeAddress")] + #pragma warning disable CS1591 + HomeAddress, + #pragma warning restore CS1591 + [EnumMember(Value = "businessAddress")] + #pragma warning disable CS1591 + BusinessAddress, + #pragma warning restore CS1591 + [EnumMember(Value = "geoCoordinates")] + #pragma warning disable CS1591 + GeoCoordinates, + #pragma warning restore CS1591 + [EnumMember(Value = "streetAddress")] + #pragma warning disable CS1591 + StreetAddress, + #pragma warning restore CS1591 + [EnumMember(Value = "hotel")] + #pragma warning disable CS1591 + Hotel, + #pragma warning restore CS1591 + [EnumMember(Value = "restaurant")] + #pragma warning disable CS1591 + Restaurant, + #pragma warning restore CS1591 + [EnumMember(Value = "localBusiness")] + #pragma warning disable CS1591 + LocalBusiness, + #pragma warning restore CS1591 + [EnumMember(Value = "postalAddress")] + #pragma warning disable CS1591 + PostalAddress, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/LocationUniqueIdType.cs b/src/Calendar/wrapper/beta/Client/Models/LocationUniqueIdType.cs new file mode 100644 index 00000000000..752867f5d3c --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/LocationUniqueIdType.cs @@ -0,0 +1,32 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum LocationUniqueIdType + #pragma warning restore CS1591 + { + [EnumMember(Value = "unknown")] + #pragma warning disable CS1591 + Unknown, + #pragma warning restore CS1591 + [EnumMember(Value = "locationStore")] + #pragma warning disable CS1591 + LocationStore, + #pragma warning restore CS1591 + [EnumMember(Value = "directory")] + #pragma warning disable CS1591 + Directory, + #pragma warning restore CS1591 + [EnumMember(Value = "private")] + #pragma warning disable CS1591 + Private, + #pragma warning restore CS1591 + [EnumMember(Value = "bing")] + #pragma warning disable CS1591 + Bing, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/MailboxDetails.cs b/src/Calendar/wrapper/beta/Client/Models/MailboxDetails.cs new file mode 100644 index 00000000000..8e7ae8bb44b --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/MailboxDetails.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MailboxDetails : 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 primary SMTP address associated with the mailbox. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? EmailAddress { get; set; } +#nullable restore +#else + public string EmailAddress { get; set; } +#endif + /// The unique identifier of the mailbox in the external directory (such as Microsoft Entra). +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ExternalDirectoryObjectId { get; set; } +#nullable restore +#else + public string ExternalDirectoryObjectId { 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 MailboxDetails() + { + 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.Calendar.Client.Models.MailboxDetails CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.MailboxDetails(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "emailAddress", n => { EmailAddress = n.GetStringValue(); } }, + { "externalDirectoryObjectId", n => { ExternalDirectoryObjectId = 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("emailAddress", EmailAddress); + writer.WriteStringValue("externalDirectoryObjectId", ExternalDirectoryObjectId); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/MultiValueLegacyExtendedProperty.cs b/src/Calendar/wrapper/beta/Client/Models/MultiValueLegacyExtendedProperty.cs new file mode 100644 index 00000000000..d00a62ab96e --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/MultiValueLegacyExtendedProperty.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MultiValueLegacyExtendedProperty : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Entity, IParsable + #pragma warning restore CS1591 + { + /// A collection of property values. +#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.Calendar.Client.Models.MultiValueLegacyExtendedProperty CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.MultiValueLegacyExtendedProperty(); + } + /// + /// 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.GetCollectionOfPrimitiveValues()?.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.WriteCollectionOfPrimitiveValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/ODataErrors/ErrorDetails.cs b/src/Calendar/wrapper/beta/Client/Models/ODataErrors/ErrorDetails.cs new file mode 100644 index 00000000000..0bed6dd8545 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/ODataErrors/ErrorDetails.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.Calendar.Client.Models.ODataErrors +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ErrorDetails : 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 code property +#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 message property +#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 target property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Target { get; set; } +#nullable restore +#else + public string Target { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ErrorDetails() + { + 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.Calendar.Client.Models.ODataErrors.ErrorDetails CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ErrorDetails(); + } + /// + /// 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(); } }, + { "target", n => { Target = 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("target", Target); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/ODataErrors/InnerError.cs b/src/Calendar/wrapper/beta/Client/Models/ODataErrors/InnerError.cs new file mode 100644 index 00000000000..270c9da50ec --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/ODataErrors/InnerError.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.Calendar.Client.Models.ODataErrors +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class InnerError : 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; } + /// Client request Id as sent by the client application. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ClientRequestId { get; set; } +#nullable restore +#else + public string ClientRequestId { get; set; } +#endif + /// Date when the error occured. + public DateTimeOffset? Date { 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 + /// Request Id as tracked internally by the service +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? RequestId { get; set; } +#nullable restore +#else + public string RequestId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public InnerError() + { + 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.Calendar.Client.Models.ODataErrors.InnerError CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.InnerError(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "client-request-id", n => { ClientRequestId = n.GetStringValue(); } }, + { "date", n => { Date = n.GetDateTimeOffsetValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "request-id", n => { RequestId = 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("client-request-id", ClientRequestId); + writer.WriteDateTimeOffsetValue("date", Date); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("request-id", RequestId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/ODataErrors/MainError.cs b/src/Calendar/wrapper/beta/Client/Models/ODataErrors/MainError.cs new file mode 100644 index 00000000000..ecd38ed2110 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/ODataErrors/MainError.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.Calendar.Client.Models.ODataErrors +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class MainError : 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 code property +#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 details property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Details { get; set; } +#nullable restore +#else + public List Details { get; set; } +#endif + /// The innerError property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.InnerError? InnerError { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.InnerError InnerError { get; set; } +#endif + /// The message property +#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 target property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Target { get; set; } +#nullable restore +#else + public string Target { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public MainError() + { + 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.Calendar.Client.Models.ODataErrors.MainError CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.MainError(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "code", n => { Code = n.GetStringValue(); } }, + { "details", n => { Details = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ErrorDetails.CreateFromDiscriminatorValue)?.AsList(); } }, + { "innerError", n => { InnerError = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.InnerError.CreateFromDiscriminatorValue); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "target", n => { Target = 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.WriteCollectionOfObjectValues("details", Details); + writer.WriteObjectValue("innerError", InnerError); + writer.WriteStringValue("message", Message); + writer.WriteStringValue("target", Target); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/ODataErrors/ODataError.cs b/src/Calendar/wrapper/beta/Client/Models/ODataErrors/ODataError.cs new file mode 100644 index 00000000000..7d7059cbec5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/ODataErrors/ODataError.cs @@ -0,0 +1,68 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ODataError : ApiException, 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 property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.MainError? Error { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.MainError Error { get; set; } +#endif + /// The primary error message. + public override string Message { get => Error?.Message ?? string.Empty; } + /// + /// Instantiates a new and sets the default values. + /// + public ODataError() + { + 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.Calendar.Client.Models.ODataErrors.ODataError CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "error", n => { Error = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.MainError.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("error", Error); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/OnlineMeetingInfo.cs b/src/Calendar/wrapper/beta/Client/Models/OnlineMeetingInfo.cs new file mode 100644 index 00000000000..166f8d49d36 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/OnlineMeetingInfo.cs @@ -0,0 +1,125 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class OnlineMeetingInfo : 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 ID of the conference. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ConferenceId { get; set; } +#nullable restore +#else + public string ConferenceId { get; set; } +#endif + /// The external link that launches the online meeting. This is a URL that clients launch into a browser and will redirect the user to join the meeting. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? JoinUrl { get; set; } +#nullable restore +#else + public string JoinUrl { 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 + /// All of the phone numbers associated with this conference. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Phones { get; set; } +#nullable restore +#else + public List Phones { get; set; } +#endif + /// The preformatted quick dial for this call. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? QuickDial { get; set; } +#nullable restore +#else + public string QuickDial { get; set; } +#endif + /// The toll free numbers that can be used to join the conference. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? TollFreeNumbers { get; set; } +#nullable restore +#else + public List TollFreeNumbers { get; set; } +#endif + /// The toll number that can be used to join the conference. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TollNumber { get; set; } +#nullable restore +#else + public string TollNumber { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public OnlineMeetingInfo() + { + 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.Calendar.Client.Models.OnlineMeetingInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingInfo(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "conferenceId", n => { ConferenceId = n.GetStringValue(); } }, + { "joinUrl", n => { JoinUrl = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "phones", n => { Phones = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Phone.CreateFromDiscriminatorValue)?.AsList(); } }, + { "quickDial", n => { QuickDial = n.GetStringValue(); } }, + { "tollFreeNumbers", n => { TollFreeNumbers = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "tollNumber", n => { TollNumber = 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("conferenceId", ConferenceId); + writer.WriteStringValue("joinUrl", JoinUrl); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteCollectionOfObjectValues("phones", Phones); + writer.WriteStringValue("quickDial", QuickDial); + writer.WriteCollectionOfPrimitiveValues("tollFreeNumbers", TollFreeNumbers); + writer.WriteStringValue("tollNumber", TollNumber); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/OnlineMeetingProviderType.cs b/src/Calendar/wrapper/beta/Client/Models/OnlineMeetingProviderType.cs new file mode 100644 index 00000000000..f7523b486d7 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/OnlineMeetingProviderType.cs @@ -0,0 +1,28 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum OnlineMeetingProviderType + #pragma warning restore CS1591 + { + [EnumMember(Value = "unknown")] + #pragma warning disable CS1591 + Unknown, + #pragma warning restore CS1591 + [EnumMember(Value = "skypeForBusiness")] + #pragma warning disable CS1591 + SkypeForBusiness, + #pragma warning restore CS1591 + [EnumMember(Value = "skypeForConsumer")] + #pragma warning disable CS1591 + SkypeForConsumer, + #pragma warning restore CS1591 + [EnumMember(Value = "teamsForBusiness")] + #pragma warning disable CS1591 + TeamsForBusiness, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/OutlookGeoCoordinates.cs b/src/Calendar/wrapper/beta/Client/Models/OutlookGeoCoordinates.cs new file mode 100644 index 00000000000..88881a4e9af --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/OutlookGeoCoordinates.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class OutlookGeoCoordinates : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 + { + /// The accuracy of the latitude and longitude. As an example, the accuracy can be measured in meters, such as the latitude and longitude are accurate to within 50 meters. + public double? Accuracy { get; set; } + /// 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 altitude of the location. + public double? Altitude { get; set; } + /// The accuracy of the altitude. + public double? AltitudeAccuracy { get; set; } + /// The latitude of the location. + public double? Latitude { get; set; } + /// The longitude of the location. + public double? Longitude { 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 OutlookGeoCoordinates() + { + 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.Calendar.Client.Models.OutlookGeoCoordinates CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.OutlookGeoCoordinates(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "accuracy", n => { Accuracy = n.GetDoubleValue(); } }, + { "altitude", n => { Altitude = n.GetDoubleValue(); } }, + { "altitudeAccuracy", n => { AltitudeAccuracy = n.GetDoubleValue(); } }, + { "latitude", n => { Latitude = n.GetDoubleValue(); } }, + { "longitude", n => { Longitude = n.GetDoubleValue(); } }, + { "@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.WriteDoubleValue("accuracy", Accuracy); + writer.WriteDoubleValue("altitude", Altitude); + writer.WriteDoubleValue("altitudeAccuracy", AltitudeAccuracy); + writer.WriteDoubleValue("latitude", Latitude); + writer.WriteDoubleValue("longitude", Longitude); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/OutlookItem.cs b/src/Calendar/wrapper/beta/Client/Models/OutlookItem.cs new file mode 100644 index 00000000000..b6b83bdb82f --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/OutlookItem.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class OutlookItem : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Entity, IParsable + #pragma warning restore CS1591 + { + /// The categories associated with the item. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Categories { get; set; } +#nullable restore +#else + public List Categories { get; set; } +#endif + /// Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ChangeKey { get; set; } +#nullable restore +#else + public string ChangeKey { 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 + public DateTimeOffset? CreatedDateTime { get; set; } + /// The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + public DateTimeOffset? LastModifiedDateTime { get; 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.Calendar.Client.Models.OutlookItem CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch + { + "#microsoft.graph.event" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event(), + _ => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.OutlookItem(), + }; + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "categories", n => { Categories = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "changeKey", n => { ChangeKey = n.GetStringValue(); } }, + { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + { "lastModifiedDateTime", n => { LastModifiedDateTime = 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.WriteCollectionOfPrimitiveValues("categories", Categories); + writer.WriteStringValue("changeKey", ChangeKey); + writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/PatternedRecurrence.cs b/src/Calendar/wrapper/beta/Client/Models/PatternedRecurrence.cs new file mode 100644 index 00000000000..b798a02abf4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/PatternedRecurrence.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class PatternedRecurrence : 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 frequency of an event. Do not specify for a one-time access review. For access reviews: Do not specify this property for a one-time access review. Only interval, dayOfMonth, and type (weekly, absoluteMonthly) properties of recurrencePattern are supported. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.RecurrencePattern? Pattern { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.RecurrencePattern Pattern { get; set; } +#endif + /// The duration of an event. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.RecurrenceRange? Range { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.RecurrenceRange Range { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public PatternedRecurrence() + { + 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.Calendar.Client.Models.PatternedRecurrence CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PatternedRecurrence(); + } + /// + /// 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(); } }, + { "pattern", n => { Pattern = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.RecurrencePattern.CreateFromDiscriminatorValue); } }, + { "range", n => { Range = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.RecurrenceRange.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.WriteObjectValue("pattern", Pattern); + writer.WriteObjectValue("range", Range); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/Phone.cs b/src/Calendar/wrapper/beta/Client/Models/Phone.cs new file mode 100644 index 00000000000..648b4fb283e --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/Phone.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class Phone : 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 phone number. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Number { get; set; } +#nullable restore +#else + public string Number { 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 type of phone number. The possible values are: home, business, mobile, other, assistant, homeFax, businessFax, otherFax, pager, radio. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PhoneType? Type { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public Phone() + { + 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.Calendar.Client.Models.Phone CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Phone(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "number", n => { Number = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("number", Number); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteEnumValue("type", Type); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/PhoneType.cs b/src/Calendar/wrapper/beta/Client/Models/PhoneType.cs new file mode 100644 index 00000000000..70df36afe36 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/PhoneType.cs @@ -0,0 +1,52 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum PhoneType + #pragma warning restore CS1591 + { + [EnumMember(Value = "home")] + #pragma warning disable CS1591 + Home, + #pragma warning restore CS1591 + [EnumMember(Value = "business")] + #pragma warning disable CS1591 + Business, + #pragma warning restore CS1591 + [EnumMember(Value = "mobile")] + #pragma warning disable CS1591 + Mobile, + #pragma warning restore CS1591 + [EnumMember(Value = "other")] + #pragma warning disable CS1591 + Other, + #pragma warning restore CS1591 + [EnumMember(Value = "assistant")] + #pragma warning disable CS1591 + Assistant, + #pragma warning restore CS1591 + [EnumMember(Value = "homeFax")] + #pragma warning disable CS1591 + HomeFax, + #pragma warning restore CS1591 + [EnumMember(Value = "businessFax")] + #pragma warning disable CS1591 + BusinessFax, + #pragma warning restore CS1591 + [EnumMember(Value = "otherFax")] + #pragma warning disable CS1591 + OtherFax, + #pragma warning restore CS1591 + [EnumMember(Value = "pager")] + #pragma warning disable CS1591 + Pager, + #pragma warning restore CS1591 + [EnumMember(Value = "radio")] + #pragma warning disable CS1591 + Radio, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/PhysicalAddress.cs b/src/Calendar/wrapper/beta/Client/Models/PhysicalAddress.cs new file mode 100644 index 00000000000..47d7d8e4f3e --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/PhysicalAddress.cs @@ -0,0 +1,129 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class PhysicalAddress : 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 city. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? City { get; set; } +#nullable restore +#else + public string City { get; set; } +#endif + /// The country or region. It's a free-format string value, for example, 'United States'. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? CountryOrRegion { get; set; } +#nullable restore +#else + public string CountryOrRegion { 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 postal code. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PostalCode { get; set; } +#nullable restore +#else + public string PostalCode { get; set; } +#endif + /// The post office box number. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PostOfficeBox { get; set; } +#nullable restore +#else + public string PostOfficeBox { get; set; } +#endif + /// The state. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? State { get; set; } +#nullable restore +#else + public string State { get; set; } +#endif + /// The street. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Street { get; set; } +#nullable restore +#else + public string Street { get; set; } +#endif + /// The type of address. The possible values are: unknown, home, business, other. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PhysicalAddressType? Type { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public PhysicalAddress() + { + 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.Calendar.Client.Models.PhysicalAddress CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PhysicalAddress(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "city", n => { City = n.GetStringValue(); } }, + { "countryOrRegion", n => { CountryOrRegion = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "postOfficeBox", n => { PostOfficeBox = n.GetStringValue(); } }, + { "postalCode", n => { PostalCode = n.GetStringValue(); } }, + { "state", n => { State = n.GetStringValue(); } }, + { "street", n => { Street = n.GetStringValue(); } }, + { "type", n => { Type = 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("city", City); + writer.WriteStringValue("countryOrRegion", CountryOrRegion); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("postalCode", PostalCode); + writer.WriteStringValue("postOfficeBox", PostOfficeBox); + writer.WriteStringValue("state", State); + writer.WriteStringValue("street", Street); + writer.WriteEnumValue("type", Type); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/PhysicalAddressType.cs b/src/Calendar/wrapper/beta/Client/Models/PhysicalAddressType.cs new file mode 100644 index 00000000000..b38f87da084 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/PhysicalAddressType.cs @@ -0,0 +1,28 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum PhysicalAddressType + #pragma warning restore CS1591 + { + [EnumMember(Value = "unknown")] + #pragma warning disable CS1591 + Unknown, + #pragma warning restore CS1591 + [EnumMember(Value = "home")] + #pragma warning disable CS1591 + Home, + #pragma warning restore CS1591 + [EnumMember(Value = "business")] + #pragma warning disable CS1591 + Business, + #pragma warning restore CS1591 + [EnumMember(Value = "other")] + #pragma warning disable CS1591 + Other, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/Place.cs b/src/Calendar/wrapper/beta/Client/Models/Place.cs new file mode 100644 index 00000000000..db75575518b --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/Place.cs @@ -0,0 +1,174 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class Place : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Entity, IParsable + #pragma warning restore CS1591 + { + /// The physical address of the place, including the street, city, state, country or region, and postal code. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PhysicalAddress? Address { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PhysicalAddress Address { get; set; } +#endif + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? CheckIns { get; set; } +#nullable restore +#else + public List CheckIns { get; set; } +#endif + /// A collection of children places that is only used in the Upsert places API. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Children { get; set; } +#nullable restore +#else + public List Children { get; set; } +#endif + /// Custom properties for the place. Each property has a string key and a string value. Nullable. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.StringDictionary? CustomProperties { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.StringDictionary CustomProperties { get; set; } +#endif + /// The name that is associated with the place. +#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 + /// Specifies the place location in latitude, longitude, and (optionally) altitude coordinates. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.OutlookGeoCoordinates? GeoCoordinates { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.OutlookGeoCoordinates GeoCoordinates { get; set; } +#endif + /// Indicates whether the place is wheelchair accessible. + public bool? IsWheelChairAccessible { get; set; } + /// User-defined description of the place. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Label { get; set; } +#nullable restore +#else + public string Label { get; set; } +#endif + /// The date and time when the place was last updated. The timestamp is in ISO 8601 format and is always in UTC. Read-only. Nullable. + public DateTimeOffset? LastUpdatedTime { get; private set; } + /// The ID of a parent place. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ParentId { get; set; } +#nullable restore +#else + public string ParentId { get; set; } +#endif + /// The phone number of the place. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Phone { get; set; } +#nullable restore +#else + public string Phone { get; set; } +#endif + /// A stable service-level identifier for the place object used by Places workloads. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PlaceId { get; set; } +#nullable restore +#else + public string PlaceId { get; set; } +#endif + /// Custom tags that are associated with the place for categorization or filtering. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Tags { get; set; } +#nullable restore +#else + public List Tags { 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.Calendar.Client.Models.Place CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch + { + "#microsoft.graph.building" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Building(), + "#microsoft.graph.desk" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Desk(), + "#microsoft.graph.floor" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Floor(), + "#microsoft.graph.room" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Room(), + "#microsoft.graph.roomList" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomList(), + "#microsoft.graph.section" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Section(), + "#microsoft.graph.workspace" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace(), + _ => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place(), + }; + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "address", n => { Address = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PhysicalAddress.CreateFromDiscriminatorValue); } }, + { "checkIns", n => { CheckIns = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue)?.AsList(); } }, + { "children", n => { Children = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place.CreateFromDiscriminatorValue)?.AsList(); } }, + { "customProperties", n => { CustomProperties = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.StringDictionary.CreateFromDiscriminatorValue); } }, + { "displayName", n => { DisplayName = n.GetStringValue(); } }, + { "geoCoordinates", n => { GeoCoordinates = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.OutlookGeoCoordinates.CreateFromDiscriminatorValue); } }, + { "isWheelChairAccessible", n => { IsWheelChairAccessible = n.GetBoolValue(); } }, + { "label", n => { Label = n.GetStringValue(); } }, + { "lastUpdatedTime", n => { LastUpdatedTime = n.GetDateTimeOffsetValue(); } }, + { "parentId", n => { ParentId = n.GetStringValue(); } }, + { "phone", n => { Phone = n.GetStringValue(); } }, + { "placeId", n => { PlaceId = n.GetStringValue(); } }, + { "tags", n => { Tags = n.GetCollectionOfPrimitiveValues()?.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.WriteObjectValue("address", Address); + writer.WriteCollectionOfObjectValues("checkIns", CheckIns); + writer.WriteCollectionOfObjectValues("children", Children); + writer.WriteObjectValue("customProperties", CustomProperties); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteObjectValue("geoCoordinates", GeoCoordinates); + writer.WriteBoolValue("isWheelChairAccessible", IsWheelChairAccessible); + writer.WriteStringValue("label", Label); + writer.WriteStringValue("parentId", ParentId); + writer.WriteStringValue("phone", Phone); + writer.WriteStringValue("placeId", PlaceId); + writer.WriteCollectionOfPrimitiveValues("tags", Tags); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/PlaceCollectionResponse.cs b/src/Calendar/wrapper/beta/Client/Models/PlaceCollectionResponse.cs new file mode 100644 index 00000000000..46c743ae37d --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/PlaceCollectionResponse.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class PlaceCollectionResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Models.PlaceCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse(); + } + /// + /// 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.Calendar.Client.Models.Place.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/Calendar/wrapper/beta/Client/Models/PlaceExecutionResult.cs b/src/Calendar/wrapper/beta/Client/Models/PlaceExecutionResult.cs new file mode 100644 index 00000000000..6b10d3c6289 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/PlaceExecutionResult.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class PlaceExecutionResult : 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 upsert results of children places of the place. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Children { get; set; } +#nullable restore +#else + public List Children { get; set; } +#endif + /// The error that occurred during the upsert of the place. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PublicError? Error { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PublicError Error { 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 succeededPlace property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place? SucceededPlace { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place SucceededPlace { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public PlaceExecutionResult() + { + 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.Calendar.Client.Models.PlaceExecutionResult CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceExecutionResult(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "children", n => { Children = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceExecutionResult.CreateFromDiscriminatorValue)?.AsList(); } }, + { "error", n => { Error = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PublicError.CreateFromDiscriminatorValue); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "succeededPlace", n => { SucceededPlace = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place.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.WriteCollectionOfObjectValues("children", Children); + writer.WriteObjectValue("error", Error); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteObjectValue("succeededPlace", SucceededPlace); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/PlaceFeatureEnablement.cs b/src/Calendar/wrapper/beta/Client/Models/PlaceFeatureEnablement.cs new file mode 100644 index 00000000000..4fa00e20711 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/PlaceFeatureEnablement.cs @@ -0,0 +1,28 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum PlaceFeatureEnablement + #pragma warning restore CS1591 + { + [EnumMember(Value = "unknown")] + #pragma warning disable CS1591 + Unknown, + #pragma warning restore CS1591 + [EnumMember(Value = "enabled")] + #pragma warning disable CS1591 + Enabled, + #pragma warning restore CS1591 + [EnumMember(Value = "disabled")] + #pragma warning disable CS1591 + Disabled, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/PlaceMode.cs b/src/Calendar/wrapper/beta/Client/Models/PlaceMode.cs new file mode 100644 index 00000000000..1d9b1175eba --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/PlaceMode.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class PlaceMode : 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 PlaceMode() + { + 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.Calendar.Client.Models.PlaceMode CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceMode(); + } + /// + /// 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/Calendar/wrapper/beta/Client/Models/PlaceOperation.cs b/src/Calendar/wrapper/beta/Client/Models/PlaceOperation.cs new file mode 100644 index 00000000000..0c2c7b89e58 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/PlaceOperation.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class PlaceOperation : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Entity, IParsable + #pragma warning restore CS1591 + { + /// The detailed result of the operation, including errors and successful places. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Details { get; set; } +#nullable restore +#else + public List Details { get; set; } +#endif + /// The progress of the operation. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceOperationProgress? Progress { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceOperationProgress Progress { get; set; } +#endif + /// The status property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceOperationStatus? 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.Calendar.Client.Models.PlaceOperation CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceOperation(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "details", n => { Details = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceExecutionResult.CreateFromDiscriminatorValue)?.AsList(); } }, + { "progress", n => { Progress = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceOperationProgress.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.WriteCollectionOfObjectValues("details", Details); + writer.WriteObjectValue("progress", Progress); + writer.WriteEnumValue("status", Status); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/PlaceOperationProgress.cs b/src/Calendar/wrapper/beta/Client/Models/PlaceOperationProgress.cs new file mode 100644 index 00000000000..adc2db3f7d6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/PlaceOperationProgress.cs @@ -0,0 +1,77 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class PlaceOperationProgress : 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 count of places failed to upsert. + public int? FailedPlaceCount { 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 count of places succeeded to upsert. + public int? SucceededPlaceCount { get; set; } + /// The total count of places in the request. + public int? TotalPlaceCount { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public PlaceOperationProgress() + { + 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.Calendar.Client.Models.PlaceOperationProgress CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceOperationProgress(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "failedPlaceCount", n => { FailedPlaceCount = n.GetIntValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "succeededPlaceCount", n => { SucceededPlaceCount = n.GetIntValue(); } }, + { "totalPlaceCount", n => { TotalPlaceCount = 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("failedPlaceCount", FailedPlaceCount); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteIntValue("succeededPlaceCount", SucceededPlaceCount); + writer.WriteIntValue("totalPlaceCount", TotalPlaceCount); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/PlaceOperationStatus.cs b/src/Calendar/wrapper/beta/Client/Models/PlaceOperationStatus.cs new file mode 100644 index 00000000000..e8e66ba935c --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/PlaceOperationStatus.cs @@ -0,0 +1,40 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum PlaceOperationStatus + #pragma warning restore CS1591 + { + [EnumMember(Value = "created")] + #pragma warning disable CS1591 + Created, + #pragma warning restore CS1591 + [EnumMember(Value = "inProgress")] + #pragma warning disable CS1591 + InProgress, + #pragma warning restore CS1591 + [EnumMember(Value = "succeeded")] + #pragma warning disable CS1591 + Succeeded, + #pragma warning restore CS1591 + [EnumMember(Value = "failed")] + #pragma warning disable CS1591 + Failed, + #pragma warning restore CS1591 + [EnumMember(Value = "partiallySucceeded")] + #pragma warning disable CS1591 + PartiallySucceeded, + #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/Calendar/wrapper/beta/Client/Models/PlaceServicePlanInfo.cs b/src/Calendar/wrapper/beta/Client/Models/PlaceServicePlanInfo.cs new file mode 100644 index 00000000000..c8accbd5883 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/PlaceServicePlanInfo.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class PlaceServicePlanInfo : 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 service plan identifier. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ServicePlanId { get; set; } +#nullable restore +#else + public string ServicePlanId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public PlaceServicePlanInfo() + { + 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.Calendar.Client.Models.PlaceServicePlanInfo CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceServicePlanInfo(); + } + /// + /// 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(); } }, + { "servicePlanId", n => { ServicePlanId = 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("servicePlanId", ServicePlanId); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/PublicError.cs b/src/Calendar/wrapper/beta/Client/Models/PublicError.cs new file mode 100644 index 00000000000..22998375495 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/PublicError.cs @@ -0,0 +1,115 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class PublicError : 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; } + /// Represents 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 + /// Details of the error. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Details { get; set; } +#nullable restore +#else + public List Details { get; set; } +#endif + /// Details of the inner error. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PublicInnerError? InnerError { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PublicInnerError InnerError { get; set; } +#endif + /// A non-localized message for the developer. +#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 + /// The target of the error. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Target { get; set; } +#nullable restore +#else + public string Target { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public PublicError() + { + 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.Calendar.Client.Models.PublicError CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PublicError(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "code", n => { Code = n.GetStringValue(); } }, + { "details", n => { Details = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PublicErrorDetail.CreateFromDiscriminatorValue)?.AsList(); } }, + { "innerError", n => { InnerError = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PublicInnerError.CreateFromDiscriminatorValue); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "target", n => { Target = 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.WriteCollectionOfObjectValues("details", Details); + writer.WriteObjectValue("innerError", InnerError); + writer.WriteStringValue("message", Message); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("target", Target); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/PublicErrorDetail.cs b/src/Calendar/wrapper/beta/Client/Models/PublicErrorDetail.cs new file mode 100644 index 00000000000..4dad1006f66 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/PublicErrorDetail.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class PublicErrorDetail : 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 + /// The target of the error. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Target { get; set; } +#nullable restore +#else + public string Target { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public PublicErrorDetail() + { + 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.Calendar.Client.Models.PublicErrorDetail CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PublicErrorDetail(); + } + /// + /// 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(); } }, + { "target", n => { Target = 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.WriteStringValue("target", Target); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/PublicInnerError.cs b/src/Calendar/wrapper/beta/Client/Models/PublicInnerError.cs new file mode 100644 index 00000000000..1840cb13cdd --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/PublicInnerError.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class PublicInnerError : 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 + /// A collection of error details. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Details { get; set; } +#nullable restore +#else + public List Details { 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 + /// The target of the error. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Target { get; set; } +#nullable restore +#else + public string Target { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public PublicInnerError() + { + 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.Calendar.Client.Models.PublicInnerError CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PublicInnerError(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "code", n => { Code = n.GetStringValue(); } }, + { "details", n => { Details = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PublicErrorDetail.CreateFromDiscriminatorValue)?.AsList(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "target", n => { Target = 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.WriteCollectionOfObjectValues("details", Details); + writer.WriteStringValue("message", Message); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("target", Target); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/Recipient.cs b/src/Calendar/wrapper/beta/Client/Models/Recipient.cs new file mode 100644 index 00000000000..7e14f0904e3 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/Recipient.cs @@ -0,0 +1,81 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class Recipient : 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 recipient's email address. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress? EmailAddress { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress EmailAddress { 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 Recipient() + { + 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.Calendar.Client.Models.Recipient CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch + { + "#microsoft.graph.attendee" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attendee(), + "#microsoft.graph.attendeeBase" => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttendeeBase(), + _ => new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient(), + }; + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "emailAddress", n => { EmailAddress = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress.CreateFromDiscriminatorValue); } }, + { "@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.WriteObjectValue("emailAddress", EmailAddress); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/RecurrencePattern.cs b/src/Calendar/wrapper/beta/Client/Models/RecurrencePattern.cs new file mode 100644 index 00000000000..7b59dc13188 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/RecurrencePattern.cs @@ -0,0 +1,99 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class RecurrencePattern : 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 day of the month on which the event occurs. Required if type is absoluteMonthly or absoluteYearly. + public int? DayOfMonth { get; set; } + /// A collection of the days of the week on which the event occurs. The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday. If type is relativeMonthly or relativeYearly, and daysOfWeek specifies more than one day, the event falls on the first day that satisfies the pattern. Required if type is weekly, relativeMonthly, or relativeYearly. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? DaysOfWeek { get; set; } +#nullable restore +#else + public List DaysOfWeek { get; set; } +#endif + /// The first day of the week. The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday. Default is sunday. Required if type is weekly. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DayOfWeekObject? FirstDayOfWeek { get; set; } + /// Specifies on which instance of the allowed days specified in daysOfWeek the event occurs, counted from the first instance in the month. The possible values are: first, second, third, fourth, last. Default is first. Optional and used if type is relativeMonthly or relativeYearly. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.WeekIndex? Index { get; set; } + /// The number of units between occurrences, where units can be in days, weeks, months, or years, depending on the type. Required. + public int? Interval { get; set; } + /// The month in which the event occurs. This is a number from 1 to 12. + public int? Month { 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 recurrence pattern type: daily, weekly, absoluteMonthly, relativeMonthly, absoluteYearly, relativeYearly. Required. For more information, see values of type property. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.RecurrencePatternType? Type { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public RecurrencePattern() + { + 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.Calendar.Client.Models.RecurrencePattern CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.RecurrencePattern(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "dayOfMonth", n => { DayOfMonth = n.GetIntValue(); } }, + { "daysOfWeek", n => { DaysOfWeek = n.GetCollectionOfEnumValues()?.AsList(); } }, + { "firstDayOfWeek", n => { FirstDayOfWeek = n.GetEnumValue(); } }, + { "index", n => { Index = n.GetEnumValue(); } }, + { "interval", n => { Interval = n.GetIntValue(); } }, + { "month", n => { Month = n.GetIntValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "type", n => { Type = n.GetEnumValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) + { + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); + writer.WriteIntValue("dayOfMonth", DayOfMonth); + writer.WriteCollectionOfEnumValues("daysOfWeek", DaysOfWeek); + writer.WriteEnumValue("firstDayOfWeek", FirstDayOfWeek); + writer.WriteEnumValue("index", Index); + writer.WriteIntValue("interval", Interval); + writer.WriteIntValue("month", Month); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteEnumValue("type", Type); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/RecurrencePatternType.cs b/src/Calendar/wrapper/beta/Client/Models/RecurrencePatternType.cs new file mode 100644 index 00000000000..acdc786fce1 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/RecurrencePatternType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum RecurrencePatternType + #pragma warning restore CS1591 + { + [EnumMember(Value = "daily")] + #pragma warning disable CS1591 + Daily, + #pragma warning restore CS1591 + [EnumMember(Value = "weekly")] + #pragma warning disable CS1591 + Weekly, + #pragma warning restore CS1591 + [EnumMember(Value = "absoluteMonthly")] + #pragma warning disable CS1591 + AbsoluteMonthly, + #pragma warning restore CS1591 + [EnumMember(Value = "relativeMonthly")] + #pragma warning disable CS1591 + RelativeMonthly, + #pragma warning restore CS1591 + [EnumMember(Value = "absoluteYearly")] + #pragma warning disable CS1591 + AbsoluteYearly, + #pragma warning restore CS1591 + [EnumMember(Value = "relativeYearly")] + #pragma warning disable CS1591 + RelativeYearly, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/RecurrenceRange.cs b/src/Calendar/wrapper/beta/Client/Models/RecurrenceRange.cs new file mode 100644 index 00000000000..62eebe9503c --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/RecurrenceRange.cs @@ -0,0 +1,92 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class RecurrenceRange : 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 date to stop applying the recurrence pattern. Depending on the recurrence pattern of the event, the last occurrence of the meeting may not be this date. Required if type is endDate. + public Date? EndDate { get; set; } + /// The number of times to repeat the event. Required and must be positive if type is numbered. + public int? NumberOfOccurrences { 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 + /// Time zone for the startDate and endDate properties. Optional. If not specified, the time zone of the event is used. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? RecurrenceTimeZone { get; set; } +#nullable restore +#else + public string RecurrenceTimeZone { get; set; } +#endif + /// The date to start applying the recurrence pattern. The first occurrence of the meeting may be this date or later, depending on the recurrence pattern of the event. Must be the same value as the start property of the recurring event. Required. + public Date? StartDate { get; set; } + /// The recurrence range. The possible values are: endDate, noEnd, numbered. Required. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.RecurrenceRangeType? Type { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public RecurrenceRange() + { + 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.Calendar.Client.Models.RecurrenceRange CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.RecurrenceRange(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "endDate", n => { EndDate = n.GetDateValue(); } }, + { "numberOfOccurrences", n => { NumberOfOccurrences = n.GetIntValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "recurrenceTimeZone", n => { RecurrenceTimeZone = n.GetStringValue(); } }, + { "startDate", n => { StartDate = n.GetDateValue(); } }, + { "type", n => { Type = 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.WriteDateValue("endDate", EndDate); + writer.WriteIntValue("numberOfOccurrences", NumberOfOccurrences); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("recurrenceTimeZone", RecurrenceTimeZone); + writer.WriteDateValue("startDate", StartDate); + writer.WriteEnumValue("type", Type); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/RecurrenceRangeType.cs b/src/Calendar/wrapper/beta/Client/Models/RecurrenceRangeType.cs new file mode 100644 index 00000000000..b38590c6711 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/RecurrenceRangeType.cs @@ -0,0 +1,24 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum RecurrenceRangeType + #pragma warning restore CS1591 + { + [EnumMember(Value = "endDate")] + #pragma warning disable CS1591 + EndDate, + #pragma warning restore CS1591 + [EnumMember(Value = "noEnd")] + #pragma warning disable CS1591 + NoEnd, + #pragma warning restore CS1591 + [EnumMember(Value = "numbered")] + #pragma warning disable CS1591 + Numbered, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/ResourceLink.cs b/src/Calendar/wrapper/beta/Client/Models/ResourceLink.cs new file mode 100644 index 00000000000..1ad351d7b85 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/ResourceLink.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ResourceLink : 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 linkType property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ResourceLinkType? LinkType { get; set; } + /// The link text that is visible in the Places app. The maximum length is 200 characters. +#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 + /// 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 URL of the resource link. The maximum length is 200 characters. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Value { get; set; } +#nullable restore +#else + public string Value { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ResourceLink() + { + 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.Calendar.Client.Models.ResourceLink CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ResourceLink(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "linkType", n => { LinkType = n.GetEnumValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "value", n => { Value = 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.WriteEnumValue("linkType", LinkType); + writer.WriteStringValue("name", Name); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("value", Value); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/ResourceLinkType.cs b/src/Calendar/wrapper/beta/Client/Models/ResourceLinkType.cs new file mode 100644 index 00000000000..a6d72741b2e --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/ResourceLinkType.cs @@ -0,0 +1,20 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ResourceLinkType + #pragma warning restore CS1591 + { + [EnumMember(Value = "url")] + #pragma warning disable CS1591 + Url, + #pragma warning restore CS1591 + [EnumMember(Value = "unknownFutureValue")] + #pragma warning disable CS1591 + UnknownFutureValue, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/ResponseStatus.cs b/src/Calendar/wrapper/beta/Client/Models/ResponseStatus.cs new file mode 100644 index 00000000000..ca26b482af2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/ResponseStatus.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ResponseStatus : 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 response type. The possible values are: none, organizer, tentativelyAccepted, accepted, declined, notResponded.To differentiate between none and notResponded: none – from organizer's perspective. This value is used when the status of an attendee/participant is reported to the organizer of a meeting. notResponded – from attendee's perspective. Indicates the attendee has not responded to the meeting request. Clients can treat notResponded == none. As an example, if attendee Alex hasn't responded to a meeting request, getting Alex' response status for that event in Alex' calendar returns notResponded. Getting Alex' response from the calendar of any other attendee or the organizer's returns none. Getting the organizer's response for the event in anybody's calendar also returns none. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ResponseType? Response { get; set; } + /// The date and time that the response was returned. It uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + public DateTimeOffset? Time { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public ResponseStatus() + { + 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.Calendar.Client.Models.ResponseStatus CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ResponseStatus(); + } + /// + /// 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(); } }, + { "response", n => { Response = n.GetEnumValue(); } }, + { "time", n => { Time = n.GetDateTimeOffsetValue(); } }, + }; + } + /// + /// 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("response", Response); + writer.WriteDateTimeOffsetValue("time", Time); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/ResponseType.cs b/src/Calendar/wrapper/beta/Client/Models/ResponseType.cs new file mode 100644 index 00000000000..62a626d6417 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/ResponseType.cs @@ -0,0 +1,36 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum ResponseType + #pragma warning restore CS1591 + { + [EnumMember(Value = "none")] + #pragma warning disable CS1591 + None, + #pragma warning restore CS1591 + [EnumMember(Value = "organizer")] + #pragma warning disable CS1591 + Organizer, + #pragma warning restore CS1591 + [EnumMember(Value = "tentativelyAccepted")] + #pragma warning disable CS1591 + TentativelyAccepted, + #pragma warning restore CS1591 + [EnumMember(Value = "accepted")] + #pragma warning disable CS1591 + Accepted, + #pragma warning restore CS1591 + [EnumMember(Value = "declined")] + #pragma warning disable CS1591 + Declined, + #pragma warning restore CS1591 + [EnumMember(Value = "notResponded")] + #pragma warning disable CS1591 + NotResponded, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/Room.cs b/src/Calendar/wrapper/beta/Client/Models/Room.cs new file mode 100644 index 00000000000..6c3efa2cae5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/Room.cs @@ -0,0 +1,143 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class Room : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place, IParsable + #pragma warning restore CS1591 + { + /// The name of the audio device that is available in the room. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? AudioDeviceName { get; set; } +#nullable restore +#else + public string AudioDeviceName { get; set; } +#endif + /// Specifies how the room can be booked. The possible values are:unknown - Unspecified booking behavior. We don't recommend that you use this value.standard - Available for general booking.reserved - Reserved for specific users or purposes. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BookingType? BookingType { get; set; } + /// The name or identifier of the building where the room is located. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Building { get; set; } +#nullable restore +#else + public string Building { get; set; } +#endif + /// The maximum number of people the room can accommodate. + public int? Capacity { get; set; } + /// The name of the display device (for example, monitor or projector) that is available in the room. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayDeviceName { get; set; } +#nullable restore +#else + public string DisplayDeviceName { get; set; } +#endif + /// The email address associated with the room. This email address is used for booking. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? EmailAddress { get; set; } +#nullable restore +#else + public string EmailAddress { get; set; } +#endif + /// A human-readable label for the floor; for example, Ground Floor. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? FloorLabel { get; set; } +#nullable restore +#else + public string FloorLabel { get; set; } +#endif + /// The numeric floor level within the building. For example, 1 for first floor, 2 for second floor, and so on. + public int? FloorNumber { get; set; } + /// Indicates whether the room is configured with the Microsoft Teams Rooms system. + public bool? IsTeamsEnabled { get; set; } + /// A short, friendly name for the room, often used for easier identification or display in UI. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Nickname { get; set; } +#nullable restore +#else + public string Nickname { get; set; } +#endif + /// The teamsEnabledState property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceFeatureEnablement? TeamsEnabledState { get; set; } + /// The name of the video device that is available in the room. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? VideoDeviceName { get; set; } +#nullable restore +#else + public string VideoDeviceName { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public Room() : base() + { + OdataType = "#microsoft.graph.room"; + } + /// + /// 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.Calendar.Client.Models.Room CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Room(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "audioDeviceName", n => { AudioDeviceName = n.GetStringValue(); } }, + { "bookingType", n => { BookingType = n.GetEnumValue(); } }, + { "building", n => { Building = n.GetStringValue(); } }, + { "capacity", n => { Capacity = n.GetIntValue(); } }, + { "displayDeviceName", n => { DisplayDeviceName = n.GetStringValue(); } }, + { "emailAddress", n => { EmailAddress = n.GetStringValue(); } }, + { "floorLabel", n => { FloorLabel = n.GetStringValue(); } }, + { "floorNumber", n => { FloorNumber = n.GetIntValue(); } }, + { "isTeamsEnabled", n => { IsTeamsEnabled = n.GetBoolValue(); } }, + { "nickname", n => { Nickname = n.GetStringValue(); } }, + { "teamsEnabledState", n => { TeamsEnabledState = n.GetEnumValue(); } }, + { "videoDeviceName", n => { VideoDeviceName = 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("audioDeviceName", AudioDeviceName); + writer.WriteEnumValue("bookingType", BookingType); + writer.WriteStringValue("building", Building); + writer.WriteIntValue("capacity", Capacity); + writer.WriteStringValue("displayDeviceName", DisplayDeviceName); + writer.WriteStringValue("emailAddress", EmailAddress); + writer.WriteStringValue("floorLabel", FloorLabel); + writer.WriteIntValue("floorNumber", FloorNumber); + writer.WriteBoolValue("isTeamsEnabled", IsTeamsEnabled); + writer.WriteStringValue("nickname", Nickname); + writer.WriteEnumValue("teamsEnabledState", TeamsEnabledState); + writer.WriteStringValue("videoDeviceName", VideoDeviceName); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/RoomCollectionResponse.cs b/src/Calendar/wrapper/beta/Client/Models/RoomCollectionResponse.cs new file mode 100644 index 00000000000..809e51b4501 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/RoomCollectionResponse.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class RoomCollectionResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Models.RoomCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomCollectionResponse(); + } + /// + /// 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.Calendar.Client.Models.Room.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/Calendar/wrapper/beta/Client/Models/RoomList.cs b/src/Calendar/wrapper/beta/Client/Models/RoomList.cs new file mode 100644 index 00000000000..f9d2b6b039d --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/RoomList.cs @@ -0,0 +1,83 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class RoomList : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place, IParsable + #pragma warning restore CS1591 + { + /// The email address of the room list. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? EmailAddress { get; set; } +#nullable restore +#else + public string EmailAddress { get; set; } +#endif + /// The rooms property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Rooms { get; set; } +#nullable restore +#else + public List Rooms { get; set; } +#endif + /// The workspaces property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Workspaces { get; set; } +#nullable restore +#else + public List Workspaces { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public RoomList() : base() + { + OdataType = "#microsoft.graph.roomList"; + } + /// + /// 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.Calendar.Client.Models.RoomList CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomList(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "emailAddress", n => { EmailAddress = n.GetStringValue(); } }, + { "rooms", n => { Rooms = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Room.CreateFromDiscriminatorValue)?.AsList(); } }, + { "workspaces", n => { Workspaces = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace.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.WriteStringValue("emailAddress", EmailAddress); + writer.WriteCollectionOfObjectValues("rooms", Rooms); + writer.WriteCollectionOfObjectValues("workspaces", Workspaces); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/RoomListCollectionResponse.cs b/src/Calendar/wrapper/beta/Client/Models/RoomListCollectionResponse.cs new file mode 100644 index 00000000000..d7643e66873 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/RoomListCollectionResponse.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class RoomListCollectionResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Models.RoomListCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomListCollectionResponse(); + } + /// + /// 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.Calendar.Client.Models.RoomList.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/Calendar/wrapper/beta/Client/Models/ScheduleInformation.cs b/src/Calendar/wrapper/beta/Client/Models/ScheduleInformation.cs new file mode 100644 index 00000000000..1ce2755cd37 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/ScheduleInformation.cs @@ -0,0 +1,115 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ScheduleInformation : 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; } + /// Represents a merged view of availability of all the items in scheduleItems. The view consists of time slots. Availability during each time slot is indicated with: 0= free or working elswhere, 1= tentative, 2= busy, 3= out of office.Note: Working elsewhere is set to 0 instead of 4 for backward compatibility. For details, see the Q&A and Exchange 2007 and Exchange 2010 do not use the WorkingElsewhere value. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? AvailabilityView { get; set; } +#nullable restore +#else + public string AvailabilityView { get; set; } +#endif + /// Error information from attempting to get the availability of the user, distribution list, or resource. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FreeBusyError? Error { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FreeBusyError Error { 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 + /// An SMTP address of the user, distribution list, or resource, identifying an instance of scheduleInformation. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ScheduleId { get; set; } +#nullable restore +#else + public string ScheduleId { get; set; } +#endif + /// Contains the items that describe the availability of the user or resource. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ScheduleItems { get; set; } +#nullable restore +#else + public List ScheduleItems { get; set; } +#endif + /// The days of the week and hours in a specific time zone that the user works. These are set as part of the user's mailboxSettings. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.WorkingHours? WorkingHours { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.WorkingHours WorkingHours { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ScheduleInformation() + { + 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.Calendar.Client.Models.ScheduleInformation CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ScheduleInformation(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "availabilityView", n => { AvailabilityView = n.GetStringValue(); } }, + { "error", n => { Error = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FreeBusyError.CreateFromDiscriminatorValue); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "scheduleId", n => { ScheduleId = n.GetStringValue(); } }, + { "scheduleItems", n => { ScheduleItems = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ScheduleItem.CreateFromDiscriminatorValue)?.AsList(); } }, + { "workingHours", n => { WorkingHours = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.WorkingHours.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("availabilityView", AvailabilityView); + writer.WriteObjectValue("error", Error); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("scheduleId", ScheduleId); + writer.WriteCollectionOfObjectValues("scheduleItems", ScheduleItems); + writer.WriteObjectValue("workingHours", WorkingHours); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/ScheduleItem.cs b/src/Calendar/wrapper/beta/Client/Models/ScheduleItem.cs new file mode 100644 index 00000000000..d3495a54efe --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/ScheduleItem.cs @@ -0,0 +1,113 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ScheduleItem : 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 date, time, and time zone that the corresponding event ends. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? End { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone End { get; set; } +#endif + /// The sensitivity of the corresponding event. True if the event is marked private, false otherwise. Optional. + public bool? IsPrivate { get; set; } + /// The location where the corresponding event is held or attended from. Optional. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Location { get; set; } +#nullable restore +#else + public string Location { 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 date, time, and time zone that the corresponding event starts. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? Start { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone Start { get; set; } +#endif + /// The availability status of the user or resource during the corresponding event. The possible values are: free, tentative, busy, oof, workingElsewhere, unknown. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FreeBusyStatus? Status { get; set; } + /// The corresponding event's subject line. Optional. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Subject { get; set; } +#nullable restore +#else + public string Subject { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ScheduleItem() + { + 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.Calendar.Client.Models.ScheduleItem CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ScheduleItem(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "end", n => { End = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "isPrivate", n => { IsPrivate = n.GetBoolValue(); } }, + { "location", n => { Location = n.GetStringValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "start", n => { Start = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "status", n => { Status = n.GetEnumValue(); } }, + { "subject", n => { Subject = 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("end", End); + writer.WriteBoolValue("isPrivate", IsPrivate); + writer.WriteStringValue("location", Location); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteObjectValue("start", Start); + writer.WriteEnumValue("status", Status); + writer.WriteStringValue("subject", Subject); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/Section.cs b/src/Calendar/wrapper/beta/Client/Models/Section.cs new file mode 100644 index 00000000000..ad568aa96c7 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/Section.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class Section : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place, IParsable + #pragma warning restore CS1591 + { + /// + /// Instantiates a new and sets the default values. + /// + public Section() : base() + { + OdataType = "#microsoft.graph.section"; + } + /// + /// 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.Calendar.Client.Models.Section CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Section(); + } + /// + /// 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/Calendar/wrapper/beta/Client/Models/SectionCollectionResponse.cs b/src/Calendar/wrapper/beta/Client/Models/SectionCollectionResponse.cs new file mode 100644 index 00000000000..209bc19c3ed --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/SectionCollectionResponse.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class SectionCollectionResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Models.SectionCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionCollectionResponse(); + } + /// + /// 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.Calendar.Client.Models.Section.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/Calendar/wrapper/beta/Client/Models/SectionMap.cs b/src/Calendar/wrapper/beta/Client/Models/SectionMap.cs new file mode 100644 index 00000000000..530f4f98bc2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/SectionMap.cs @@ -0,0 +1,63 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class SectionMap : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseMapFeature, IParsable + #pragma warning restore CS1591 + { + /// Identifier of the section to which this sectionMap belongs. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PlaceId { get; set; } +#nullable restore +#else + public string PlaceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public SectionMap() : base() + { + OdataType = "#microsoft.graph.sectionMap"; + } + /// + /// 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.Calendar.Client.Models.SectionMap CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "placeId", n => { PlaceId = 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("placeId", PlaceId); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/SectionMapCollectionResponse.cs b/src/Calendar/wrapper/beta/Client/Models/SectionMapCollectionResponse.cs new file mode 100644 index 00000000000..5d3fdcefab0 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/SectionMapCollectionResponse.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class SectionMapCollectionResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Models.SectionMapCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMapCollectionResponse(); + } + /// + /// 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.Calendar.Client.Models.SectionMap.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/Calendar/wrapper/beta/Client/Models/Sensitivity.cs b/src/Calendar/wrapper/beta/Client/Models/Sensitivity.cs new file mode 100644 index 00000000000..623ac1d5f5f --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/Sensitivity.cs @@ -0,0 +1,28 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum Sensitivity + #pragma warning restore CS1591 + { + [EnumMember(Value = "normal")] + #pragma warning disable CS1591 + Normal, + #pragma warning restore CS1591 + [EnumMember(Value = "personal")] + #pragma warning disable CS1591 + Personal, + #pragma warning restore CS1591 + [EnumMember(Value = "private")] + #pragma warning disable CS1591 + Private, + #pragma warning restore CS1591 + [EnumMember(Value = "confidential")] + #pragma warning disable CS1591 + Confidential, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/SingleValueLegacyExtendedProperty.cs b/src/Calendar/wrapper/beta/Client/Models/SingleValueLegacyExtendedProperty.cs new file mode 100644 index 00000000000..64750b8df0b --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/SingleValueLegacyExtendedProperty.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class SingleValueLegacyExtendedProperty : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Entity, IParsable + #pragma warning restore CS1591 + { + /// A property value. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Value { get; set; } +#nullable restore +#else + public string 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.Calendar.Client.Models.SingleValueLegacyExtendedProperty CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.SingleValueLegacyExtendedProperty(); + } + /// + /// 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.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("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/StringDictionary.cs b/src/Calendar/wrapper/beta/Client/Models/StringDictionary.cs new file mode 100644 index 00000000000..419e6f79148 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/StringDictionary.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class StringDictionary : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Dictionary, IParsable + #pragma warning restore CS1591 + { + /// + /// Instantiates a new and sets the default values. + /// + public StringDictionary() : base() + { + OdataType = "#microsoft.graph.stringDictionary"; + } + /// + /// 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.Calendar.Client.Models.StringDictionary CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.StringDictionary(); + } + /// + /// 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/Calendar/wrapper/beta/Client/Models/TimeSlot.cs b/src/Calendar/wrapper/beta/Client/Models/TimeSlot.cs new file mode 100644 index 00000000000..312567147a8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/TimeSlot.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class TimeSlot : 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 end property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? End { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone End { 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 start property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? Start { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone Start { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public TimeSlot() + { + 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.Calendar.Client.Models.TimeSlot CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "end", n => { End = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "start", n => { Start = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone.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("end", End); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteObjectValue("start", Start); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/TimeZoneBase.cs b/src/Calendar/wrapper/beta/Client/Models/TimeZoneBase.cs new file mode 100644 index 00000000000..e923f456889 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/TimeZoneBase.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class TimeZoneBase : 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 name of a time zone. It can be a standard time zone name such as 'Hawaii-Aleutian Standard Time', or 'Customized Time Zone' for a custom time zone. +#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 + /// 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 TimeZoneBase() + { + 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.Calendar.Client.Models.TimeZoneBase CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeZoneBase(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "name", n => { Name = 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("name", Name); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/UnitMap.cs b/src/Calendar/wrapper/beta/Client/Models/UnitMap.cs new file mode 100644 index 00000000000..e75710811bf --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/UnitMap.cs @@ -0,0 +1,63 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class UnitMap : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseMapFeature, IParsable + #pragma warning restore CS1591 + { + /// Identifier of the place (such as a room) to which this unitMap belongs. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PlaceId { get; set; } +#nullable restore +#else + public string PlaceId { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public UnitMap() : base() + { + OdataType = "#microsoft.graph.unitMap"; + } + /// + /// 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.Calendar.Client.Models.UnitMap CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "placeId", n => { PlaceId = 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("placeId", PlaceId); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/UnitMapCollectionResponse.cs b/src/Calendar/wrapper/beta/Client/Models/UnitMapCollectionResponse.cs new file mode 100644 index 00000000000..57eae746560 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/UnitMapCollectionResponse.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class UnitMapCollectionResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Models.UnitMapCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMapCollectionResponse(); + } + /// + /// 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.Calendar.Client.Models.UnitMap.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/Calendar/wrapper/beta/Client/Models/UploadSession.cs b/src/Calendar/wrapper/beta/Client/Models/UploadSession.cs new file mode 100644 index 00000000000..2b9f3306799 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/UploadSession.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class UploadSession : 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 date and time in UTC that the upload session expires. The complete file must be uploaded before this expiration time is reached. Each fragment uploaded during the session extends the expiration time. + public DateTimeOffset? ExpirationDateTime { get; set; } + /// When uploading files to document libraries, this property is a collection of byte ranges that the server is missing for the file. These ranges are zero-indexed and of the format, '{start}-{end}' (for example '0-26' to indicate the first 27 bytes of the file). When uploading files as Outlook attachments, instead of a collection of ranges, this property always indicates a single value '{start}', the location in the file where the next upload should begin. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? NextExpectedRanges { get; set; } +#nullable restore +#else + public List NextExpectedRanges { 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 URL endpoint that accepts PUT requests for byte ranges of the file. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UploadUrl { get; set; } +#nullable restore +#else + public string UploadUrl { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public UploadSession() + { + 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.Calendar.Client.Models.UploadSession CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.UploadSession(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, + { "nextExpectedRanges", n => { NextExpectedRanges = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "uploadUrl", n => { UploadUrl = 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.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime); + writer.WriteCollectionOfPrimitiveValues("nextExpectedRanges", NextExpectedRanges); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteStringValue("uploadUrl", UploadUrl); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/WeekIndex.cs b/src/Calendar/wrapper/beta/Client/Models/WeekIndex.cs new file mode 100644 index 00000000000..f18553f3783 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/WeekIndex.cs @@ -0,0 +1,32 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public enum WeekIndex + #pragma warning restore CS1591 + { + [EnumMember(Value = "first")] + #pragma warning disable CS1591 + First, + #pragma warning restore CS1591 + [EnumMember(Value = "second")] + #pragma warning disable CS1591 + Second, + #pragma warning restore CS1591 + [EnumMember(Value = "third")] + #pragma warning disable CS1591 + Third, + #pragma warning restore CS1591 + [EnumMember(Value = "fourth")] + #pragma warning disable CS1591 + Fourth, + #pragma warning restore CS1591 + [EnumMember(Value = "last")] + #pragma warning disable CS1591 + Last, + #pragma warning restore CS1591 + } +} diff --git a/src/Calendar/wrapper/beta/Client/Models/WorkingHours.cs b/src/Calendar/wrapper/beta/Client/Models/WorkingHours.cs new file mode 100644 index 00000000000..883c278b50b --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/WorkingHours.cs @@ -0,0 +1,94 @@ +// +#pragma warning disable CS0618 +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class WorkingHours : 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 days of the week on which the user works. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? DaysOfWeek { get; set; } +#nullable restore +#else + public List DaysOfWeek { get; set; } +#endif + /// The time of the day that the user stops working. + public Time? EndTime { 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 time of the day that the user starts working. + public Time? StartTime { get; set; } + /// The time zone to which the working hours apply. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeZoneBase? TimeZone { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeZoneBase TimeZone { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public WorkingHours() + { + 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.Calendar.Client.Models.WorkingHours CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.WorkingHours(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "daysOfWeek", n => { DaysOfWeek = n.GetCollectionOfEnumValues()?.AsList(); } }, + { "endTime", n => { EndTime = n.GetTimeValue(); } }, + { "@odata.type", n => { OdataType = n.GetStringValue(); } }, + { "startTime", n => { StartTime = n.GetTimeValue(); } }, + { "timeZone", n => { TimeZone = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeZoneBase.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.WriteCollectionOfEnumValues("daysOfWeek", DaysOfWeek); + writer.WriteTimeValue("endTime", EndTime); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteTimeValue("startTime", StartTime); + writer.WriteObjectValue("timeZone", TimeZone); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/Workspace.cs b/src/Calendar/wrapper/beta/Client/Models/Workspace.cs new file mode 100644 index 00000000000..8fc76955183 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/Workspace.cs @@ -0,0 +1,121 @@ +// +#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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class Workspace : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place, IParsable + #pragma warning restore CS1591 + { + /// The name or identifier of the building where the workspace is located. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Building { get; set; } +#nullable restore +#else + public string Building { get; set; } +#endif + /// The maximum number of individual desks within a workspace. + public int? Capacity { get; set; } + /// The name of the display device (for example, monitor or projector) that is available in the workspace. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayDeviceName { get; set; } +#nullable restore +#else + public string DisplayDeviceName { get; set; } +#endif + /// The email address that is associated with the workspace. This email address is used for booking. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? EmailAddress { get; set; } +#nullable restore +#else + public string EmailAddress { get; set; } +#endif + /// A human-readable label for the floor; for example, Ground Floor. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? FloorLabel { get; set; } +#nullable restore +#else + public string FloorLabel { get; set; } +#endif + /// The numeric floor level within the building. For example, 1 for first floor, 2 for second floor, and so on. + public int? FloorNumber { get; set; } + /// The mode for a workspace. The supported modes are:reservablePlaceMode - Workspaces that can be booked in advance using desk pool reservation tools.dropInPlaceMode - First come, first served desks. When you plug into a peripheral on one of these desks in the workspace, the desk is booked for you, assuming that the peripheral has been associated with the desk in the Microsoft Teams Rooms pro management portal.unavailablePlaceMode - Workspaces that are taken down for maintenance or marked as not reservable. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceMode? Mode { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceMode Mode { get; set; } +#endif + /// A short, friendly name for the workspace, often used for easier identification or display in the UI. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Nickname { get; set; } +#nullable restore +#else + public string Nickname { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public Workspace() : base() + { + OdataType = "#microsoft.graph.workspace"; + } + /// + /// 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.Calendar.Client.Models.Workspace CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() + { + return new Dictionary>(base.GetFieldDeserializers()) + { + { "building", n => { Building = n.GetStringValue(); } }, + { "capacity", n => { Capacity = n.GetIntValue(); } }, + { "displayDeviceName", n => { DisplayDeviceName = n.GetStringValue(); } }, + { "emailAddress", n => { EmailAddress = n.GetStringValue(); } }, + { "floorLabel", n => { FloorLabel = n.GetStringValue(); } }, + { "floorNumber", n => { FloorNumber = n.GetIntValue(); } }, + { "mode", n => { Mode = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceMode.CreateFromDiscriminatorValue); } }, + { "nickname", n => { Nickname = 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("building", Building); + writer.WriteIntValue("capacity", Capacity); + writer.WriteStringValue("displayDeviceName", DisplayDeviceName); + writer.WriteStringValue("emailAddress", EmailAddress); + writer.WriteStringValue("floorLabel", FloorLabel); + writer.WriteIntValue("floorNumber", FloorNumber); + writer.WriteObjectValue("mode", Mode); + writer.WriteStringValue("nickname", Nickname); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Models/WorkspaceCollectionResponse.cs b/src/Calendar/wrapper/beta/Client/Models/WorkspaceCollectionResponse.cs new file mode 100644 index 00000000000..c777e459778 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Models/WorkspaceCollectionResponse.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.Calendar.Client.Models +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class WorkspaceCollectionResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Models.WorkspaceCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Models.WorkspaceCollectionResponse(); + } + /// + /// 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.Calendar.Client.Models.Workspace.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/Calendar/wrapper/beta/Client/Places/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..2e8d386cc7f --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Count +{ + /// + /// Builds and executes requests for operations under \places\$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}/places/$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}/places/$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.Calendar.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.Calendar.Client.Places.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.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/Calendar/wrapper/beta/Client/Places/GetOperationWithId/GetOperationWithIdRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/GetOperationWithId/GetOperationWithIdRequestBuilder.cs new file mode 100644 index 00000000000..dc26aece024 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/GetOperationWithId/GetOperationWithIdRequestBuilder.cs @@ -0,0 +1,99 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.GetOperationWithId +{ + /// + /// Builds and executes requests for operations under \places\getOperation(id='{id}') + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetOperationWithIdRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetOperationWithIdRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/getOperation(id='{id}')", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetOperationWithIdRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/getOperation(id='{id}')", rawUrl) + { + } + /// + /// Get a placeOperation by ID. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a placeOperation by ID. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.GetOperationWithId.GetOperationWithIdRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GetOperationWithId.GetOperationWithIdRequestBuilder(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 GetOperationWithIdRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/GraphBuilding/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/GraphBuilding/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..740d3877718 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/GraphBuilding/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphBuilding.Count +{ + /// + /// Builds and executes requests for operations under \places\graph.building\$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}/places/graph.building/$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}/places/graph.building/$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.Calendar.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.Calendar.Client.Places.GraphBuilding.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphBuilding.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/Calendar/wrapper/beta/Client/Places/GraphBuilding/GraphBuildingRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/GraphBuilding/GraphBuildingRequestBuilder.cs new file mode 100644 index 00000000000..e05c0613bc5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/GraphBuilding/GraphBuildingRequestBuilder.cs @@ -0,0 +1,171 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphBuilding.Count; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphBuilding +{ + /// + /// Builds and executes requests for operations under \places\graph.building + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphBuildingRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphBuilding.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphBuilding.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 GraphBuildingRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/graph.building{?%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 GraphBuildingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/graph.building{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.GraphBuilding.GraphBuildingRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphBuilding.GraphBuildingRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphBuildingRequestBuilderGetQueryParameters + { + /// 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 GraphBuildingRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/GraphDesk/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/GraphDesk/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..ee283f04527 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/GraphDesk/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphDesk.Count +{ + /// + /// Builds and executes requests for operations under \places\graph.desk\$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}/places/graph.desk/$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}/places/graph.desk/$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.Calendar.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.Calendar.Client.Places.GraphDesk.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphDesk.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/Calendar/wrapper/beta/Client/Places/GraphDesk/GraphDeskRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/GraphDesk/GraphDeskRequestBuilder.cs new file mode 100644 index 00000000000..93c4f8ab433 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/GraphDesk/GraphDeskRequestBuilder.cs @@ -0,0 +1,171 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphDesk.Count; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphDesk +{ + /// + /// Builds and executes requests for operations under \places\graph.desk + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeskRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphDesk.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphDesk.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 GraphDeskRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/graph.desk{?%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 GraphDeskRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/graph.desk{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DeskCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.GraphDesk.GraphDeskRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphDesk.GraphDeskRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeskRequestBuilderGetQueryParameters + { + /// 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 GraphDeskRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/GraphFloor/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/GraphFloor/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..37134baeda3 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/GraphFloor/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphFloor.Count +{ + /// + /// Builds and executes requests for operations under \places\graph.floor\$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}/places/graph.floor/$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}/places/graph.floor/$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.Calendar.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.Calendar.Client.Places.GraphFloor.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphFloor.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/Calendar/wrapper/beta/Client/Places/GraphFloor/GraphFloorRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/GraphFloor/GraphFloorRequestBuilder.cs new file mode 100644 index 00000000000..ff9f9c40f0f --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/GraphFloor/GraphFloorRequestBuilder.cs @@ -0,0 +1,171 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphFloor.Count; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphFloor +{ + /// + /// Builds and executes requests for operations under \places\graph.floor + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphFloorRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphFloor.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphFloor.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 GraphFloorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/graph.floor{?%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 GraphFloorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/graph.floor{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FloorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.GraphFloor.GraphFloorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphFloor.GraphFloorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphFloorRequestBuilderGetQueryParameters + { + /// 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 GraphFloorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/GraphRoom/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/GraphRoom/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..666ee3fe3fb --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/GraphRoom/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphRoom.Count +{ + /// + /// Builds and executes requests for operations under \places\graph.room\$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}/places/graph.room/$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}/places/graph.room/$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.Calendar.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.Calendar.Client.Places.GraphRoom.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphRoom.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/Calendar/wrapper/beta/Client/Places/GraphRoom/GraphRoomRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/GraphRoom/GraphRoomRequestBuilder.cs new file mode 100644 index 00000000000..6b28259656f --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/GraphRoom/GraphRoomRequestBuilder.cs @@ -0,0 +1,171 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphRoom.Count; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphRoom +{ + /// + /// Builds and executes requests for operations under \places\graph.room + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphRoomRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphRoom.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphRoom.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 GraphRoomRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/graph.room{?%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 GraphRoomRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/graph.room{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.GraphRoom.GraphRoomRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphRoom.GraphRoomRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphRoomRequestBuilderGetQueryParameters + { + /// 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 GraphRoomRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/GraphRoomList/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/GraphRoomList/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..a9d03d827eb --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/GraphRoomList/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphRoomList.Count +{ + /// + /// Builds and executes requests for operations under \places\graph.roomList\$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}/places/graph.roomList/$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}/places/graph.roomList/$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.Calendar.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.Calendar.Client.Places.GraphRoomList.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphRoomList.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/Calendar/wrapper/beta/Client/Places/GraphRoomList/GraphRoomListRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/GraphRoomList/GraphRoomListRequestBuilder.cs new file mode 100644 index 00000000000..fafcbdfd244 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/GraphRoomList/GraphRoomListRequestBuilder.cs @@ -0,0 +1,171 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphRoomList.Count; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphRoomList +{ + /// + /// Builds and executes requests for operations under \places\graph.roomList + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphRoomListRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphRoomList.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphRoomList.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 GraphRoomListRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/graph.roomList{?%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 GraphRoomListRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/graph.roomList{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Read the properties of a place object specified by its ID. The place object can be one of the following types: The listed resources are derived from the place 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomListCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read the properties of a place object specified by its ID. The place object can be one of the following types: The listed resources are derived from the place 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; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphRoomList.GraphRoomListRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphRoomList.GraphRoomListRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Read the properties of a place object specified by its ID. The place object can be one of the following types: The listed resources are derived from the place object. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphRoomListRequestBuilderGetQueryParameters + { + /// 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 GraphRoomListRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/GraphSection/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/GraphSection/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..88f51b66af6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/GraphSection/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphSection.Count +{ + /// + /// Builds and executes requests for operations under \places\graph.section\$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}/places/graph.section/$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}/places/graph.section/$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.Calendar.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.Calendar.Client.Places.GraphSection.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphSection.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/Calendar/wrapper/beta/Client/Places/GraphSection/GraphSectionRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/GraphSection/GraphSectionRequestBuilder.cs new file mode 100644 index 00000000000..2bc50d49cf3 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/GraphSection/GraphSectionRequestBuilder.cs @@ -0,0 +1,171 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphSection.Count; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphSection +{ + /// + /// Builds and executes requests for operations under \places\graph.section + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphSectionRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphSection.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphSection.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 GraphSectionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/graph.section{?%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 GraphSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/graph.section{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.GraphSection.GraphSectionRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphSection.GraphSectionRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphSectionRequestBuilderGetQueryParameters + { + /// 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 GraphSectionRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/GraphWorkspace/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/GraphWorkspace/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..bab98ff63a9 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/GraphWorkspace/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphWorkspace.Count +{ + /// + /// Builds and executes requests for operations under \places\graph.workspace\$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}/places/graph.workspace/$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}/places/graph.workspace/$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.Calendar.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.Calendar.Client.Places.GraphWorkspace.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphWorkspace.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/Calendar/wrapper/beta/Client/Places/GraphWorkspace/GraphWorkspaceRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/GraphWorkspace/GraphWorkspaceRequestBuilder.cs new file mode 100644 index 00000000000..0a3555c7e11 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/GraphWorkspace/GraphWorkspaceRequestBuilder.cs @@ -0,0 +1,171 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphWorkspace.Count; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphWorkspace +{ + /// + /// Builds and executes requests for operations under \places\graph.workspace + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWorkspaceRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphWorkspace.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphWorkspace.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 GraphWorkspaceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/graph.workspace{?%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 GraphWorkspaceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/graph.workspace{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.WorkspaceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.GraphWorkspace.GraphWorkspaceRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphWorkspace.GraphWorkspaceRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWorkspaceRequestBuilderGetQueryParameters + { + /// 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 GraphWorkspaceRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/CheckIns/CheckInsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/CheckIns/CheckInsRequestBuilder.cs new file mode 100644 index 00000000000..01554978ebc --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/CheckIns/CheckInsRequestBuilder.cs @@ -0,0 +1,239 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.CheckIns.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.CheckIns.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.Calendar.Client.Places.Item.CheckIns +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\checkIns + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.CheckIns.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.CheckIns.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.checkIns.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("checkInClaim%2DcalendarEventId", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder(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 CheckInsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/checkIns{?%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 CheckInsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/checkIns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Read the properties and relationships of a checkInClaim object. This API provides the check-in status for a specific place, such as a desk, room, or workspace, associated with a particular reservation. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new checkInClaim object to record the check-in status for a specific place, such as a desk or a room, associated with a specific calendar reservation. This check-in confirms that the reserved space is in use and prevents automatic release if auto-release policies are configured for that place. + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read the properties and relationships of a checkInClaim object. This API provides the check-in status for a specific place, such as a desk, room, or workspace, associated with a particular reservation. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 checkInClaim object to record the check-in status for a specific place, such as a desk or a room, associated with a specific calendar reservation. This check-in confirms that the reserved space is in use and prevents automatic release if auto-release policies are configured for that place. + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Places.Item.CheckIns.CheckInsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.CheckIns.CheckInsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Read the properties and relationships of a checkInClaim object. This API provides the check-in status for a specific place, such as a desk, room, or workspace, associated with a particular reservation. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilderGetQueryParameters + { + /// 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 CheckInsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/CheckIns/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/CheckIns/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..752ffcd740f --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/CheckIns/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.CheckIns.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\checkIns\$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}/places/{place%2Did}/checkIns/$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}/places/{place%2Did}/checkIns/$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.Calendar.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.Calendar.Client.Places.Item.CheckIns.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.CheckIns.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/Calendar/wrapper/beta/Client/Places/Item/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs new file mode 100644 index 00000000000..2d7baca8466 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs @@ -0,0 +1,230 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.CheckIns.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\checkIns\{checkInClaim-calendarEventId} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CheckInClaimCalendarEventItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/checkIns/{checkInClaim%2DcalendarEventId}{?%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 CheckInClaimCalendarEventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/checkIns/{checkInClaim%2DcalendarEventId}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property checkIns for places + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read the properties and relationships of a checkInClaim object. This API provides the check-in status for a specific place, such as a desk, room, or workspace, associated with a particular reservation. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property checkIns in places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property checkIns for places + /// + /// A + /// Configuration 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 checkInClaim object. This API provides the check-in status for a specific place, such as a desk, room, or workspace, associated with a particular reservation. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 checkIns in places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Places.Item.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder(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 CheckInClaimCalendarEventItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Read the properties and relationships of a checkInClaim object. This API provides the check-in status for a specific place, such as a desk, room, or workspace, associated with a particular reservation. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CheckInClaimCalendarEventItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/Children/ChildrenRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/Children/ChildrenRequestBuilder.cs new file mode 100644 index 00000000000..f1fc33afad8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/Children/ChildrenRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Children.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Children.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.Calendar.Client.Places.Item.Children +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\children + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Children.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Children.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.children.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Children.Item.PlaceItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("place%2Did1", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Children.Item.PlaceItemRequestBuilder(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 ChildrenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/children{?%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 ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.Children.ChildrenRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Children.ChildrenRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters + { + /// 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 ChildrenRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/Children/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/Children/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..d7ff81f197b --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/Children/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Children.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\children\$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}/places/{place%2Did}/children/$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}/places/{place%2Did}/children/$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.Calendar.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.Calendar.Client.Places.Item.Children.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Children.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/Calendar/wrapper/beta/Client/Places/Item/Children/Item/PlaceItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/Children/Item/PlaceItemRequestBuilder.cs new file mode 100644 index 00000000000..238d9053ff3 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/Children/Item/PlaceItemRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Children.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\children\{place-id1} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PlaceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/children/{place%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 PlaceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/children/{place%2Did1}{?%24expand,%24select}", rawUrl) + { + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.Children.Item.PlaceItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Children.Item.PlaceItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 PlaceItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/Descendants/DescendantsGetResponse.cs b/src/Calendar/wrapper/beta/Client/Places/Item/Descendants/DescendantsGetResponse.cs new file mode 100644 index 00000000000..9c8712bd014 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/Descendants/DescendantsGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Places.Item.Descendants +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DescendantsGetResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Places.Item.Descendants.DescendantsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Descendants.DescendantsGetResponse(); + } + /// + /// 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.Calendar.Client.Models.Place.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/Calendar/wrapper/beta/Client/Places/Item/Descendants/DescendantsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/Descendants/DescendantsRequestBuilder.cs new file mode 100644 index 00000000000..c9e014ec8f3 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/Descendants/DescendantsRequestBuilder.cs @@ -0,0 +1,187 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Descendants +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\descendants() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DescendantsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DescendantsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/descendants(){?%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 DescendantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/descendants(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Invoke function descendants + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsDescendantsGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsDescendantsGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Descendants.DescendantsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function descendants + /// + /// A + /// Cancellation token to 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 GetAsDescendantsGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Descendants.DescendantsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function descendants + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.Descendants.DescendantsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Descendants.DescendantsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Invoke function descendants + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DescendantsRequestBuilderGetQueryParameters + { + /// 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 DescendantsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/Descendants/DescendantsResponse.cs b/src/Calendar/wrapper/beta/Client/Places/Item/Descendants/DescendantsResponse.cs new file mode 100644 index 00000000000..9561a6dac13 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/Descendants/DescendantsResponse.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.Calendar.Client.Places.Item.Descendants +{ + [Obsolete("This class is obsolete. Use DescendantsGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DescendantsResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Descendants.DescendantsGetResponse, 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.Calendar.Client.Places.Item.Descendants.DescendantsResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Descendants.DescendantsResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/CheckIns/CheckInsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/CheckIns/CheckInsRequestBuilder.cs new file mode 100644 index 00000000000..e9979c359f8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/CheckIns/CheckInsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.CheckIns.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.CheckIns.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.Calendar.Client.Places.Item.GraphBuilding.CheckIns +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\checkIns + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.CheckIns.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.CheckIns.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphBuilding.checkIns.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("checkInClaim%2DcalendarEventId", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder(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 CheckInsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/checkIns{?%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 CheckInsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/checkIns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to checkIns for places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 checkIns for places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Places.Item.GraphBuilding.CheckIns.CheckInsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.CheckIns.CheckInsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilderGetQueryParameters + { + /// 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 CheckInsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/CheckIns/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/CheckIns/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..9b0202b4ccc --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/CheckIns/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.CheckIns.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\checkIns\$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}/places/{place%2Did}/graph.building/checkIns/$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}/places/{place%2Did}/graph.building/checkIns/$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.Calendar.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.Calendar.Client.Places.Item.GraphBuilding.CheckIns.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.CheckIns.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/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs new file mode 100644 index 00000000000..2b6e86e1d66 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.CheckIns.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\checkIns\{checkInClaim-calendarEventId} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CheckInClaimCalendarEventItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/checkIns/{checkInClaim%2DcalendarEventId}{?%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 CheckInClaimCalendarEventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/checkIns/{checkInClaim%2DcalendarEventId}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property checkIns for places + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property checkIns in places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property checkIns for places + /// + /// A + /// Configuration 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 subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 checkIns in places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Places.Item.GraphBuilding.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder(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 CheckInClaimCalendarEventItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CheckInClaimCalendarEventItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Children/ChildrenRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Children/ChildrenRequestBuilder.cs new file mode 100644 index 00000000000..a10644f2b9e --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Children/ChildrenRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Children.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Children.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.Calendar.Client.Places.Item.GraphBuilding.Children +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\children + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Children.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Children.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphBuilding.children.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Children.Item.PlaceItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("place%2Did1", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Children.Item.PlaceItemRequestBuilder(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 ChildrenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/children{?%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 ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphBuilding.Children.ChildrenRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Children.ChildrenRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters + { + /// 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 ChildrenRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Children/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Children/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..a1523a517d9 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Children/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Children.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\children\$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}/places/{place%2Did}/graph.building/children/$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}/places/{place%2Did}/graph.building/children/$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.Calendar.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.Calendar.Client.Places.Item.GraphBuilding.Children.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Children.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/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Children/Item/PlaceItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Children/Item/PlaceItemRequestBuilder.cs new file mode 100644 index 00000000000..74b7a4bcc38 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Children/Item/PlaceItemRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Children.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\children\{place-id1} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PlaceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/children/{place%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 PlaceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/children/{place%2Did1}{?%24expand,%24select}", rawUrl) + { + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphBuilding.Children.Item.PlaceItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Children.Item.PlaceItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 PlaceItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/GraphBuildingRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/GraphBuildingRequestBuilder.cs new file mode 100644 index 00000000000..29ca082c5a8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/GraphBuildingRequestBuilder.cs @@ -0,0 +1,144 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.CheckIns; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Children; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphBuildingRequestBuilder : BaseRequestBuilder + { + /// The checkIns property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.CheckIns.CheckInsRequestBuilder CheckIns + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.CheckIns.CheckInsRequestBuilder(PathParameters, RequestAdapter); + } + /// The children property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Children.ChildrenRequestBuilder Children + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Children.ChildrenRequestBuilder(PathParameters, RequestAdapter); + } + /// The map property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.MapRequestBuilder Map + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.MapRequestBuilder(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 GraphBuildingRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building{?%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 GraphBuildingRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building{?%24expand,%24select}", rawUrl) + { + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Building.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphBuilding.GraphBuildingRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.GraphBuildingRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphBuildingRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 GraphBuildingRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Footprints/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Footprints/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..21366996924 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Footprints/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Footprints.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\map\footprints\$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}/places/{place%2Did}/graph.building/map/footprints/$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}/places/{place%2Did}/graph.building/map/footprints/$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.Calendar.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.Calendar.Client.Places.Item.GraphBuilding.Map.Footprints.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Footprints.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/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Footprints/FootprintsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Footprints/FootprintsRequestBuilder.cs new file mode 100644 index 00000000000..36685833e97 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Footprints/FootprintsRequestBuilder.cs @@ -0,0 +1,239 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Footprints.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Footprints.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.Calendar.Client.Places.Item.GraphBuilding.Map.Footprints +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\map\footprints + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FootprintsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Footprints.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Footprints.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphBuilding.map.footprints.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Footprints.Item.FootprintMapItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("footprintMap%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Footprints.Item.FootprintMapItemRequestBuilder(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 FootprintsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map/footprints{?%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 FootprintsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map/footprints{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a list of footprintMap objects for building footprints 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMapCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to footprints for places + /// + /// 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.Calendar.Client.Models.FootprintMap body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a list of footprintMap objects for building footprints 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 new navigation property to footprints for places + /// + /// 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.Calendar.Client.Models.FootprintMap body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap 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.Calendar.Client.Places.Item.GraphBuilding.Map.Footprints.FootprintsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Footprints.FootprintsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a list of footprintMap objects for building footprints and their properties. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FootprintsRequestBuilderGetQueryParameters + { + /// 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 FootprintsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FootprintsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Footprints/Item/FootprintMapItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Footprints/Item/FootprintMapItemRequestBuilder.cs new file mode 100644 index 00000000000..4b619f4dada --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Footprints/Item/FootprintMapItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Footprints.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\map\footprints\{footprintMap-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FootprintMapItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FootprintMapItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map/footprints/{footprintMap%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 FootprintMapItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map/footprints/{footprintMap%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property footprints for places + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Represents the approximate physical extent of a referenced building. It corresponds to footprint.geojson in IMDF format. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property footprints in places + /// + /// 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.Calendar.Client.Models.FootprintMap body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property footprints for places + /// + /// A + /// Configuration 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 approximate physical extent of a referenced building. It corresponds to footprint.geojson in IMDF format. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 footprints in places + /// + /// 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.Calendar.Client.Models.FootprintMap body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap 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.Calendar.Client.Places.Item.GraphBuilding.Map.Footprints.Item.FootprintMapItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Footprints.Item.FootprintMapItemRequestBuilder(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 FootprintMapItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Represents the approximate physical extent of a referenced building. It corresponds to footprint.geojson in IMDF format. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FootprintMapItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 FootprintMapItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FootprintMapItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..5ab8cb5065d --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\map\levels\$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}/places/{place%2Did}/graph.building/map/levels/$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}/places/{place%2Did}/graph.building/map/levels/$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.Calendar.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.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.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/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Fixtures/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Fixtures/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..1700f38d5b7 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Fixtures/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Fixtures.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\map\levels\{levelMap-id}\fixtures\$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}/places/{place%2Did}/graph.building/map/levels/{levelMap%2Did}/fixtures/$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}/places/{place%2Did}/graph.building/map/levels/{levelMap%2Did}/fixtures/$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.Calendar.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.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Fixtures.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Fixtures.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/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Fixtures/FixturesRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Fixtures/FixturesRequestBuilder.cs new file mode 100644 index 00000000000..fd384a07eea --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Fixtures/FixturesRequestBuilder.cs @@ -0,0 +1,239 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Fixtures.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Fixtures.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.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Fixtures +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\map\levels\{levelMap-id}\fixtures + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FixturesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Fixtures.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Fixtures.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphBuilding.map.levels.item.fixtures.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Fixtures.Item.FixtureMapItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("fixtureMap%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Fixtures.Item.FixtureMapItemRequestBuilder(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 FixturesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map/levels/{levelMap%2Did}/fixtures{?%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 FixturesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map/levels/{levelMap%2Did}/fixtures{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a list of the fixtureMap 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMapCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to fixtures for places + /// + /// 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.Calendar.Client.Models.FixtureMap body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a list of the fixtureMap 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 new navigation property to fixtures for places + /// + /// 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.Calendar.Client.Models.FixtureMap body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap 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.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Fixtures.FixturesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Fixtures.FixturesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a list of the fixtureMap objects and their properties. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FixturesRequestBuilderGetQueryParameters + { + /// 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 FixturesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FixturesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Fixtures/Item/FixtureMapItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Fixtures/Item/FixtureMapItemRequestBuilder.cs new file mode 100644 index 00000000000..e546ea7b6e5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Fixtures/Item/FixtureMapItemRequestBuilder.cs @@ -0,0 +1,231 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Fixtures.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\map\levels\{levelMap-id}\fixtures\{fixtureMap-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FixtureMapItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FixtureMapItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map/levels/{levelMap%2Did}/fixtures/{fixtureMap%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 FixtureMapItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map/levels/{levelMap%2Did}/fixtures/{fixtureMap%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete a fixture on a specified floor. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Collection of fixtures (such as furniture or equipment) on this level. Supports upsert. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of an existing fixtureMap object in IMDF format on a specified floor, or create one if it doesn't exist. + /// 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.Calendar.Client.Models.FixtureMap body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete a fixture on a specified floor. + /// + /// A + /// Configuration 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; + } + /// + /// Collection of fixtures (such as furniture or equipment) on this level. Supports upsert. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 existing fixtureMap object in IMDF format on a specified floor, or create one if it doesn't exist. + /// + /// 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.Calendar.Client.Models.FixtureMap body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap 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.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Fixtures.Item.FixtureMapItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Fixtures.Item.FixtureMapItemRequestBuilder(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 FixtureMapItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Collection of fixtures (such as furniture or equipment) on this level. Supports upsert. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FixtureMapItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 FixtureMapItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class FixtureMapItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/LevelMapItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/LevelMapItemRequestBuilder.cs new file mode 100644 index 00000000000..d64a5a3303b --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/LevelMapItemRequestBuilder.cs @@ -0,0 +1,247 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Fixtures; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Sections; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Units; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\map\levels\{levelMap-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LevelMapItemRequestBuilder : BaseRequestBuilder + { + /// The fixtures property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Fixtures.FixturesRequestBuilder Fixtures + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Fixtures.FixturesRequestBuilder(PathParameters, RequestAdapter); + } + /// The sections property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Sections.SectionsRequestBuilder Sections + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Sections.SectionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The units property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Units.UnitsRequestBuilder Units + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Units.UnitsRequestBuilder(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 LevelMapItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map/levels/{levelMap%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 LevelMapItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map/levels/{levelMap%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property levels for places + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Represents a physical floor structure within a building. It corresponds to level.geojson in IMDF format. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property levels in places + /// + /// 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.Calendar.Client.Models.LevelMap body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property levels for places + /// + /// A + /// Configuration 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 a physical floor structure within a building. It corresponds to level.geojson in IMDF format. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 levels in places + /// + /// 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.Calendar.Client.Models.LevelMap body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap 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.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.LevelMapItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.LevelMapItemRequestBuilder(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 LevelMapItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Represents a physical floor structure within a building. It corresponds to level.geojson in IMDF format. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LevelMapItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 LevelMapItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LevelMapItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Sections/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Sections/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b975bf5e024 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Sections/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Sections.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\map\levels\{levelMap-id}\sections\$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}/places/{place%2Did}/graph.building/map/levels/{levelMap%2Did}/sections/$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}/places/{place%2Did}/graph.building/map/levels/{levelMap%2Did}/sections/$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.Calendar.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.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Sections.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Sections.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/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Sections/Item/SectionMapItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Sections/Item/SectionMapItemRequestBuilder.cs new file mode 100644 index 00000000000..aa06bc4ca9c --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Sections/Item/SectionMapItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Sections.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\map\levels\{levelMap-id}\sections\{sectionMap-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionMapItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SectionMapItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map/levels/{levelMap%2Did}/sections/{sectionMap%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 SectionMapItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map/levels/{levelMap%2Did}/sections/{sectionMap%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property sections for places + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Collection of sections (such as zones or partitions) on this level. Supports upsert. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property sections in places + /// + /// 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.Calendar.Client.Models.SectionMap body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property sections for places + /// + /// A + /// Configuration 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; + } + /// + /// Collection of sections (such as zones or partitions) on this level. Supports upsert. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 sections in places + /// + /// 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.Calendar.Client.Models.SectionMap body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap 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.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Sections.Item.SectionMapItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Sections.Item.SectionMapItemRequestBuilder(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 SectionMapItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Collection of sections (such as zones or partitions) on this level. Supports upsert. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionMapItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 SectionMapItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionMapItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Sections/SectionsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Sections/SectionsRequestBuilder.cs new file mode 100644 index 00000000000..7fe2ff16e5b --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Sections/SectionsRequestBuilder.cs @@ -0,0 +1,239 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Sections.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Sections.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.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Sections +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\map\levels\{levelMap-id}\sections + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Sections.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Sections.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphBuilding.map.levels.item.sections.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Sections.Item.SectionMapItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("sectionMap%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Sections.Item.SectionMapItemRequestBuilder(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 SectionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map/levels/{levelMap%2Did}/sections{?%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 SectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map/levels/{levelMap%2Did}/sections{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a list of the sectionMap 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMapCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to sections for places + /// + /// 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.Calendar.Client.Models.SectionMap body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a list of the sectionMap 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 new navigation property to sections for places + /// + /// 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.Calendar.Client.Models.SectionMap body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap 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.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Sections.SectionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Sections.SectionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a list of the sectionMap objects and their properties. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionsRequestBuilderGetQueryParameters + { + /// 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 SectionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SectionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Units/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Units/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..f928c1f326d --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Units/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Units.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\map\levels\{levelMap-id}\units\$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}/places/{place%2Did}/graph.building/map/levels/{levelMap%2Did}/units/$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}/places/{place%2Did}/graph.building/map/levels/{levelMap%2Did}/units/$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.Calendar.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.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Units.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Units.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/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Units/Item/UnitMapItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Units/Item/UnitMapItemRequestBuilder.cs new file mode 100644 index 00000000000..03e4a7f3f41 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Units/Item/UnitMapItemRequestBuilder.cs @@ -0,0 +1,231 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Units.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\map\levels\{levelMap-id}\units\{unitMap-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnitMapItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public UnitMapItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map/levels/{levelMap%2Did}/units/{unitMap%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 UnitMapItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map/levels/{levelMap%2Did}/units/{unitMap%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete a unitMap 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Collection of units (such as rooms or offices) on this level. Supports upsert. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of an existing unitMap object in IMDF format on a specified floor, or create one if it doesn't exist. + /// 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.Calendar.Client.Models.UnitMap body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete a unitMap 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; + } + /// + /// Collection of units (such as rooms or offices) on this level. Supports upsert. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 existing unitMap object in IMDF format on a specified floor, or create one if it doesn't exist. + /// + /// 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.Calendar.Client.Models.UnitMap body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap 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.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Units.Item.UnitMapItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Units.Item.UnitMapItemRequestBuilder(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 UnitMapItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Collection of units (such as rooms or offices) on this level. Supports upsert. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnitMapItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 UnitMapItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnitMapItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Units/UnitsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Units/UnitsRequestBuilder.cs new file mode 100644 index 00000000000..ea1cb384a36 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/Item/Units/UnitsRequestBuilder.cs @@ -0,0 +1,239 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Units.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Units.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.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Units +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\map\levels\{levelMap-id}\units + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnitsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Units.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Units.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphBuilding.map.levels.item.units.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Units.Item.UnitMapItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("unitMap%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Units.Item.UnitMapItemRequestBuilder(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 UnitsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map/levels/{levelMap%2Did}/units{?%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 UnitsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map/levels/{levelMap%2Did}/units{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a list of the unitMap 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMapCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to units for places + /// + /// 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.Calendar.Client.Models.UnitMap body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a list of the unitMap 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 new navigation property to units for places + /// + /// 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.Calendar.Client.Models.UnitMap body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap 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.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Units.UnitsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.Units.UnitsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a list of the unitMap objects and their properties. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnitsRequestBuilderGetQueryParameters + { + /// 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 UnitsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UnitsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/LevelsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/LevelsRequestBuilder.cs new file mode 100644 index 00000000000..3bf78cca317 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/Levels/LevelsRequestBuilder.cs @@ -0,0 +1,239 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.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.Calendar.Client.Places.Item.GraphBuilding.Map.Levels +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\map\levels + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LevelsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphBuilding.map.levels.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.LevelMapItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("levelMap%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.Item.LevelMapItemRequestBuilder(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 LevelsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map/levels{?%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 LevelsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map/levels{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a list of the levelMap 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMapCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to levels for places + /// + /// 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.Calendar.Client.Models.LevelMap body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a list of the levelMap 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 new navigation property to levels for places + /// + /// 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.Calendar.Client.Models.LevelMap body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap 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.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.LevelsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.LevelsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a list of the levelMap objects and their properties. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LevelsRequestBuilderGetQueryParameters + { + /// 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 LevelsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class LevelsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/MapRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/MapRequestBuilder.cs new file mode 100644 index 00000000000..b5319196f18 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphBuilding/Map/MapRequestBuilder.cs @@ -0,0 +1,243 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Footprints; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.building\map + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MapRequestBuilder : BaseRequestBuilder + { + /// The footprints property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Footprints.FootprintsRequestBuilder Footprints + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Footprints.FootprintsRequestBuilder(PathParameters, RequestAdapter); + } + /// The levels property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.LevelsRequestBuilder Levels + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.Levels.LevelsRequestBuilder(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 MapRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map{?%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 MapRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.building/map{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete the map of a specific building. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the map of a building in IMDF format. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingMap.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property map in places + /// + /// 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.Calendar.Client.Models.BuildingMap body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingMap 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingMap.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete the map of a specific building. + /// + /// A + /// Configuration 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 map of a building in IMDF format. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 map in places + /// + /// 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.Calendar.Client.Models.BuildingMap body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingMap 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.Calendar.Client.Places.Item.GraphBuilding.Map.MapRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.Map.MapRequestBuilder(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 MapRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get the map of a building in IMDF format. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MapRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 MapRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class MapRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/CheckIns/CheckInsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/CheckIns/CheckInsRequestBuilder.cs new file mode 100644 index 00000000000..6bbbebd3615 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/CheckIns/CheckInsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.CheckIns.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.CheckIns.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.Calendar.Client.Places.Item.GraphDesk.CheckIns +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.desk\checkIns + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.CheckIns.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.CheckIns.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphDesk.checkIns.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("checkInClaim%2DcalendarEventId", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder(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 CheckInsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.desk/checkIns{?%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 CheckInsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.desk/checkIns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to checkIns for places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 checkIns for places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Places.Item.GraphDesk.CheckIns.CheckInsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.CheckIns.CheckInsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilderGetQueryParameters + { + /// 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 CheckInsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/CheckIns/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/CheckIns/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..9e3c14ff79a --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/CheckIns/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.CheckIns.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.desk\checkIns\$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}/places/{place%2Did}/graph.desk/checkIns/$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}/places/{place%2Did}/graph.desk/checkIns/$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.Calendar.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.Calendar.Client.Places.Item.GraphDesk.CheckIns.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.CheckIns.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/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs new file mode 100644 index 00000000000..59bbf7161f4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.CheckIns.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.desk\checkIns\{checkInClaim-calendarEventId} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CheckInClaimCalendarEventItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.desk/checkIns/{checkInClaim%2DcalendarEventId}{?%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 CheckInClaimCalendarEventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.desk/checkIns/{checkInClaim%2DcalendarEventId}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property checkIns for places + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property checkIns in places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property checkIns for places + /// + /// A + /// Configuration 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 subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 checkIns in places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Places.Item.GraphDesk.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder(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 CheckInClaimCalendarEventItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CheckInClaimCalendarEventItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/Children/ChildrenRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/Children/ChildrenRequestBuilder.cs new file mode 100644 index 00000000000..dc1d84e0067 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/Children/ChildrenRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.Children.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.Children.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.Calendar.Client.Places.Item.GraphDesk.Children +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.desk\children + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.Children.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.Children.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphDesk.children.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.Children.Item.PlaceItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("place%2Did1", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.Children.Item.PlaceItemRequestBuilder(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 ChildrenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.desk/children{?%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 ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.desk/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphDesk.Children.ChildrenRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.Children.ChildrenRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters + { + /// 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 ChildrenRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/Children/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/Children/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..89d01639d2b --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/Children/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.Children.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.desk\children\$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}/places/{place%2Did}/graph.desk/children/$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}/places/{place%2Did}/graph.desk/children/$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.Calendar.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.Calendar.Client.Places.Item.GraphDesk.Children.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.Children.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/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/Children/Item/PlaceItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/Children/Item/PlaceItemRequestBuilder.cs new file mode 100644 index 00000000000..805af1aae08 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/Children/Item/PlaceItemRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.Children.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.desk\children\{place-id1} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PlaceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.desk/children/{place%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 PlaceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.desk/children/{place%2Did1}{?%24expand,%24select}", rawUrl) + { + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphDesk.Children.Item.PlaceItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.Children.Item.PlaceItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 PlaceItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/GraphDeskRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/GraphDeskRequestBuilder.cs new file mode 100644 index 00000000000..3665fd55541 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphDesk/GraphDeskRequestBuilder.cs @@ -0,0 +1,138 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.CheckIns; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.Children; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.desk + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeskRequestBuilder : BaseRequestBuilder + { + /// The checkIns property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.CheckIns.CheckInsRequestBuilder CheckIns + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.CheckIns.CheckInsRequestBuilder(PathParameters, RequestAdapter); + } + /// The children property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.Children.ChildrenRequestBuilder Children + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.Children.ChildrenRequestBuilder(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 GraphDeskRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.desk{?%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 GraphDeskRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.desk{?%24expand,%24select}", rawUrl) + { + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Desk.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphDesk.GraphDeskRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.GraphDeskRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphDeskRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 GraphDeskRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/CheckIns/CheckInsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/CheckIns/CheckInsRequestBuilder.cs new file mode 100644 index 00000000000..8d9bdc35617 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/CheckIns/CheckInsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.CheckIns.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.CheckIns.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.Calendar.Client.Places.Item.GraphFloor.CheckIns +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.floor\checkIns + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.CheckIns.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.CheckIns.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphFloor.checkIns.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("checkInClaim%2DcalendarEventId", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder(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 CheckInsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.floor/checkIns{?%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 CheckInsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.floor/checkIns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to checkIns for places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 checkIns for places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Places.Item.GraphFloor.CheckIns.CheckInsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.CheckIns.CheckInsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilderGetQueryParameters + { + /// 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 CheckInsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/CheckIns/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/CheckIns/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b8328e0a7bb --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/CheckIns/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.CheckIns.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.floor\checkIns\$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}/places/{place%2Did}/graph.floor/checkIns/$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}/places/{place%2Did}/graph.floor/checkIns/$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.Calendar.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.Calendar.Client.Places.Item.GraphFloor.CheckIns.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.CheckIns.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/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs new file mode 100644 index 00000000000..40c8be840b5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.CheckIns.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.floor\checkIns\{checkInClaim-calendarEventId} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CheckInClaimCalendarEventItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.floor/checkIns/{checkInClaim%2DcalendarEventId}{?%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 CheckInClaimCalendarEventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.floor/checkIns/{checkInClaim%2DcalendarEventId}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property checkIns for places + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property checkIns in places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property checkIns for places + /// + /// A + /// Configuration 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 subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 checkIns in places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Places.Item.GraphFloor.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder(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 CheckInClaimCalendarEventItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CheckInClaimCalendarEventItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/Children/ChildrenRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/Children/ChildrenRequestBuilder.cs new file mode 100644 index 00000000000..6c41e775256 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/Children/ChildrenRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.Children.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.Children.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.Calendar.Client.Places.Item.GraphFloor.Children +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.floor\children + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.Children.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.Children.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphFloor.children.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.Children.Item.PlaceItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("place%2Did1", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.Children.Item.PlaceItemRequestBuilder(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 ChildrenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.floor/children{?%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 ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.floor/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphFloor.Children.ChildrenRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.Children.ChildrenRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters + { + /// 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 ChildrenRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/Children/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/Children/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..81ccbcbea58 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/Children/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.Children.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.floor\children\$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}/places/{place%2Did}/graph.floor/children/$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}/places/{place%2Did}/graph.floor/children/$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.Calendar.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.Calendar.Client.Places.Item.GraphFloor.Children.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.Children.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/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/Children/Item/PlaceItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/Children/Item/PlaceItemRequestBuilder.cs new file mode 100644 index 00000000000..a23562eee34 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/Children/Item/PlaceItemRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.Children.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.floor\children\{place-id1} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PlaceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.floor/children/{place%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 PlaceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.floor/children/{place%2Did1}{?%24expand,%24select}", rawUrl) + { + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphFloor.Children.Item.PlaceItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.Children.Item.PlaceItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 PlaceItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/GraphFloorRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/GraphFloorRequestBuilder.cs new file mode 100644 index 00000000000..d89b560098a --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphFloor/GraphFloorRequestBuilder.cs @@ -0,0 +1,138 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.CheckIns; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.Children; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.floor + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphFloorRequestBuilder : BaseRequestBuilder + { + /// The checkIns property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.CheckIns.CheckInsRequestBuilder CheckIns + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.CheckIns.CheckInsRequestBuilder(PathParameters, RequestAdapter); + } + /// The children property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.Children.ChildrenRequestBuilder Children + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.Children.ChildrenRequestBuilder(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 GraphFloorRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.floor{?%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 GraphFloorRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.floor{?%24expand,%24select}", rawUrl) + { + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Floor.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphFloor.GraphFloorRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.GraphFloorRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphFloorRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 GraphFloorRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/CheckIns/CheckInsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/CheckIns/CheckInsRequestBuilder.cs new file mode 100644 index 00000000000..cabedbd0c4e --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/CheckIns/CheckInsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.CheckIns.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.CheckIns.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.Calendar.Client.Places.Item.GraphRoom.CheckIns +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.room\checkIns + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.CheckIns.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.CheckIns.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphRoom.checkIns.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("checkInClaim%2DcalendarEventId", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder(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 CheckInsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.room/checkIns{?%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 CheckInsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.room/checkIns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to checkIns for places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 checkIns for places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Places.Item.GraphRoom.CheckIns.CheckInsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.CheckIns.CheckInsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilderGetQueryParameters + { + /// 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 CheckInsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/CheckIns/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/CheckIns/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..6b77850e9f2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/CheckIns/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.CheckIns.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.room\checkIns\$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}/places/{place%2Did}/graph.room/checkIns/$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}/places/{place%2Did}/graph.room/checkIns/$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.Calendar.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.Calendar.Client.Places.Item.GraphRoom.CheckIns.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.CheckIns.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/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs new file mode 100644 index 00000000000..8948d5d6655 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.CheckIns.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.room\checkIns\{checkInClaim-calendarEventId} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CheckInClaimCalendarEventItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.room/checkIns/{checkInClaim%2DcalendarEventId}{?%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 CheckInClaimCalendarEventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.room/checkIns/{checkInClaim%2DcalendarEventId}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property checkIns for places + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property checkIns in places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property checkIns for places + /// + /// A + /// Configuration 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 subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 checkIns in places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Places.Item.GraphRoom.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder(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 CheckInClaimCalendarEventItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CheckInClaimCalendarEventItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/Children/ChildrenRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/Children/ChildrenRequestBuilder.cs new file mode 100644 index 00000000000..124a92df2cf --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/Children/ChildrenRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.Children.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.Children.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.Calendar.Client.Places.Item.GraphRoom.Children +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.room\children + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.Children.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.Children.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphRoom.children.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.Children.Item.PlaceItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("place%2Did1", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.Children.Item.PlaceItemRequestBuilder(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 ChildrenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.room/children{?%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 ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.room/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphRoom.Children.ChildrenRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.Children.ChildrenRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters + { + /// 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 ChildrenRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/Children/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/Children/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..fe2e272df0a --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/Children/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.Children.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.room\children\$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}/places/{place%2Did}/graph.room/children/$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}/places/{place%2Did}/graph.room/children/$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.Calendar.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.Calendar.Client.Places.Item.GraphRoom.Children.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.Children.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/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/Children/Item/PlaceItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/Children/Item/PlaceItemRequestBuilder.cs new file mode 100644 index 00000000000..a11a64b62a3 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/Children/Item/PlaceItemRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.Children.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.room\children\{place-id1} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PlaceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.room/children/{place%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 PlaceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.room/children/{place%2Did1}{?%24expand,%24select}", rawUrl) + { + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphRoom.Children.Item.PlaceItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.Children.Item.PlaceItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 PlaceItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/GraphRoomRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/GraphRoomRequestBuilder.cs new file mode 100644 index 00000000000..6db278830a6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoom/GraphRoomRequestBuilder.cs @@ -0,0 +1,138 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.CheckIns; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.Children; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.room + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphRoomRequestBuilder : BaseRequestBuilder + { + /// The checkIns property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.CheckIns.CheckInsRequestBuilder CheckIns + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.CheckIns.CheckInsRequestBuilder(PathParameters, RequestAdapter); + } + /// The children property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.Children.ChildrenRequestBuilder Children + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.Children.ChildrenRequestBuilder(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 GraphRoomRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.room{?%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 GraphRoomRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.room{?%24expand,%24select}", rawUrl) + { + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Room.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphRoom.GraphRoomRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.GraphRoomRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphRoomRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 GraphRoomRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/CheckIns/CheckInsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/CheckIns/CheckInsRequestBuilder.cs new file mode 100644 index 00000000000..d5f4b4a1ecd --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/CheckIns/CheckInsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.CheckIns.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.CheckIns.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.Calendar.Client.Places.Item.GraphRoomList.CheckIns +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\checkIns + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.CheckIns.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.CheckIns.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphRoomList.checkIns.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("checkInClaim%2DcalendarEventId", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder(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 CheckInsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/checkIns{?%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 CheckInsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/checkIns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to checkIns for places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 checkIns for places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Places.Item.GraphRoomList.CheckIns.CheckInsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.CheckIns.CheckInsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilderGetQueryParameters + { + /// 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 CheckInsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/CheckIns/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/CheckIns/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..969bbc31834 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/CheckIns/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.CheckIns.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\checkIns\$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}/places/{place%2Did}/graph.roomList/checkIns/$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}/places/{place%2Did}/graph.roomList/checkIns/$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.Calendar.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.Calendar.Client.Places.Item.GraphRoomList.CheckIns.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.CheckIns.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/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs new file mode 100644 index 00000000000..760613a48c1 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.CheckIns.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\checkIns\{checkInClaim-calendarEventId} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CheckInClaimCalendarEventItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/checkIns/{checkInClaim%2DcalendarEventId}{?%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 CheckInClaimCalendarEventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/checkIns/{checkInClaim%2DcalendarEventId}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property checkIns for places + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property checkIns in places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property checkIns for places + /// + /// A + /// Configuration 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 subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 checkIns in places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Places.Item.GraphRoomList.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder(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 CheckInClaimCalendarEventItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CheckInClaimCalendarEventItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Children/ChildrenRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Children/ChildrenRequestBuilder.cs new file mode 100644 index 00000000000..d2044ed8d0c --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Children/ChildrenRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Children.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Children.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.Calendar.Client.Places.Item.GraphRoomList.Children +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\children + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Children.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Children.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphRoomList.children.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Children.Item.PlaceItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("place%2Did1", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Children.Item.PlaceItemRequestBuilder(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 ChildrenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/children{?%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 ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphRoomList.Children.ChildrenRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Children.ChildrenRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters + { + /// 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 ChildrenRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Children/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Children/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..dc07b2930f7 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Children/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Children.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\children\$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}/places/{place%2Did}/graph.roomList/children/$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}/places/{place%2Did}/graph.roomList/children/$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.Calendar.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.Calendar.Client.Places.Item.GraphRoomList.Children.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Children.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/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Children/Item/PlaceItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Children/Item/PlaceItemRequestBuilder.cs new file mode 100644 index 00000000000..e6c9644bf3f --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Children/Item/PlaceItemRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Children.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\children\{place-id1} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PlaceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/children/{place%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 PlaceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/children/{place%2Did1}{?%24expand,%24select}", rawUrl) + { + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphRoomList.Children.Item.PlaceItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Children.Item.PlaceItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 PlaceItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/GraphRoomListRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/GraphRoomListRequestBuilder.cs new file mode 100644 index 00000000000..7c0e3da0a39 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/GraphRoomListRequestBuilder.cs @@ -0,0 +1,150 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.CheckIns; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Children; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphRoomListRequestBuilder : BaseRequestBuilder + { + /// The checkIns property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.CheckIns.CheckInsRequestBuilder CheckIns + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.CheckIns.CheckInsRequestBuilder(PathParameters, RequestAdapter); + } + /// The children property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Children.ChildrenRequestBuilder Children + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Children.ChildrenRequestBuilder(PathParameters, RequestAdapter); + } + /// The rooms property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.RoomsRequestBuilder Rooms + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.RoomsRequestBuilder(PathParameters, RequestAdapter); + } + /// The workspaces property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.WorkspacesRequestBuilder Workspaces + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.WorkspacesRequestBuilder(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 GraphRoomListRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList{?%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 GraphRoomListRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList{?%24expand,%24select}", rawUrl) + { + } + /// + /// Read the properties of a place object specified by its ID. The place object can be one of the following types: The listed resources are derived from the place 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomList.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read the properties of a place object specified by its ID. The place object can be one of the following types: The listed resources are derived from the place 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; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.GraphRoomListRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.GraphRoomListRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Read the properties of a place object specified by its ID. The place object can be one of the following types: The listed resources are derived from the place object. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphRoomListRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 GraphRoomListRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..184b46d46ab --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\rooms\$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}/places/{place%2Did}/graph.roomList/rooms/$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}/places/{place%2Did}/graph.roomList/rooms/$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.Calendar.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.Calendar.Client.Places.Item.GraphRoomList.Rooms.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.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/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/CheckIns/CheckInsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/CheckIns/CheckInsRequestBuilder.cs new file mode 100644 index 00000000000..3911c71ad28 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/CheckIns/CheckInsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.CheckIns.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.CheckIns.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.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.CheckIns +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\rooms\{room-id}\checkIns + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.CheckIns.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.CheckIns.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphRoomList.rooms.item.checkIns.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("checkInClaim%2DcalendarEventId", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder(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 CheckInsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms/{room%2Did}/checkIns{?%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 CheckInsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms/{room%2Did}/checkIns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to checkIns for places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 checkIns for places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.CheckIns.CheckInsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.CheckIns.CheckInsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilderGetQueryParameters + { + /// 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 CheckInsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/CheckIns/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/CheckIns/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..28c82a5803e --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/CheckIns/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.CheckIns.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\rooms\{room-id}\checkIns\$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}/places/{place%2Did}/graph.roomList/rooms/{room%2Did}/checkIns/$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}/places/{place%2Did}/graph.roomList/rooms/{room%2Did}/checkIns/$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.Calendar.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.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.CheckIns.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.CheckIns.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/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs new file mode 100644 index 00000000000..fe51c32bd42 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.CheckIns.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\rooms\{room-id}\checkIns\{checkInClaim-calendarEventId} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CheckInClaimCalendarEventItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms/{room%2Did}/checkIns/{checkInClaim%2DcalendarEventId}{?%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 CheckInClaimCalendarEventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms/{room%2Did}/checkIns/{checkInClaim%2DcalendarEventId}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property checkIns for places + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property checkIns in places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property checkIns for places + /// + /// A + /// Configuration 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 subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 checkIns in places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder(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 CheckInClaimCalendarEventItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CheckInClaimCalendarEventItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/Children/ChildrenRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/Children/ChildrenRequestBuilder.cs new file mode 100644 index 00000000000..8f74b4c4b9d --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/Children/ChildrenRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.Children.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.Children.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.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.Children +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\rooms\{room-id}\children + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.Children.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.Children.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphRoomList.rooms.item.children.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.Children.Item.PlaceItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("place%2Did1", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.Children.Item.PlaceItemRequestBuilder(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 ChildrenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms/{room%2Did}/children{?%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 ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms/{room%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.Children.ChildrenRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.Children.ChildrenRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters + { + /// 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 ChildrenRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/Children/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/Children/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..9e68f4366bb --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/Children/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.Children.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\rooms\{room-id}\children\$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}/places/{place%2Did}/graph.roomList/rooms/{room%2Did}/children/$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}/places/{place%2Did}/graph.roomList/rooms/{room%2Did}/children/$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.Calendar.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.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.Children.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.Children.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/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/Children/Item/PlaceItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/Children/Item/PlaceItemRequestBuilder.cs new file mode 100644 index 00000000000..e8d8ffbbc03 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/Children/Item/PlaceItemRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.Children.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\rooms\{room-id}\children\{place-id1} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PlaceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms/{room%2Did}/children/{place%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 PlaceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms/{room%2Did}/children/{place%2Did1}{?%24expand,%24select}", rawUrl) + { + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.Children.Item.PlaceItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.Children.Item.PlaceItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 PlaceItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/RoomItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/RoomItemRequestBuilder.cs new file mode 100644 index 00000000000..cfc3cb2dba3 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/Item/RoomItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.CheckIns; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.Children; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\rooms\{room-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoomItemRequestBuilder : BaseRequestBuilder + { + /// The checkIns property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.CheckIns.CheckInsRequestBuilder CheckIns + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.CheckIns.CheckInsRequestBuilder(PathParameters, RequestAdapter); + } + /// The children property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.Children.ChildrenRequestBuilder Children + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.Children.ChildrenRequestBuilder(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 RoomItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms/{room%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 RoomItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms/{room%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property rooms for places + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get rooms from places + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Room.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property rooms in places + /// + /// 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.Calendar.Client.Models.Room body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Room 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Room.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property rooms for places + /// + /// A + /// Configuration 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 rooms from places + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 rooms in places + /// + /// 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.Calendar.Client.Models.Room body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Room 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.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.RoomItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.RoomItemRequestBuilder(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 RoomItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get rooms from places + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoomItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 RoomItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoomItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/RoomsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/RoomsRequestBuilder.cs new file mode 100644 index 00000000000..7c7c1fb6282 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Rooms/RoomsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.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.Calendar.Client.Places.Item.GraphRoomList.Rooms +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\rooms + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoomsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphRoomList.rooms.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.RoomItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("room%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.Item.RoomItemRequestBuilder(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 RoomsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms{?%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 RoomsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get rooms from places + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to rooms for places + /// + /// 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.Calendar.Client.Models.Room body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Room 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Room.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get rooms from places + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 rooms for places + /// + /// 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.Calendar.Client.Models.Room body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Room 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.Calendar.Client.Places.Item.GraphRoomList.Rooms.RoomsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Rooms.RoomsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get rooms from places + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoomsRequestBuilderGetQueryParameters + { + /// 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 RoomsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class RoomsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..22bfddef57e --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\workspaces\$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}/places/{place%2Did}/graph.roomList/workspaces/$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}/places/{place%2Did}/graph.roomList/workspaces/$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.Calendar.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.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.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/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/CheckIns/CheckInsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/CheckIns/CheckInsRequestBuilder.cs new file mode 100644 index 00000000000..33811e9acc2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/CheckIns/CheckInsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.CheckIns.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.CheckIns.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.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.CheckIns +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\workspaces\{workspace-id}\checkIns + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.CheckIns.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.CheckIns.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphRoomList.workspaces.item.checkIns.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("checkInClaim%2DcalendarEventId", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder(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 CheckInsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/workspaces/{workspace%2Did}/checkIns{?%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 CheckInsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/workspaces/{workspace%2Did}/checkIns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to checkIns for places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 checkIns for places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.CheckIns.CheckInsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.CheckIns.CheckInsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilderGetQueryParameters + { + /// 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 CheckInsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/CheckIns/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/CheckIns/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..a9906f4faf1 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/CheckIns/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.CheckIns.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\workspaces\{workspace-id}\checkIns\$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}/places/{place%2Did}/graph.roomList/workspaces/{workspace%2Did}/checkIns/$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}/places/{place%2Did}/graph.roomList/workspaces/{workspace%2Did}/checkIns/$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.Calendar.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.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.CheckIns.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.CheckIns.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/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs new file mode 100644 index 00000000000..589d1ee898f --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.CheckIns.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\workspaces\{workspace-id}\checkIns\{checkInClaim-calendarEventId} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CheckInClaimCalendarEventItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/workspaces/{workspace%2Did}/checkIns/{checkInClaim%2DcalendarEventId}{?%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 CheckInClaimCalendarEventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/workspaces/{workspace%2Did}/checkIns/{checkInClaim%2DcalendarEventId}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property checkIns for places + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property checkIns in places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property checkIns for places + /// + /// A + /// Configuration 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 subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 checkIns in places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder(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 CheckInClaimCalendarEventItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CheckInClaimCalendarEventItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/Children/ChildrenRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/Children/ChildrenRequestBuilder.cs new file mode 100644 index 00000000000..1dcefd0d25b --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/Children/ChildrenRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.Children.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.Children.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.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.Children +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\workspaces\{workspace-id}\children + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.Children.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.Children.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphRoomList.workspaces.item.children.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.Children.Item.PlaceItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("place%2Did1", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.Children.Item.PlaceItemRequestBuilder(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 ChildrenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/workspaces/{workspace%2Did}/children{?%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 ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/workspaces/{workspace%2Did}/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.Children.ChildrenRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.Children.ChildrenRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters + { + /// 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 ChildrenRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/Children/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/Children/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..6d9dfa7a767 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/Children/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.Children.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\workspaces\{workspace-id}\children\$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}/places/{place%2Did}/graph.roomList/workspaces/{workspace%2Did}/children/$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}/places/{place%2Did}/graph.roomList/workspaces/{workspace%2Did}/children/$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.Calendar.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.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.Children.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.Children.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/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/Children/Item/PlaceItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/Children/Item/PlaceItemRequestBuilder.cs new file mode 100644 index 00000000000..58ed4b1ad79 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/Children/Item/PlaceItemRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.Children.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\workspaces\{workspace-id}\children\{place-id1} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PlaceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/workspaces/{workspace%2Did}/children/{place%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 PlaceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/workspaces/{workspace%2Did}/children/{place%2Did1}{?%24expand,%24select}", rawUrl) + { + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.Children.Item.PlaceItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.Children.Item.PlaceItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 PlaceItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/WorkspaceItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/WorkspaceItemRequestBuilder.cs new file mode 100644 index 00000000000..e55cd959024 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/Item/WorkspaceItemRequestBuilder.cs @@ -0,0 +1,241 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.CheckIns; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.Children; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\workspaces\{workspace-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkspaceItemRequestBuilder : BaseRequestBuilder + { + /// The checkIns property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.CheckIns.CheckInsRequestBuilder CheckIns + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.CheckIns.CheckInsRequestBuilder(PathParameters, RequestAdapter); + } + /// The children property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.Children.ChildrenRequestBuilder Children + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.Children.ChildrenRequestBuilder(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 WorkspaceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/workspaces/{workspace%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 WorkspaceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/workspaces/{workspace%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property workspaces for places + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get workspaces from places + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property workspaces in places + /// + /// 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.Calendar.Client.Models.Workspace body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property workspaces for places + /// + /// A + /// Configuration 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 workspaces from places + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 workspaces in places + /// + /// 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.Calendar.Client.Models.Workspace body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace 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.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.WorkspaceItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.WorkspaceItemRequestBuilder(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 WorkspaceItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get workspaces from places + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkspaceItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 WorkspaceItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkspaceItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/WorkspacesRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/WorkspacesRequestBuilder.cs new file mode 100644 index 00000000000..f57c0d8a31d --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphRoomList/Workspaces/WorkspacesRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.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.Calendar.Client.Places.Item.GraphRoomList.Workspaces +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.roomList\workspaces + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkspacesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphRoomList.workspaces.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.WorkspaceItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("workspace%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.Item.WorkspaceItemRequestBuilder(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 WorkspacesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/workspaces{?%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 WorkspacesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/workspaces{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get workspaces from places + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.WorkspaceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to workspaces for places + /// + /// 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.Calendar.Client.Models.Workspace body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get workspaces from places + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 workspaces for places + /// + /// 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.Calendar.Client.Models.Workspace body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace 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.Calendar.Client.Places.Item.GraphRoomList.Workspaces.WorkspacesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.Workspaces.WorkspacesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get workspaces from places + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkspacesRequestBuilderGetQueryParameters + { + /// 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 WorkspacesRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class WorkspacesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/CheckIns/CheckInsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/CheckIns/CheckInsRequestBuilder.cs new file mode 100644 index 00000000000..ea68c7484d6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/CheckIns/CheckInsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.CheckIns.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.CheckIns.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.Calendar.Client.Places.Item.GraphSection.CheckIns +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.section\checkIns + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.CheckIns.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.CheckIns.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphSection.checkIns.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("checkInClaim%2DcalendarEventId", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder(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 CheckInsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.section/checkIns{?%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 CheckInsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.section/checkIns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to checkIns for places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 checkIns for places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Places.Item.GraphSection.CheckIns.CheckInsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.CheckIns.CheckInsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilderGetQueryParameters + { + /// 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 CheckInsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/CheckIns/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/CheckIns/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..656c16c9bf1 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/CheckIns/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.CheckIns.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.section\checkIns\$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}/places/{place%2Did}/graph.section/checkIns/$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}/places/{place%2Did}/graph.section/checkIns/$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.Calendar.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.Calendar.Client.Places.Item.GraphSection.CheckIns.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.CheckIns.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/Calendar/wrapper/beta/Client/Places/Item/GraphSection/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs new file mode 100644 index 00000000000..86bbb7e3acf --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.CheckIns.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.section\checkIns\{checkInClaim-calendarEventId} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CheckInClaimCalendarEventItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.section/checkIns/{checkInClaim%2DcalendarEventId}{?%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 CheckInClaimCalendarEventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.section/checkIns/{checkInClaim%2DcalendarEventId}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property checkIns for places + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property checkIns in places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property checkIns for places + /// + /// A + /// Configuration 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 subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 checkIns in places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Places.Item.GraphSection.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder(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 CheckInClaimCalendarEventItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CheckInClaimCalendarEventItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/Children/ChildrenRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/Children/ChildrenRequestBuilder.cs new file mode 100644 index 00000000000..68175b78471 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/Children/ChildrenRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.Children.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.Children.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.Calendar.Client.Places.Item.GraphSection.Children +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.section\children + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.Children.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.Children.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphSection.children.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.Children.Item.PlaceItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("place%2Did1", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.Children.Item.PlaceItemRequestBuilder(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 ChildrenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.section/children{?%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 ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.section/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphSection.Children.ChildrenRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.Children.ChildrenRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters + { + /// 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 ChildrenRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/Children/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/Children/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..a23e15c46e1 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/Children/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.Children.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.section\children\$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}/places/{place%2Did}/graph.section/children/$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}/places/{place%2Did}/graph.section/children/$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.Calendar.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.Calendar.Client.Places.Item.GraphSection.Children.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.Children.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/Calendar/wrapper/beta/Client/Places/Item/GraphSection/Children/Item/PlaceItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/Children/Item/PlaceItemRequestBuilder.cs new file mode 100644 index 00000000000..5dee14f8d0e --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/Children/Item/PlaceItemRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.Children.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.section\children\{place-id1} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PlaceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.section/children/{place%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 PlaceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.section/children/{place%2Did1}{?%24expand,%24select}", rawUrl) + { + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphSection.Children.Item.PlaceItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.Children.Item.PlaceItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 PlaceItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/GraphSectionRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/GraphSectionRequestBuilder.cs new file mode 100644 index 00000000000..f66484e6003 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphSection/GraphSectionRequestBuilder.cs @@ -0,0 +1,138 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.CheckIns; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.Children; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.section + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphSectionRequestBuilder : BaseRequestBuilder + { + /// The checkIns property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.CheckIns.CheckInsRequestBuilder CheckIns + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.CheckIns.CheckInsRequestBuilder(PathParameters, RequestAdapter); + } + /// The children property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.Children.ChildrenRequestBuilder Children + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.Children.ChildrenRequestBuilder(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 GraphSectionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.section{?%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 GraphSectionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.section{?%24expand,%24select}", rawUrl) + { + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Section.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphSection.GraphSectionRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.GraphSectionRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphSectionRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 GraphSectionRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/CheckIns/CheckInsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/CheckIns/CheckInsRequestBuilder.cs new file mode 100644 index 00000000000..e25db8584c3 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/CheckIns/CheckInsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.CheckIns.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.CheckIns.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.Calendar.Client.Places.Item.GraphWorkspace.CheckIns +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.workspace\checkIns + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.CheckIns.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.CheckIns.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphWorkspace.checkIns.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("checkInClaim%2DcalendarEventId", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder(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 CheckInsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.workspace/checkIns{?%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 CheckInsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.workspace/checkIns{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to checkIns for places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 checkIns for places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Places.Item.GraphWorkspace.CheckIns.CheckInsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.CheckIns.CheckInsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilderGetQueryParameters + { + /// 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 CheckInsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/CheckIns/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/CheckIns/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..cb3b853b728 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/CheckIns/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.CheckIns.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.workspace\checkIns\$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}/places/{place%2Did}/graph.workspace/checkIns/$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}/places/{place%2Did}/graph.workspace/checkIns/$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.Calendar.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.Calendar.Client.Places.Item.GraphWorkspace.CheckIns.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.CheckIns.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/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs new file mode 100644 index 00000000000..80210e34553 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/CheckIns/Item/CheckInClaimCalendarEventItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.CheckIns.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.workspace\checkIns\{checkInClaim-calendarEventId} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CheckInClaimCalendarEventItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.workspace/checkIns/{checkInClaim%2DcalendarEventId}{?%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 CheckInClaimCalendarEventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.workspace/checkIns/{checkInClaim%2DcalendarEventId}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property checkIns for places + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property checkIns in places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property checkIns for places + /// + /// A + /// Configuration 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 subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 checkIns in places + /// + /// 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.Calendar.Client.Models.CheckInClaim body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim 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.Calendar.Client.Places.Item.GraphWorkspace.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.CheckIns.Item.CheckInClaimCalendarEventItemRequestBuilder(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 CheckInClaimCalendarEventItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// A subresource of a place object that indicates the check-in status of an Outlook calendar event booked at the place. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CheckInClaimCalendarEventItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CheckInClaimCalendarEventItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/Children/ChildrenRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/Children/ChildrenRequestBuilder.cs new file mode 100644 index 00000000000..32130474615 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/Children/ChildrenRequestBuilder.cs @@ -0,0 +1,183 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.Children.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.Children.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.Calendar.Client.Places.Item.GraphWorkspace.Children +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.workspace\children + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.Children.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.Children.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item.graphWorkspace.children.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.Children.Item.PlaceItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("place%2Did1", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.Children.Item.PlaceItemRequestBuilder(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 ChildrenRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.workspace/children{?%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 ChildrenRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.workspace/children{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphWorkspace.Children.ChildrenRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.Children.ChildrenRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ChildrenRequestBuilderGetQueryParameters + { + /// 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 ChildrenRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/Children/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/Children/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..b1e5224154a --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/Children/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.Children.Count +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.workspace\children\$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}/places/{place%2Did}/graph.workspace/children/$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}/places/{place%2Did}/graph.workspace/children/$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.Calendar.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.Calendar.Client.Places.Item.GraphWorkspace.Children.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.Children.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/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/Children/Item/PlaceItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/Children/Item/PlaceItemRequestBuilder.cs new file mode 100644 index 00000000000..92eb5743b83 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/Children/Item/PlaceItemRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.Children.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.workspace\children\{place-id1} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PlaceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.workspace/children/{place%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 PlaceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.workspace/children/{place%2Did1}{?%24expand,%24select}", rawUrl) + { + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphWorkspace.Children.Item.PlaceItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.Children.Item.PlaceItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// A collection of children places that is only used in the Upsert places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 PlaceItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/GraphWorkspaceRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/GraphWorkspaceRequestBuilder.cs new file mode 100644 index 00000000000..7cf7bbb407b --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/GraphWorkspace/GraphWorkspaceRequestBuilder.cs @@ -0,0 +1,138 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.CheckIns; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.Children; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace +{ + /// + /// Builds and executes requests for operations under \places\{place-id}\graph.workspace + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWorkspaceRequestBuilder : BaseRequestBuilder + { + /// The checkIns property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.CheckIns.CheckInsRequestBuilder CheckIns + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.CheckIns.CheckInsRequestBuilder(PathParameters, RequestAdapter); + } + /// The children property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.Children.ChildrenRequestBuilder Children + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.Children.ChildrenRequestBuilder(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 GraphWorkspaceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.workspace{?%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 GraphWorkspaceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.workspace{?%24expand,%24select}", rawUrl) + { + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.Item.GraphWorkspace.GraphWorkspaceRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.GraphWorkspaceRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a collection of the specified type of place objects defined in a tenant. You can do the following for a given tenant:- List all buildings.- List all floors.- List all sections.- List all desks.- List all rooms.- List all workspaces.- List all room lists.- List rooms in a specific room list.- List workspaces in a specific room list. Compared with the findRooms and findRoomLists functions, this operation returns a richer payload for rooms and room lists. For details about how they compare, see Using the places API. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GraphWorkspaceRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 GraphWorkspaceRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/Item/PlaceItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/Item/PlaceItemRequestBuilder.cs new file mode 100644 index 00000000000..053e63ce203 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/Item/PlaceItemRequestBuilder.cs @@ -0,0 +1,214 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.CheckIns; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Children; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Descendants; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.Item +{ + /// + /// Builds and executes requests for operations under \places\{place-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilder : BaseRequestBuilder + { + /// The checkIns property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.CheckIns.CheckInsRequestBuilder CheckIns + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.CheckIns.CheckInsRequestBuilder(PathParameters, RequestAdapter); + } + /// The children property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Children.ChildrenRequestBuilder Children + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Children.ChildrenRequestBuilder(PathParameters, RequestAdapter); + } + /// The descendants property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Descendants.DescendantsRequestBuilder Descendants + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Descendants.DescendantsRequestBuilder(PathParameters, RequestAdapter); + } + /// The graphBuilding property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.GraphBuildingRequestBuilder GraphBuilding + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphBuilding.GraphBuildingRequestBuilder(PathParameters, RequestAdapter); + } + /// The graphDesk property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.GraphDeskRequestBuilder GraphDesk + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphDesk.GraphDeskRequestBuilder(PathParameters, RequestAdapter); + } + /// The graphFloor property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.GraphFloorRequestBuilder GraphFloor + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphFloor.GraphFloorRequestBuilder(PathParameters, RequestAdapter); + } + /// The graphRoom property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.GraphRoomRequestBuilder GraphRoom + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoom.GraphRoomRequestBuilder(PathParameters, RequestAdapter); + } + /// The graphRoomList property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.GraphRoomListRequestBuilder GraphRoomList + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphRoomList.GraphRoomListRequestBuilder(PathParameters, RequestAdapter); + } + /// The graphSection property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.GraphSectionRequestBuilder GraphSection + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphSection.GraphSectionRequestBuilder(PathParameters, RequestAdapter); + } + /// The graphWorkspace property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.GraphWorkspaceRequestBuilder GraphWorkspace + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.GraphWorkspace.GraphWorkspaceRequestBuilder(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 PlaceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PlaceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}", rawUrl) + { + } + /// + /// Delete a place object. You can also use this method to delete the following child object types: building, floor, section, or desk. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Upsert one or more place objects in async mode. This API allows you to create and update multiple places efficiently in a single request. For more information on how to use this API, including scenarios, best practices, and concurrency limits, see Working with the upsert Places API in Microsoft Graph. + /// 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.Calendar.Client.Models.Place body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete a place object. You can also use this method to delete the following child object types: building, floor, section, or desk. + /// + /// A + /// Configuration 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; + } + /// + /// Upsert one or more place objects in async mode. This API allows you to create and update multiple places efficiently in a single request. For more information on how to use this API, including scenarios, best practices, and concurrency limits, see Working with the upsert Places API in Microsoft Graph. + /// + /// 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.Calendar.Client.Models.Place body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place 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.Calendar.Client.Places.Item.PlaceItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.PlaceItemRequestBuilder(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 PlaceItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlaceItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/ListOperations/ListOperationsGetResponse.cs b/src/Calendar/wrapper/beta/Client/Places/ListOperations/ListOperationsGetResponse.cs new file mode 100644 index 00000000000..ad2fb2c93cb --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/ListOperations/ListOperationsGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Places.ListOperations +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ListOperationsGetResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Places.ListOperations.ListOperationsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.ListOperations.ListOperationsGetResponse(); + } + /// + /// 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.Calendar.Client.Models.PlaceOperation.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/Calendar/wrapper/beta/Client/Places/ListOperations/ListOperationsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/ListOperations/ListOperationsRequestBuilder.cs new file mode 100644 index 00000000000..cb4b68df297 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/ListOperations/ListOperationsRequestBuilder.cs @@ -0,0 +1,189 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places.ListOperations +{ + /// + /// Builds and executes requests for operations under \places\listOperations() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ListOperationsRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ListOperationsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/listOperations(){?%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 ListOperationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/listOperations(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// List all existing placeOperation objects. This API doesn't return operation details. + /// 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 GetAsListOperationsGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsListOperationsGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Places.ListOperations.ListOperationsGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// List all existing placeOperation objects. This API doesn't return operation details. + /// 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 GetAsListOperationsGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Places.ListOperations.ListOperationsResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// List all existing placeOperation objects. This API doesn't return operation details. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Places.ListOperations.ListOperationsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.ListOperations.ListOperationsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// List all existing placeOperation objects. This API doesn't return operation details. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ListOperationsRequestBuilderGetQueryParameters + { + /// 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 ListOperationsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/ListOperations/ListOperationsResponse.cs b/src/Calendar/wrapper/beta/Client/Places/ListOperations/ListOperationsResponse.cs new file mode 100644 index 00000000000..9ec3fea5a22 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/ListOperations/ListOperationsResponse.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.Calendar.Client.Places.ListOperations +{ + [Obsolete("This class is obsolete. Use ListOperationsGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ListOperationsResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Places.ListOperations.ListOperationsGetResponse, 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.Calendar.Client.Places.ListOperations.ListOperationsResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.ListOperations.ListOperationsResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Places/PlacesRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Places/PlacesRequestBuilder.cs new file mode 100644 index 00000000000..43e38449695 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Places/PlacesRequestBuilder.cs @@ -0,0 +1,180 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.GetOperationWithId; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphBuilding; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphDesk; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphFloor; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphRoom; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphRoomList; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphSection; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphWorkspace; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.Item; +using Microsoft.Graph.PowerShell.Calendar.Client.Places.ListOperations; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Places +{ + /// + /// Builds and executes requests for operations under \places + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PlacesRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// The graphBuilding property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphBuilding.GraphBuildingRequestBuilder GraphBuilding + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphBuilding.GraphBuildingRequestBuilder(PathParameters, RequestAdapter); + } + /// The graphDesk property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphDesk.GraphDeskRequestBuilder GraphDesk + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphDesk.GraphDeskRequestBuilder(PathParameters, RequestAdapter); + } + /// The graphFloor property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphFloor.GraphFloorRequestBuilder GraphFloor + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphFloor.GraphFloorRequestBuilder(PathParameters, RequestAdapter); + } + /// The graphRoom property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphRoom.GraphRoomRequestBuilder GraphRoom + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphRoom.GraphRoomRequestBuilder(PathParameters, RequestAdapter); + } + /// The graphRoomList property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphRoomList.GraphRoomListRequestBuilder GraphRoomList + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphRoomList.GraphRoomListRequestBuilder(PathParameters, RequestAdapter); + } + /// The graphSection property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphSection.GraphSectionRequestBuilder GraphSection + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphSection.GraphSectionRequestBuilder(PathParameters, RequestAdapter); + } + /// The graphWorkspace property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphWorkspace.GraphWorkspaceRequestBuilder GraphWorkspace + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GraphWorkspace.GraphWorkspaceRequestBuilder(PathParameters, RequestAdapter); + } + /// The listOperations property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.ListOperations.ListOperationsRequestBuilder ListOperations + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.ListOperations.ListOperationsRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.places.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.PlaceItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("place%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.PlaceItemRequestBuilder(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 PlacesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PlacesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places", rawUrl) + { + } + /// + /// Builds and executes requests for operations under \places\getOperation(id='{id}') + /// + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GetOperationWithId.GetOperationWithIdRequestBuilder GetOperationWithId() + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GetOperationWithId.GetOperationWithIdRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Create a new place object. You can also use this method to create the following child object types: building, floor, section, room, workspace, or desk. + /// 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.Calendar.Client.Models.Place body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new place object. You can also use this method to create the following child object types: building, floor, section, room, workspace, or desk. + /// + /// 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.Calendar.Client.Models.Place body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Place 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.Calendar.Client.Places.PlacesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.PlacesRequestBuilder(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 PlacesRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs new file mode 100644 index 00000000000..20598a4f6fe --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendar.AllowedCalendarSharingRolesWithUser +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AllowedCalendarSharingRolesWithUserGetResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse(); + } + /// + /// 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.GetCollectionOfEnumValues()?.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.WriteCollectionOfEnumValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs new file mode 100644 index 00000000000..ab0ddf24415 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs @@ -0,0 +1,157 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.AllowedCalendarSharingRolesWithUser +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\allowedCalendarSharingRoles(User='{User}') + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllowedCalendarSharingRolesWithUserRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AllowedCalendarSharingRolesWithUserRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/allowedCalendarSharingRoles(User='{User}'){?%24count,%24filter,%24search,%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 AllowedCalendarSharingRolesWithUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/allowedCalendarSharingRoles(User='{User}'){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl) + { + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + /// A + /// Cancellation token to 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 GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Users.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllowedCalendarSharingRolesWithUserRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || 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 + /// 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 AllowedCalendarSharingRolesWithUserRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs new file mode 100644 index 00000000000..1f8cff2a901 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.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.Calendar.Client.Users.Item.Calendar.AllowedCalendarSharingRolesWithUser +{ + [Obsolete("This class is obsolete. Use AllowedCalendarSharingRolesWithUserGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AllowedCalendarSharingRolesWithUserResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse, 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.Calendar.Client.Users.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs new file mode 100644 index 00000000000..a96473573f1 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarPermissions/CalendarPermissionsRequestBuilder.cs @@ -0,0 +1,239 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarPermissions.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarPermissions.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.Calendar.Client.Users.Item.Calendar.CalendarPermissions +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\calendarPermissions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarPermissions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarPermissions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.users.item.calendar.calendarPermissions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarPermissions.Item.CalendarPermissionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("calendarPermission%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarPermissions.Item.CalendarPermissionItemRequestBuilder(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 CalendarPermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarPermissions{?%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 CalendarPermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarPermissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get the specified permissions object of a user or group calendar that has been shared. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermissionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. + /// 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.Calendar.Client.Models.CalendarPermission body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the specified permissions object of a user or group calendar that has been shared. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 calendarPermission resource to specify the identity and role of the user with whom the specified calendar is being shared or delegated. + /// + /// 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.Calendar.Client.Models.CalendarPermission body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission 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.Calendar.Client.Users.Item.Calendar.CalendarPermissions.CalendarPermissionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarPermissions.CalendarPermissionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the specified permissions object of a user or group calendar that has been shared. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionsRequestBuilderGetQueryParameters + { + /// 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 CalendarPermissionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..19628e9974b --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarPermissions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarPermissions.Count +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\calendarPermissions\$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}/calendar/calendarPermissions/$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}/calendar/calendarPermissions/$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.Calendar.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.Calendar.Client.Users.Item.Calendar.CalendarPermissions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarPermissions.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/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs new file mode 100644 index 00000000000..fa6acf2e164 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs @@ -0,0 +1,232 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarPermissions.Item +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\calendarPermissions\{calendarPermission-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CalendarPermissionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarPermissions/{calendarPermission%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 CalendarPermissionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarPermissions/{calendarPermission%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete calendarPermission. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the specified permissions object of a user or group calendar that has been shared. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the permissions assigned to an existing share recipient or delegate, through the corresponding calendarPermission object for a calendar. + /// 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.Calendar.Client.Models.CalendarPermission body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete calendarPermission. + /// + /// A + /// Configuration 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 specified permissions object of a user or group calendar that has been shared. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 permissions assigned to an existing share recipient or delegate, through the corresponding calendarPermission object for a calendar. + /// + /// 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.Calendar.Client.Models.CalendarPermission body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission 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.Calendar.Client.Users.Item.Calendar.CalendarPermissions.Item.CalendarPermissionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarPermissions.Item.CalendarPermissionItemRequestBuilder(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 CalendarPermissionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// Get the specified permissions object of a user or group calendar that has been shared. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CalendarPermissionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarRequestBuilder.cs new file mode 100644 index 00000000000..a1b26547f78 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarRequestBuilder.cs @@ -0,0 +1,219 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.AllowedCalendarSharingRolesWithUser; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarPermissions; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarView; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.GetSchedule; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.PermanentDelete; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilder : BaseRequestBuilder + { + /// The calendarPermissions property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarPermissions.CalendarPermissionsRequestBuilder CalendarPermissions + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarPermissions.CalendarPermissionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The calendarView property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarView.CalendarViewRequestBuilder CalendarView + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarView.CalendarViewRequestBuilder(PathParameters, RequestAdapter); + } + /// The events property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.EventsRequestBuilder Events + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.EventsRequestBuilder(PathParameters, RequestAdapter); + } + /// The getSchedule property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.GetSchedule.GetScheduleRequestBuilder GetSchedule + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.GetSchedule.GetScheduleRequestBuilder(PathParameters, RequestAdapter); + } + /// The permanentDelete property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.PermanentDelete.PermanentDeleteRequestBuilder PermanentDelete + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.PermanentDelete.PermanentDeleteRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\allowedCalendarSharingRoles(User='{User}') + /// + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder AllowedCalendarSharingRolesWithUser() + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder(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 CalendarRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar{?%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 CalendarRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar{?%24expand,%24select}", rawUrl) + { + } + /// + /// The user's primary calendar. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property calendar in users + /// + /// 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.Calendar.Client.Models.Calendar body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The user's primary calendar. 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 calendar in users + /// + /// 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.Calendar.Client.Models.Calendar body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar 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.Calendar.Client.Users.Item.Calendar.CalendarRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The user's primary calendar. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CalendarRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarView/CalendarViewRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarView/CalendarViewRequestBuilder.cs new file mode 100644 index 00000000000..a55dbe9cdad --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarView/CalendarViewRequestBuilder.cs @@ -0,0 +1,190 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarView.Delta; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarView +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\calendarView + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarViewRequestBuilder : BaseRequestBuilder + { + /// The delta property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarView.Delta.DeltaRequestBuilder Delta + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarView.Delta.DeltaRequestBuilder(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 CalendarViewRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 CalendarViewRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The calendar view for the calendar. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The calendar view for the calendar. Navigation property. 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.Calendar.Client.Users.Item.Calendar.CalendarView.CalendarViewRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarView.CalendarViewRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The calendar view for the calendar. Navigation property. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarViewRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T19:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 CalendarViewRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..bf981ca9632 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarView/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendar.CalendarView.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseDeltaFunctionResponse, 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.Calendar.Client.Users.Item.Calendar.CalendarView.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarView.Delta.DeltaGetResponse(); + } + /// + /// 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.Calendar.Client.Models.Event.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/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..042bf8d65bf --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarView/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,209 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarView.Delta +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\calendarView\delta() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/calendarView/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarView.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarView.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Users.Item.Calendar.CalendarView.Delta.DeltaRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarView.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarView/Delta/DeltaResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarView/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..76a4f37d89a --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/CalendarView/Delta/DeltaResponse.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.Calendar.Client.Users.Item.Calendar.CalendarView.Delta +{ + [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarView.Delta.DeltaGetResponse, 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.Calendar.Client.Users.Item.Calendar.CalendarView.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarView.Delta.DeltaResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..0e3f25baede --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Count +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events\$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}/calendar/events/$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}/calendar/events/$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.Calendar.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.Calendar.Client.Users.Item.Calendar.Events.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.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/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Delta/DeltaGetResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..380164f06f9 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendar.Events.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseDeltaFunctionResponse, 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.Calendar.Client.Users.Item.Calendar.Events.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Delta.DeltaGetResponse(); + } + /// + /// 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.Calendar.Client.Models.Event.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/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..9bac79f999a --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,209 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Delta +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events\delta() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Users.Item.Calendar.Events.Delta.DeltaRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Delta/DeltaResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..d33592c81fc --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Delta/DeltaResponse.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.Calendar.Client.Users.Item.Calendar.Events.Delta +{ + [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Delta.DeltaGetResponse, 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.Calendar.Client.Users.Item.Calendar.Events.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Delta.DeltaResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/EventsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/EventsRequestBuilder.cs new file mode 100644 index 00000000000..5eb9e700ecd --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/EventsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Delta; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.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.Calendar.Client.Users.Item.Calendar.Events +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// The delta property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Delta.DeltaRequestBuilder Delta + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Delta.DeltaRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.users.item.calendar.events.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.EventItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("event%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.EventItemRequestBuilder(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 EventsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events{?%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 EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The events in the calendar. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to events for users + /// + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The events in the calendar. Navigation property. 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 events for users + /// + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Users.Item.Calendar.Events.EventsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.EventsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The events in the calendar. Navigation property. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilderGetQueryParameters + { + /// 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 EventsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Accept/AcceptPostRequestBody.cs new file mode 100644 index 00000000000..fe33c5aa563 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Accept/AcceptPostRequestBody.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.Calendar.Client.Users.Item.Calendar.Events.Item.Accept +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AcceptPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The SendResponse property + public bool? SendResponse { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public AcceptPostRequestBody() + { + AdditionalData = new Dictionary(); + SendResponse = false; + } + /// + /// 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.Calendar.Client.Users.Item.Calendar.Events.Item.Accept.AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Accept.AcceptPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteBoolValue("SendResponse", SendResponse); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs new file mode 100644 index 00000000000..66d355ea265 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Accept/AcceptRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Accept +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events\{event-id}\accept + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AcceptRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/accept", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/accept", rawUrl) + { + } + /// + /// Accept the specified event in a user calendar. + /// 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.Calendar.Client.Users.Item.Calendar.Events.Item.Accept.AcceptPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Accept.AcceptPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Accept the specified event in a user calendar. + /// + /// 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.Calendar.Client.Users.Item.Calendar.Events.Item.Accept.AcceptPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Accept.AcceptPostRequestBody 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.Calendar.Client.Users.Item.Calendar.Events.Item.Accept.AcceptRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Accept.AcceptRequestBuilder(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 AcceptRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs new file mode 100644 index 00000000000..87f4d562533 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.CreateUploadSession; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.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.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events\{event-id}\attachments + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// The createUploadSession property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder CreateUploadSession + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.users.item.calendar.events.item.attachments.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.Item.AttachmentItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("attachment%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.Item.AttachmentItemRequestBuilder(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 AttachmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/attachments{?%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 AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to attachments for users + /// + /// 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.Calendar.Client.Models.Attachment body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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; + } + /// + /// Create new navigation property to attachments for users + /// + /// 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.Calendar.Client.Models.Attachment body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment 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.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.AttachmentsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.AttachmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderGetQueryParameters + { + /// 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 AttachmentsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..efc9b4ae6ef --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Attachments/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.Count +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events\{event-id}\attachments\$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}/calendar/events/{event%2Did}/attachments/$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}/calendar/events/{event%2Did}/attachments/$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.Calendar.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.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.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/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs new file mode 100644 index 00000000000..74f2a135706 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -0,0 +1,66 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.CreateUploadSession +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CreateUploadSessionPostRequestBody : 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 AttachmentItem property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem? AttachmentItem { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem AttachmentItem { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CreateUploadSessionPostRequestBody() + { + 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.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem.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("AttachmentItem", AttachmentItem); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs new file mode 100644 index 00000000000..f526ec54e02 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -0,0 +1,104 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.CreateUploadSession +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events\{event-id}\attachments\createUploadSession + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateUploadSessionRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CreateUploadSessionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/attachments/createUploadSession", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/attachments/createUploadSession", rawUrl) + { + } + /// + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// 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.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// + /// 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.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody 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.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(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 CreateUploadSessionRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs new file mode 100644 index 00000000000..30da6683094 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -0,0 +1,174 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.Item +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events\{event-id}\attachments\{attachment-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AttachmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/attachments/{attachment%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 AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/attachments/{attachment%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property attachments for users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property attachments for users + /// + /// A + /// Configuration 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 collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.Item.AttachmentItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.Item.AttachmentItemRequestBuilder(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 AttachmentItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 AttachmentItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs new file mode 100644 index 00000000000..b1f0bfc264a --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Calendar/CalendarRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Calendar +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events\{event-id}\calendar + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CalendarRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/calendar{?%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 CalendarRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/calendar{?%24expand,%24select}", rawUrl) + { + } + /// + /// The calendar that contains the event. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The calendar that contains the event. Navigation property. 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.Calendar.Client.Users.Item.Calendar.Events.Item.Calendar.CalendarRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Calendar.CalendarRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The calendar that contains the event. Navigation property. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CalendarRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Cancel/CancelPostRequestBody.cs new file mode 100644 index 00000000000..011e89e89bc --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Cancel/CancelPostRequestBody.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.Calendar.Client.Users.Item.Calendar.Events.Item.Cancel +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CancelPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CancelPostRequestBody() + { + 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.Calendar.Client.Users.Item.Calendar.Events.Item.Cancel.CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Cancel.CancelPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = 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("Comment", Comment); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs new file mode 100644 index 00000000000..1c274f69ff4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Cancel/CancelRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Cancel +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events\{event-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}/users/{user%2Did}/calendar/events/{event%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}/users/{user%2Did}/calendar/events/{event%2Did}/cancel", rawUrl) + { + } + /// + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// 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.Calendar.Client.Users.Item.Calendar.Events.Item.Cancel.CancelPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Cancel.CancelPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// + /// 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.Calendar.Client.Users.Item.Calendar.Events.Item.Cancel.CancelPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Cancel.CancelPostRequestBody 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.Calendar.Client.Users.Item.Calendar.Events.Item.Cancel.CancelRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.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/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs new file mode 100644 index 00000000000..43676d86ca8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Decline/DeclinePostRequestBody.cs @@ -0,0 +1,81 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendar.Events.Item.Decline +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeclinePostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The ProposedNewTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot? ProposedNewTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot ProposedNewTime { get; set; } +#endif + /// The SendResponse property + public bool? SendResponse { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public DeclinePostRequestBody() + { + AdditionalData = new Dictionary(); + SendResponse = false; + } + /// + /// 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.Calendar.Client.Users.Item.Calendar.Events.Item.Decline.DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Decline.DeclinePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot.CreateFromDiscriminatorValue); } }, + { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteBoolValue("SendResponse", SendResponse); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs new file mode 100644 index 00000000000..1d71df2775e --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Decline/DeclineRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Decline +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events\{event-id}\decline + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeclineRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeclineRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/decline", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/decline", rawUrl) + { + } + /// + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// 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.Calendar.Client.Users.Item.Calendar.Events.Item.Decline.DeclinePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Decline.DeclinePostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// + /// 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.Calendar.Client.Users.Item.Calendar.Events.Item.Decline.DeclinePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Decline.DeclinePostRequestBody 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.Calendar.Client.Users.Item.Calendar.Events.Item.Decline.DeclineRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Decline.DeclineRequestBuilder(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 DeclineRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs new file mode 100644 index 00000000000..59b8807e5e8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.DismissReminder +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events\{event-id}\dismissReminder + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DismissReminderRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DismissReminderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/dismissReminder", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/dismissReminder", rawUrl) + { + } + /// + /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// + /// A + /// Configuration 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.Calendar.Client.Users.Item.Calendar.Events.Item.DismissReminder.DismissReminderRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.DismissReminder.DismissReminderRequestBuilder(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 DismissReminderRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/EventItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/EventItemRequestBuilder.cs new file mode 100644 index 00000000000..e0835079a5b --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/EventItemRequestBuilder.cs @@ -0,0 +1,301 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Accept; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Calendar; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Cancel; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Decline; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.DismissReminder; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Extensions; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Forward; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Instances; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.PermanentDelete; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.SnoozeReminder; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.TentativelyAccept; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events\{event-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilder : BaseRequestBuilder + { + /// The accept property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Accept.AcceptRequestBuilder Accept + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Accept.AcceptRequestBuilder(PathParameters, RequestAdapter); + } + /// The attachments property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.AttachmentsRequestBuilder Attachments + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Attachments.AttachmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// The calendar property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Calendar.CalendarRequestBuilder Calendar + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Calendar.CalendarRequestBuilder(PathParameters, RequestAdapter); + } + /// The cancel property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Cancel.CancelRequestBuilder Cancel + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Cancel.CancelRequestBuilder(PathParameters, RequestAdapter); + } + /// The decline property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Decline.DeclineRequestBuilder Decline + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Decline.DeclineRequestBuilder(PathParameters, RequestAdapter); + } + /// The dismissReminder property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.DismissReminder.DismissReminderRequestBuilder DismissReminder + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.DismissReminder.DismissReminderRequestBuilder(PathParameters, RequestAdapter); + } + /// The extensions property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Extensions.ExtensionsRequestBuilder Extensions + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Extensions.ExtensionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The forward property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Forward.ForwardRequestBuilder Forward + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Forward.ForwardRequestBuilder(PathParameters, RequestAdapter); + } + /// The instances property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Instances.InstancesRequestBuilder Instances + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Instances.InstancesRequestBuilder(PathParameters, RequestAdapter); + } + /// The permanentDelete property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder PermanentDelete + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder(PathParameters, RequestAdapter); + } + /// The snoozeReminder property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder SnoozeReminder + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder(PathParameters, RequestAdapter); + } + /// The tentativelyAccept property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder TentativelyAccept + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder(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 EventItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%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 EventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property events for users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The events in the calendar. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property events in users + /// + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property events for users + /// + /// A + /// Configuration 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 events in the calendar. Navigation property. 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 events in users + /// + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Users.Item.Calendar.Events.Item.EventItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.EventItemRequestBuilder(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 EventItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The events in the calendar. Navigation property. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 EventItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..f7dc2794be8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Extensions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Extensions.Count +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events\{event-id}\extensions\$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}/calendar/events/{event%2Did}/extensions/$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}/calendar/events/{event%2Did}/extensions/$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.Calendar.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.Calendar.Client.Users.Item.Calendar.Events.Item.Extensions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Extensions.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/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs new file mode 100644 index 00000000000..0b07afbad71 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Extensions.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Extensions.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.Calendar.Client.Users.Item.Calendar.Events.Item.Extensions +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events\{event-id}\extensions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Extensions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Extensions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.users.item.calendar.events.item.extensions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Extensions.Item.ExtensionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("extension%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Extensions.Item.ExtensionItemRequestBuilder(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 ExtensionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/extensions{?%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 ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The collection of open extensions defined for the event. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to extensions for users + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of open extensions defined for the event. 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; + } + /// + /// Create new navigation property to extensions for users + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Users.Item.Calendar.Events.Item.Extensions.ExtensionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Extensions.ExtensionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of open extensions defined for the event. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderGetQueryParameters + { + /// 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 ExtensionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs new file mode 100644 index 00000000000..e37909aa077 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Extensions.Item +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events\{event-id}\extensions\{extension-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExtensionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/extensions/{extension%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 ExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/extensions/{extension%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property extensions for users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of open extensions defined for the event. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property extensions in users + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property extensions for users + /// + /// A + /// Configuration 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 collection of open extensions defined for the event. 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; + } + /// + /// Update the navigation property extensions in users + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Users.Item.Calendar.Events.Item.Extensions.Item.ExtensionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Extensions.Item.ExtensionItemRequestBuilder(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 ExtensionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The collection of open extensions defined for the event. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 ExtensionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs new file mode 100644 index 00000000000..c735fd01ac9 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Forward/ForwardPostRequestBody.cs @@ -0,0 +1,76 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendar.Events.Item.Forward +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ForwardPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The ToRecipients property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ToRecipients { get; set; } +#nullable restore +#else + public List ToRecipients { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ForwardPostRequestBody() + { + 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.Calendar.Client.Users.Item.Calendar.Events.Item.Forward.ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Forward.ForwardPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs new file mode 100644 index 00000000000..116410717d2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Forward/ForwardRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Forward +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events\{event-id}\forward + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ForwardRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ForwardRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/forward", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/forward", rawUrl) + { + } + /// + /// This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// 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.Calendar.Client.Users.Item.Calendar.Events.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Forward.ForwardPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// + /// 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.Calendar.Client.Users.Item.Calendar.Events.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Forward.ForwardPostRequestBody 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.Calendar.Client.Users.Item.Calendar.Events.Item.Forward.ForwardRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Forward.ForwardRequestBuilder(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 ForwardRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..a4191188351 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendar.Events.Item.Instances.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseDeltaFunctionResponse, 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.Calendar.Client.Users.Item.Calendar.Events.Item.Instances.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Instances.Delta.DeltaGetResponse(); + } + /// + /// 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.Calendar.Client.Models.Event.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/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..213f87dd204 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,209 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Instances.Delta +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events\{event-id}\instances\delta() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Instances.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Instances.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Users.Item.Calendar.Events.Item.Instances.Delta.DeltaRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Instances.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..ddc502c32a4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Instances/Delta/DeltaResponse.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.Calendar.Client.Users.Item.Calendar.Events.Item.Instances.Delta +{ + [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Instances.Delta.DeltaGetResponse, 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.Calendar.Client.Users.Item.Calendar.Events.Item.Instances.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Instances.Delta.DeltaResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs new file mode 100644 index 00000000000..81b5af9ea12 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/Instances/InstancesRequestBuilder.cs @@ -0,0 +1,190 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Instances.Delta; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Instances +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events\{event-id}\instances + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilder : BaseRequestBuilder + { + /// The delta property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Instances.Delta.DeltaRequestBuilder Delta + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Instances.Delta.DeltaRequestBuilder(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 InstancesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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}/users/{user%2Did}/calendar/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. 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.Calendar.Client.Users.Item.Calendar.Events.Item.Instances.InstancesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.Instances.InstancesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T19:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs new file mode 100644 index 00000000000..435f28f4894 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.PermanentDelete +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events\{event-id}\permanentDelete + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermanentDeleteRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/permanentDelete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/permanentDelete", rawUrl) + { + } + /// + /// Permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. + /// + /// A + /// Configuration 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.Calendar.Client.Users.Item.Calendar.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder(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 PermanentDeleteRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs new file mode 100644 index 00000000000..0eda407a054 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -0,0 +1,66 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendar.Events.Item.SnoozeReminder +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class SnoozeReminderPostRequestBody : 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 NewReminderTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? NewReminderTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone NewReminderTime { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public SnoozeReminderPostRequestBody() + { + 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.Calendar.Client.Users.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone.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("NewReminderTime", NewReminderTime); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs new file mode 100644 index 00000000000..344128fee85 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.SnoozeReminder +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events\{event-id}\snoozeReminder + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SnoozeReminderRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SnoozeReminderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/snoozeReminder", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/snoozeReminder", rawUrl) + { + } + /// + /// Postpone a reminder for an event in a user calendar until a new time. + /// 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.Calendar.Client.Users.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Postpone a reminder for an event in a user calendar until a new time. + /// + /// 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.Calendar.Client.Users.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody 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.Calendar.Client.Users.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder(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 SnoozeReminderRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs new file mode 100644 index 00000000000..3eb87ed1286 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -0,0 +1,81 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendar.Events.Item.TentativelyAccept +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class TentativelyAcceptPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The ProposedNewTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot? ProposedNewTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot ProposedNewTime { get; set; } +#endif + /// The SendResponse property + public bool? SendResponse { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public TentativelyAcceptPostRequestBody() + { + AdditionalData = new Dictionary(); + SendResponse = false; + } + /// + /// 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.Calendar.Client.Users.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot.CreateFromDiscriminatorValue); } }, + { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteBoolValue("SendResponse", SendResponse); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs new file mode 100644 index 00000000000..439b6ac39a6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.TentativelyAccept +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\events\{event-id}\tentativelyAccept + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TentativelyAcceptRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TentativelyAcceptRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/tentativelyAccept", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/events/{event%2Did}/tentativelyAccept", rawUrl) + { + } + /// + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// 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.Calendar.Client.Users.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// + /// 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.Calendar.Client.Users.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody 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.Calendar.Client.Users.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder(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 TentativelyAcceptRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/GetSchedule/GetSchedulePostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/GetSchedule/GetSchedulePostRequestBody.cs new file mode 100644 index 00000000000..111512f5564 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/GetSchedule/GetSchedulePostRequestBody.cs @@ -0,0 +1,90 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendar.GetSchedule +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class GetSchedulePostRequestBody : 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 AvailabilityViewInterval property + public int? AvailabilityViewInterval { get; set; } + /// The EndTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? EndTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone EndTime { get; set; } +#endif + /// The Schedules property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Schedules { get; set; } +#nullable restore +#else + public List Schedules { get; set; } +#endif + /// The StartTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? StartTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone StartTime { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public GetSchedulePostRequestBody() + { + 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.Calendar.Client.Users.Item.Calendar.GetSchedule.GetSchedulePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.GetSchedule.GetSchedulePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "AvailabilityViewInterval", n => { AvailabilityViewInterval = n.GetIntValue(); } }, + { "EndTime", n => { EndTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "Schedules", n => { Schedules = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "StartTime", n => { StartTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone.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.WriteIntValue("AvailabilityViewInterval", AvailabilityViewInterval); + writer.WriteObjectValue("EndTime", EndTime); + writer.WriteCollectionOfPrimitiveValues("Schedules", Schedules); + writer.WriteObjectValue("StartTime", StartTime); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs new file mode 100644 index 00000000000..cb3b3f0c5d4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/GetSchedule/GetSchedulePostResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendar.GetSchedule +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class GetSchedulePostResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendar.GetSchedule.GetSchedulePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.GetSchedule.GetSchedulePostResponse(); + } + /// + /// 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.Calendar.Client.Models.ScheduleInformation.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/Calendar/wrapper/beta/Client/Users/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs new file mode 100644 index 00000000000..fd2c1840147 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/GetSchedule/GetScheduleRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.GetSchedule +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\getSchedule + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetScheduleRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetScheduleRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/getSchedule", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetScheduleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/getSchedule", rawUrl) + { + } + /// + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// 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 PostAsGetSchedulePostResponseAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.GetSchedule.GetSchedulePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsGetSchedulePostResponseAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.GetSchedule.GetSchedulePostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.GetSchedule.GetSchedulePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// 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 + [Obsolete("This method is obsolete. Use PostAsGetSchedulePostResponseAsync instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.GetSchedule.GetSchedulePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.GetSchedule.GetSchedulePostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.GetSchedule.GetScheduleResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// + /// 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.Calendar.Client.Users.Item.Calendar.GetSchedule.GetSchedulePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.GetSchedule.GetSchedulePostRequestBody 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.Calendar.Client.Users.Item.Calendar.GetSchedule.GetScheduleRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.GetSchedule.GetScheduleRequestBuilder(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 GetScheduleRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/GetSchedule/GetScheduleResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/GetSchedule/GetScheduleResponse.cs new file mode 100644 index 00000000000..665f1ad1a16 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/GetSchedule/GetScheduleResponse.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.Calendar.Client.Users.Item.Calendar.GetSchedule +{ + [Obsolete("This class is obsolete. Use GetSchedulePostResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class GetScheduleResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.GetSchedule.GetSchedulePostResponse, 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.Calendar.Client.Users.Item.Calendar.GetSchedule.GetScheduleResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.GetSchedule.GetScheduleResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/PermanentDelete/PermanentDeleteRequestBuilder.cs new file mode 100644 index 00000000000..079e7c2d6a5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendar/PermanentDelete/PermanentDeleteRequestBuilder.cs @@ -0,0 +1,96 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.PermanentDelete +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendar\permanentDelete + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermanentDeleteRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/permanentDelete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendar/permanentDelete", rawUrl) + { + } + /// + /// Invoke action permanentDelete + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action permanentDelete + /// + /// A + /// Configuration 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.Calendar.Client.Users.Item.Calendar.PermanentDelete.PermanentDeleteRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.PermanentDelete.PermanentDeleteRequestBuilder(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 PermanentDeleteRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/CalendarGroupsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/CalendarGroupsRequestBuilder.cs new file mode 100644 index 00000000000..8291762c75a --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/CalendarGroupsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.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.Calendar.Client.Users.Item.CalendarGroups +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarGroupsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.users.item.calendarGroups.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.CalendarGroupItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("calendarGroup%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.CalendarGroupItemRequestBuilder(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 CalendarGroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups{?%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 CalendarGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The user's calendar groups. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to calendarGroups for users + /// + /// 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.Calendar.Client.Models.CalendarGroup body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The user's calendar groups. 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; + } + /// + /// Create new navigation property to calendarGroups for users + /// + /// 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.Calendar.Client.Models.CalendarGroup body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup 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.Calendar.Client.Users.Item.CalendarGroups.CalendarGroupsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.CalendarGroupsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The user's calendar groups. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarGroupsRequestBuilderGetQueryParameters + { + /// 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 CalendarGroupsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarGroupsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..2d2bf2594b5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Count +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\$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}/calendarGroups/$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}/calendarGroups/$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.Calendar.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.Calendar.Client.Users.Item.CalendarGroups.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.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/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/CalendarGroupItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/CalendarGroupItemRequestBuilder.cs new file mode 100644 index 00000000000..7704e039d0f --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/CalendarGroupItemRequestBuilder.cs @@ -0,0 +1,235 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarGroupItemRequestBuilder : BaseRequestBuilder + { + /// The calendars property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.CalendarsRequestBuilder Calendars + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.CalendarsRequestBuilder(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 CalendarGroupItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%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 CalendarGroupItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property calendarGroups for users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The user's calendar groups. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property calendarGroups in users + /// + /// 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.Calendar.Client.Models.CalendarGroup body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property calendarGroups for users + /// + /// A + /// Configuration 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 user's calendar groups. 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; + } + /// + /// Update the navigation property calendarGroups in users + /// + /// 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.Calendar.Client.Models.CalendarGroup body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup 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.Calendar.Client.Users.Item.CalendarGroups.Item.CalendarGroupItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.CalendarGroupItemRequestBuilder(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 CalendarGroupItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The user's calendar groups. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarGroupItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CalendarGroupItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarGroupItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.cs new file mode 100644 index 00000000000..a8eb1699073 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/CalendarsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Delta; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// The delta property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Delta.DeltaRequestBuilder Delta + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Delta.DeltaRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.users.item.calendarGroups.item.calendars.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("calendar%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarItemRequestBuilder(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 CalendarsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars{?%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 CalendarsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The calendars in the calendar group. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to calendars for users + /// + /// 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.Calendar.Client.Models.Calendar body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The calendars in the calendar group. Navigation property. 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; + } + /// + /// Create new navigation property to calendars for users + /// + /// 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.Calendar.Client.Models.Calendar body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.CalendarsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.CalendarsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The calendars in the calendar group. Navigation property. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarsRequestBuilderGetQueryParameters + { + /// 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 CalendarsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..5153a6b2ed1 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Count +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\$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}/calendarGroups/{calendarGroup%2Did}/calendars/$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}/calendarGroups/{calendarGroup%2Did}/calendars/$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.Calendar.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.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/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Delta/DeltaGetResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..07c4e4e73b2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseDeltaFunctionResponse, 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Delta.DeltaGetResponse(); + } + /// + /// 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.Calendar.Client.Models.Calendar.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/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..9121946be8d --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,189 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Delta +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\delta() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/delta(){?%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 DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. + /// 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 GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. + /// 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 GetAsDeltaGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Delta.DeltaRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// 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 DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Delta/DeltaResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..acfceac17ac --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Delta/DeltaResponse.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Delta +{ + [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Delta.DeltaGetResponse, 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Delta.DeltaResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs new file mode 100644 index 00000000000..f64f36a8af0 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AllowedCalendarSharingRolesWithUserGetResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse(); + } + /// + /// 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.GetCollectionOfEnumValues()?.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.WriteCollectionOfEnumValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs new file mode 100644 index 00000000000..cd2611d4931 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs @@ -0,0 +1,157 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\allowedCalendarSharingRoles(User='{User}') + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllowedCalendarSharingRolesWithUserRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AllowedCalendarSharingRolesWithUserRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/allowedCalendarSharingRoles(User='{User}'){?%24count,%24filter,%24search,%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 AllowedCalendarSharingRolesWithUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/allowedCalendarSharingRoles(User='{User}'){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl) + { + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + /// A + /// Cancellation token to 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 GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllowedCalendarSharingRolesWithUserRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || 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 + /// 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 AllowedCalendarSharingRolesWithUserRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs new file mode 100644 index 00000000000..31b1512bf9a --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser +{ + [Obsolete("This class is obsolete. Use AllowedCalendarSharingRolesWithUserGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AllowedCalendarSharingRolesWithUserResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse, 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarItemRequestBuilder.cs new file mode 100644 index 00000000000..02f782fef53 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarItemRequestBuilder.cs @@ -0,0 +1,268 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarPermissions; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.PermanentDelete; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarItemRequestBuilder : BaseRequestBuilder + { + /// The calendarPermissions property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarPermissions.CalendarPermissionsRequestBuilder CalendarPermissions + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarPermissions.CalendarPermissionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The calendarView property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.CalendarViewRequestBuilder CalendarView + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.CalendarViewRequestBuilder(PathParameters, RequestAdapter); + } + /// The events property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.EventsRequestBuilder Events + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.EventsRequestBuilder(PathParameters, RequestAdapter); + } + /// The getSchedule property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetScheduleRequestBuilder GetSchedule + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetScheduleRequestBuilder(PathParameters, RequestAdapter); + } + /// The permanentDelete property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.PermanentDelete.PermanentDeleteRequestBuilder PermanentDelete + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.PermanentDelete.PermanentDeleteRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\allowedCalendarSharingRoles(User='{User}') + /// + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder AllowedCalendarSharingRolesWithUser() + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder(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 CalendarItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%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 CalendarItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property calendars for users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The calendars in the calendar group. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property calendars in users + /// + /// 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.Calendar.Client.Models.Calendar body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property calendars for users + /// + /// A + /// Configuration 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 calendars in the calendar group. Navigation property. 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; + } + /// + /// Update the navigation property calendars in users + /// + /// 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.Calendar.Client.Models.Calendar body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarItemRequestBuilder(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 CalendarItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The calendars in the calendar group. Navigation property. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CalendarItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs new file mode 100644 index 00000000000..bd28ea72cd3 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarPermissions.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarPermissions.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarPermissions +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\calendarPermissions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarPermissions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarPermissions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.users.item.calendarGroups.item.calendars.item.calendarPermissions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarPermissions.Item.CalendarPermissionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("calendarPermission%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarPermissions.Item.CalendarPermissionItemRequestBuilder(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 CalendarPermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarPermissions{?%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 CalendarPermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarPermissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The permissions of the users with whom the calendar is shared. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermissionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to calendarPermissions for users + /// + /// 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.Calendar.Client.Models.CalendarPermission body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The permissions of the users with whom the calendar is shared. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 calendarPermissions for users + /// + /// 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.Calendar.Client.Models.CalendarPermission body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarPermissions.CalendarPermissionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarPermissions.CalendarPermissionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The permissions of the users with whom the calendar is shared. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionsRequestBuilderGetQueryParameters + { + /// 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 CalendarPermissionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..a021227bf72 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarPermissions.Count +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\calendarPermissions\$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}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarPermissions/$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}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarPermissions/$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.Calendar.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarPermissions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarPermissions.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/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs new file mode 100644 index 00000000000..e7464b0f94c --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarPermissions.Item +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\calendarPermissions\{calendarPermission-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CalendarPermissionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarPermissions/{calendarPermission%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 CalendarPermissionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarPermissions/{calendarPermission%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property calendarPermissions for users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The permissions of the users with whom the calendar is shared. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property calendarPermissions in users + /// + /// 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.Calendar.Client.Models.CalendarPermission body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property calendarPermissions for users + /// + /// A + /// Configuration 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 permissions of the users with whom the calendar is shared. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 calendarPermissions in users + /// + /// 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.Calendar.Client.Models.CalendarPermission body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarPermissions.Item.CalendarPermissionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarPermissions.Item.CalendarPermissionItemRequestBuilder(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 CalendarPermissionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The permissions of the users with whom the calendar is shared. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CalendarPermissionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs new file mode 100644 index 00000000000..e61c8b8b91b --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs @@ -0,0 +1,190 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Delta; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\calendarView + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarViewRequestBuilder : BaseRequestBuilder + { + /// The delta property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Delta.DeltaRequestBuilder Delta + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Delta.DeltaRequestBuilder(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 CalendarViewRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 CalendarViewRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The calendar view for the calendar. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The calendar view for the calendar. Navigation property. 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.CalendarViewRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.CalendarViewRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The calendar view for the calendar. Navigation property. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarViewRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T19:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 CalendarViewRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..acd354fc834 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseDeltaFunctionResponse, 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Delta.DeltaGetResponse(); + } + /// + /// 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.Calendar.Client.Models.Event.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/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..f5be26f2961 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,209 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Delta +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\calendarView\delta() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Delta.DeltaRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..64cd32ff123 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Delta +{ + [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Delta.DeltaGetResponse, 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Delta.DeltaResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..34d8da45c54 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Count +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events\$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}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/$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}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/$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.Calendar.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.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/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..8d37680db9c --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseDeltaFunctionResponse, 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Delta.DeltaGetResponse(); + } + /// + /// 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.Calendar.Client.Models.Event.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/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..65669fa7fdf --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,209 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Delta +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events\delta() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Delta.DeltaRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..254dcdc7188 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Delta/DeltaResponse.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Delta +{ + [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Delta.DeltaGetResponse, 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Delta.DeltaResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.cs new file mode 100644 index 00000000000..9c15d430389 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/EventsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Delta; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// The delta property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Delta.DeltaRequestBuilder Delta + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Delta.DeltaRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.users.item.calendarGroups.item.calendars.item.events.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.EventItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("event%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.EventItemRequestBuilder(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 EventsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events{?%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 EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The events in the calendar. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to events for users + /// + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The events in the calendar. Navigation property. 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 events for users + /// + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.EventsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.EventsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The events in the calendar. Navigation property. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilderGetQueryParameters + { + /// 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 EventsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs new file mode 100644 index 00000000000..2f91738e359 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Accept +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AcceptPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The SendResponse property + public bool? SendResponse { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public AcceptPostRequestBody() + { + AdditionalData = new Dictionary(); + SendResponse = false; + } + /// + /// 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Accept.AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Accept.AcceptPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteBoolValue("SendResponse", SendResponse); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs new file mode 100644 index 00000000000..3a8db2d4f10 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Accept +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events\{event-id}\accept + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AcceptRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/accept", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/accept", rawUrl) + { + } + /// + /// Accept the specified event in a user calendar. + /// 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Accept.AcceptPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Accept.AcceptPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Accept the specified event in a user calendar. + /// + /// 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Accept.AcceptPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Accept.AcceptPostRequestBody 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Accept.AcceptRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Accept.AcceptRequestBuilder(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 AcceptRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs new file mode 100644 index 00000000000..31e13e1b11c --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events\{event-id}\attachments + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// The createUploadSession property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder CreateUploadSession + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.users.item.calendarGroups.item.calendars.item.events.item.attachments.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.Item.AttachmentItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("attachment%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.Item.AttachmentItemRequestBuilder(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 AttachmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments{?%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 AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to attachments for users + /// + /// 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.Calendar.Client.Models.Attachment body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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; + } + /// + /// Create new navigation property to attachments for users + /// + /// 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.Calendar.Client.Models.Attachment body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.AttachmentsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.AttachmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderGetQueryParameters + { + /// 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 AttachmentsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..a8d5b0c41f9 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.Count +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events\{event-id}\attachments\$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}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/$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}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/$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.Calendar.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.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/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs new file mode 100644 index 00000000000..b0acc7bb0d9 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -0,0 +1,66 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CreateUploadSessionPostRequestBody : 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 AttachmentItem property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem? AttachmentItem { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem AttachmentItem { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CreateUploadSessionPostRequestBody() + { + 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem.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("AttachmentItem", AttachmentItem); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs new file mode 100644 index 00000000000..06d7ec0691d --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -0,0 +1,104 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events\{event-id}\attachments\createUploadSession + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateUploadSessionRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CreateUploadSessionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/createUploadSession", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/createUploadSession", rawUrl) + { + } + /// + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// + /// 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(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 CreateUploadSessionRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs new file mode 100644 index 00000000000..7adb1b523ae --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -0,0 +1,174 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.Item +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events\{event-id}\attachments\{attachment-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AttachmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/{attachment%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 AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/{attachment%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property attachments for users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property attachments for users + /// + /// A + /// Configuration 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 collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.Item.AttachmentItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.Item.AttachmentItemRequestBuilder(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 AttachmentItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 AttachmentItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs new file mode 100644 index 00000000000..6f3f6950b8e --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Calendar +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events\{event-id}\calendar + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CalendarRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/calendar{?%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 CalendarRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/calendar{?%24expand,%24select}", rawUrl) + { + } + /// + /// The calendar that contains the event. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The calendar that contains the event. Navigation property. 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Calendar.CalendarRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Calendar.CalendarRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The calendar that contains the event. Navigation property. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CalendarRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs new file mode 100644 index 00000000000..46490ae2a02 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Cancel +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CancelPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CancelPostRequestBody() + { + 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Cancel.CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Cancel.CancelPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = 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("Comment", Comment); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs new file mode 100644 index 00000000000..feedf0a3f44 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Cancel +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events\{event-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}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%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}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/cancel", rawUrl) + { + } + /// + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Cancel.CancelPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Cancel.CancelPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// + /// 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Cancel.CancelPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Cancel.CancelPostRequestBody 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Cancel.CancelRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.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/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs new file mode 100644 index 00000000000..c05536fde72 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs @@ -0,0 +1,81 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Decline +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeclinePostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The ProposedNewTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot? ProposedNewTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot ProposedNewTime { get; set; } +#endif + /// The SendResponse property + public bool? SendResponse { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public DeclinePostRequestBody() + { + AdditionalData = new Dictionary(); + SendResponse = false; + } + /// + /// 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Decline.DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Decline.DeclinePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot.CreateFromDiscriminatorValue); } }, + { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteBoolValue("SendResponse", SendResponse); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs new file mode 100644 index 00000000000..9c3d01e234e --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Decline +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events\{event-id}\decline + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeclineRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeclineRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/decline", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/decline", rawUrl) + { + } + /// + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Decline.DeclinePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Decline.DeclinePostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// + /// 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Decline.DeclinePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Decline.DeclinePostRequestBody 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Decline.DeclineRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Decline.DeclineRequestBuilder(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 DeclineRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs new file mode 100644 index 00000000000..65989f633cd --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.DismissReminder +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events\{event-id}\dismissReminder + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DismissReminderRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DismissReminderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/dismissReminder", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/dismissReminder", rawUrl) + { + } + /// + /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// + /// A + /// Configuration 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.DismissReminder.DismissReminderRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.DismissReminder.DismissReminderRequestBuilder(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 DismissReminderRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs new file mode 100644 index 00000000000..5045da35274 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs @@ -0,0 +1,301 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Accept; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Calendar; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Cancel; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Decline; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.DismissReminder; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Extensions; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Forward; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.PermanentDelete; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.SnoozeReminder; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.TentativelyAccept; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events\{event-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilder : BaseRequestBuilder + { + /// The accept property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Accept.AcceptRequestBuilder Accept + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Accept.AcceptRequestBuilder(PathParameters, RequestAdapter); + } + /// The attachments property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.AttachmentsRequestBuilder Attachments + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.AttachmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// The calendar property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Calendar.CalendarRequestBuilder Calendar + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Calendar.CalendarRequestBuilder(PathParameters, RequestAdapter); + } + /// The cancel property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Cancel.CancelRequestBuilder Cancel + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Cancel.CancelRequestBuilder(PathParameters, RequestAdapter); + } + /// The decline property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Decline.DeclineRequestBuilder Decline + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Decline.DeclineRequestBuilder(PathParameters, RequestAdapter); + } + /// The dismissReminder property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.DismissReminder.DismissReminderRequestBuilder DismissReminder + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.DismissReminder.DismissReminderRequestBuilder(PathParameters, RequestAdapter); + } + /// The extensions property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Extensions.ExtensionsRequestBuilder Extensions + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Extensions.ExtensionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The forward property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Forward.ForwardRequestBuilder Forward + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Forward.ForwardRequestBuilder(PathParameters, RequestAdapter); + } + /// The instances property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.InstancesRequestBuilder Instances + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.InstancesRequestBuilder(PathParameters, RequestAdapter); + } + /// The permanentDelete property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder PermanentDelete + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder(PathParameters, RequestAdapter); + } + /// The snoozeReminder property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder SnoozeReminder + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder(PathParameters, RequestAdapter); + } + /// The tentativelyAccept property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder TentativelyAccept + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder(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 EventItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%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 EventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property events for users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The events in the calendar. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property events in users + /// + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property events for users + /// + /// A + /// Configuration 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 events in the calendar. Navigation property. 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 events in users + /// + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.EventItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.EventItemRequestBuilder(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 EventItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The events in the calendar. Navigation property. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 EventItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..3c91eaeecd0 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Extensions.Count +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events\{event-id}\extensions\$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}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/extensions/$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}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/extensions/$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.Calendar.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Extensions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Extensions.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/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs new file mode 100644 index 00000000000..dfb97d2a2e9 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Extensions.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Extensions.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Extensions +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events\{event-id}\extensions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Extensions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Extensions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.users.item.calendarGroups.item.calendars.item.events.item.extensions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Extensions.Item.ExtensionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("extension%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Extensions.Item.ExtensionItemRequestBuilder(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 ExtensionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/extensions{?%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 ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The collection of open extensions defined for the event. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to extensions for users + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of open extensions defined for the event. 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; + } + /// + /// Create new navigation property to extensions for users + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Extensions.ExtensionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Extensions.ExtensionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of open extensions defined for the event. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderGetQueryParameters + { + /// 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 ExtensionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs new file mode 100644 index 00000000000..624657014e8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Extensions.Item +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events\{event-id}\extensions\{extension-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExtensionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/extensions/{extension%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 ExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/extensions/{extension%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property extensions for users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of open extensions defined for the event. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property extensions in users + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property extensions for users + /// + /// A + /// Configuration 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 collection of open extensions defined for the event. 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; + } + /// + /// Update the navigation property extensions in users + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Extensions.Item.ExtensionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Extensions.Item.ExtensionItemRequestBuilder(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 ExtensionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The collection of open extensions defined for the event. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 ExtensionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs new file mode 100644 index 00000000000..2f8bd9afa87 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs @@ -0,0 +1,76 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Forward +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ForwardPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The ToRecipients property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ToRecipients { get; set; } +#nullable restore +#else + public List ToRecipients { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ForwardPostRequestBody() + { + 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Forward.ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Forward.ForwardPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs new file mode 100644 index 00000000000..bcb3170a797 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Forward +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events\{event-id}\forward + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ForwardRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ForwardRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/forward", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/forward", rawUrl) + { + } + /// + /// This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Forward.ForwardPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// + /// 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Forward.ForwardPostRequestBody 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Forward.ForwardRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Forward.ForwardRequestBuilder(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 ForwardRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..a76fa742eb5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseDeltaFunctionResponse, 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaGetResponse(); + } + /// + /// 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.Calendar.Client.Models.Event.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/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..9253c6c7cd8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,209 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events\{event-id}\instances\delta() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..1bdaf66ad6c --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta +{ + [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaGetResponse, 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs new file mode 100644 index 00000000000..4d4c74d1206 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs @@ -0,0 +1,190 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events\{event-id}\instances + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilder : BaseRequestBuilder + { + /// The delta property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaRequestBuilder Delta + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaRequestBuilder(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 InstancesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.InstancesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.InstancesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T19:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs new file mode 100644 index 00000000000..73c0e7edb5a --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.PermanentDelete +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events\{event-id}\permanentDelete + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermanentDeleteRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/permanentDelete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/permanentDelete", rawUrl) + { + } + /// + /// Permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. + /// + /// A + /// Configuration 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder(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 PermanentDeleteRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs new file mode 100644 index 00000000000..3c37e804b03 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -0,0 +1,66 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.SnoozeReminder +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class SnoozeReminderPostRequestBody : 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 NewReminderTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? NewReminderTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone NewReminderTime { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public SnoozeReminderPostRequestBody() + { + 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone.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("NewReminderTime", NewReminderTime); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs new file mode 100644 index 00000000000..f850bb9c9de --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.SnoozeReminder +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events\{event-id}\snoozeReminder + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SnoozeReminderRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SnoozeReminderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/snoozeReminder", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/snoozeReminder", rawUrl) + { + } + /// + /// Postpone a reminder for an event in a user calendar until a new time. + /// 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Postpone a reminder for an event in a user calendar until a new time. + /// + /// 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder(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 SnoozeReminderRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs new file mode 100644 index 00000000000..7e9cd2fc1a9 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -0,0 +1,81 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.TentativelyAccept +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class TentativelyAcceptPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The ProposedNewTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot? ProposedNewTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot ProposedNewTime { get; set; } +#endif + /// The SendResponse property + public bool? SendResponse { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public TentativelyAcceptPostRequestBody() + { + AdditionalData = new Dictionary(); + SendResponse = false; + } + /// + /// 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot.CreateFromDiscriminatorValue); } }, + { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteBoolValue("SendResponse", SendResponse); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs new file mode 100644 index 00000000000..42a24db32bc --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.TentativelyAccept +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\events\{event-id}\tentativelyAccept + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TentativelyAcceptRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TentativelyAcceptRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/tentativelyAccept", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/tentativelyAccept", rawUrl) + { + } + /// + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// + /// 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder(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 TentativelyAcceptRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs new file mode 100644 index 00000000000..f323ad4eba8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs @@ -0,0 +1,90 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class GetSchedulePostRequestBody : 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 AvailabilityViewInterval property + public int? AvailabilityViewInterval { get; set; } + /// The EndTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? EndTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone EndTime { get; set; } +#endif + /// The Schedules property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Schedules { get; set; } +#nullable restore +#else + public List Schedules { get; set; } +#endif + /// The StartTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? StartTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone StartTime { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public GetSchedulePostRequestBody() + { + 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetSchedulePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetSchedulePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "AvailabilityViewInterval", n => { AvailabilityViewInterval = n.GetIntValue(); } }, + { "EndTime", n => { EndTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "Schedules", n => { Schedules = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "StartTime", n => { StartTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone.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.WriteIntValue("AvailabilityViewInterval", AvailabilityViewInterval); + writer.WriteObjectValue("EndTime", EndTime); + writer.WriteCollectionOfPrimitiveValues("Schedules", Schedules); + writer.WriteObjectValue("StartTime", StartTime); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs new file mode 100644 index 00000000000..6d796b311ad --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class GetSchedulePostResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetSchedulePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetSchedulePostResponse(); + } + /// + /// 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.Calendar.Client.Models.ScheduleInformation.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/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs new file mode 100644 index 00000000000..ea4748d900e --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\getSchedule + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetScheduleRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetScheduleRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/getSchedule", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetScheduleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/getSchedule", rawUrl) + { + } + /// + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// 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 PostAsGetSchedulePostResponseAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetSchedulePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsGetSchedulePostResponseAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetSchedulePostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetSchedulePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// 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 + [Obsolete("This method is obsolete. Use PostAsGetSchedulePostResponseAsync instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetSchedulePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetSchedulePostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetScheduleResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// + /// 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetSchedulePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetSchedulePostRequestBody 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetScheduleRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetScheduleRequestBuilder(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 GetScheduleRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs new file mode 100644 index 00000000000..9058e913ab4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/GetSchedule/GetScheduleResponse.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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule +{ + [Obsolete("This class is obsolete. Use GetSchedulePostResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class GetScheduleResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetSchedulePostResponse, 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetScheduleResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetScheduleResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs new file mode 100644 index 00000000000..feaabb458d2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs @@ -0,0 +1,96 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.PermanentDelete +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarGroups\{calendarGroup-id}\calendars\{calendar-id}\permanentDelete + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermanentDeleteRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/permanentDelete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/permanentDelete", rawUrl) + { + } + /// + /// Invoke action permanentDelete + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke action permanentDelete + /// + /// A + /// Configuration 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.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.PermanentDelete.PermanentDeleteRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.PermanentDelete.PermanentDeleteRequestBuilder(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 PermanentDeleteRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarView/CalendarViewRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarView/CalendarViewRequestBuilder.cs new file mode 100644 index 00000000000..befc852c233 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarView/CalendarViewRequestBuilder.cs @@ -0,0 +1,190 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarView.Delta; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarView +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarView + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarViewRequestBuilder : BaseRequestBuilder + { + /// The delta property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarView.Delta.DeltaRequestBuilder Delta + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarView.Delta.DeltaRequestBuilder(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 CalendarViewRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 CalendarViewRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The calendar view for the calendar. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The calendar view for the calendar. 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.Calendar.Client.Users.Item.CalendarView.CalendarViewRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarView.CalendarViewRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The calendar view for the calendar. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarViewRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T19:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 CalendarViewRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarView/Delta/DeltaGetResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarView/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..3d9318bd17a --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarView/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.CalendarView.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseDeltaFunctionResponse, 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.Calendar.Client.Users.Item.CalendarView.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarView.Delta.DeltaGetResponse(); + } + /// + /// 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.Calendar.Client.Models.Event.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/Calendar/wrapper/beta/Client/Users/Item/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarView/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..fdcd61ff19b --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarView/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,209 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarView.Delta +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendarView\delta() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarView/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarView.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarView.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Users.Item.CalendarView.Delta.DeltaRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarView.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarView/Delta/DeltaResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarView/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..d3470822383 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarView/Delta/DeltaResponse.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.Calendar.Client.Users.Item.CalendarView.Delta +{ + [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarView.Delta.DeltaGetResponse, 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.Calendar.Client.Users.Item.CalendarView.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarView.Delta.DeltaResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/CalendarsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/CalendarsRequestBuilder.cs new file mode 100644 index 00000000000..add4905975d --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/CalendarsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Delta; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.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.Calendar.Client.Users.Item.Calendars +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// The delta property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Delta.DeltaRequestBuilder Delta + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Delta.DeltaRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.users.item.calendars.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("calendar%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarItemRequestBuilder(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 CalendarsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars{?%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 CalendarsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The user's calendars. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to calendars for users + /// + /// 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.Calendar.Client.Models.Calendar body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The user's calendars. 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; + } + /// + /// Create new navigation property to calendars for users + /// + /// 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.Calendar.Client.Models.Calendar body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar 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.Calendar.Client.Users.Item.Calendars.CalendarsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.CalendarsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The user's calendars. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarsRequestBuilderGetQueryParameters + { + /// 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 CalendarsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..3b7f675109f --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Count +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\$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}/calendars/$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}/calendars/$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.Calendar.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.Calendar.Client.Users.Item.Calendars.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.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/Calendar/wrapper/beta/Client/Users/Item/Calendars/Delta/DeltaGetResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..1bb4d1bef48 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendars.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseDeltaFunctionResponse, 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.Calendar.Client.Users.Item.Calendars.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Delta.DeltaGetResponse(); + } + /// + /// 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.Calendar.Client.Models.Calendar.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/Calendar/wrapper/beta/Client/Users/Item/Calendars/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..a594f2af534 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,189 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Delta +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\delta() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/delta(){?%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 DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/delta(){?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. + /// 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 GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. + /// 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 GetAsDeltaGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Users.Item.Calendars.Delta.DeltaRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// 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 DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Delta/DeltaResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..57270594e7e --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Delta/DeltaResponse.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.Calendar.Client.Users.Item.Calendars.Delta +{ + [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Delta.DeltaGetResponse, 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.Calendar.Client.Users.Item.Calendars.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Delta.DeltaResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs new file mode 100644 index 00000000000..261d43a8055 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AllowedCalendarSharingRolesWithUserGetResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse(); + } + /// + /// 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.GetCollectionOfEnumValues()?.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.WriteCollectionOfEnumValues("value", Value); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs new file mode 100644 index 00000000000..8972eb5adce --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserRequestBuilder.cs @@ -0,0 +1,157 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\allowedCalendarSharingRoles(User='{User}') + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllowedCalendarSharingRolesWithUserRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AllowedCalendarSharingRolesWithUserRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/allowedCalendarSharingRoles(User='{User}'){?%24count,%24filter,%24search,%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 AllowedCalendarSharingRolesWithUserRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/allowedCalendarSharingRoles(User='{User}'){?%24count,%24filter,%24search,%24skip,%24top}", rawUrl) + { + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + /// A + /// Cancellation token to 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 GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Users.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Invoke function allowedCalendarSharingRoles + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AllowedCalendarSharingRolesWithUserRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || 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 + /// 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 AllowedCalendarSharingRolesWithUserRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.cs new file mode 100644 index 00000000000..a37c50eedba --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/AllowedCalendarSharingRolesWithUser/AllowedCalendarSharingRolesWithUserResponse.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.Calendar.Client.Users.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser +{ + [Obsolete("This class is obsolete. Use AllowedCalendarSharingRolesWithUserGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AllowedCalendarSharingRolesWithUserResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse, 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.Calendar.Client.Users.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarItemRequestBuilder.cs new file mode 100644 index 00000000000..14fd54ed8e5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarItemRequestBuilder.cs @@ -0,0 +1,268 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarPermissions; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarView; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.GetSchedule; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.PermanentDelete; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarItemRequestBuilder : BaseRequestBuilder + { + /// The calendarPermissions property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarPermissions.CalendarPermissionsRequestBuilder CalendarPermissions + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarPermissions.CalendarPermissionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The calendarView property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarView.CalendarViewRequestBuilder CalendarView + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarView.CalendarViewRequestBuilder(PathParameters, RequestAdapter); + } + /// The events property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.EventsRequestBuilder Events + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.EventsRequestBuilder(PathParameters, RequestAdapter); + } + /// The getSchedule property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.GetSchedule.GetScheduleRequestBuilder GetSchedule + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.GetSchedule.GetScheduleRequestBuilder(PathParameters, RequestAdapter); + } + /// The permanentDelete property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.PermanentDelete.PermanentDeleteRequestBuilder PermanentDelete + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.PermanentDelete.PermanentDeleteRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\allowedCalendarSharingRoles(User='{User}') + /// + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder AllowedCalendarSharingRolesWithUser() + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder(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 CalendarItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%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 CalendarItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property calendars for users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The user's calendars. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property calendars in users + /// + /// 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.Calendar.Client.Models.Calendar body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property calendars for users + /// + /// A + /// Configuration 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 user's calendars. 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; + } + /// + /// Update the navigation property calendars in users + /// + /// 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.Calendar.Client.Models.Calendar body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar 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.Calendar.Client.Users.Item.Calendars.Item.CalendarItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarItemRequestBuilder(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 CalendarItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The user's calendars. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CalendarItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs new file mode 100644 index 00000000000..8b8dfe41aeb --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarPermissions/CalendarPermissionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarPermissions.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarPermissions.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.Calendar.Client.Users.Item.Calendars.Item.CalendarPermissions +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\calendarPermissions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarPermissions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarPermissions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.users.item.calendars.item.calendarPermissions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarPermissions.Item.CalendarPermissionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("calendarPermission%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarPermissions.Item.CalendarPermissionItemRequestBuilder(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 CalendarPermissionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarPermissions{?%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 CalendarPermissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarPermissions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The permissions of the users with whom the calendar is shared. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermissionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to calendarPermissions for users + /// + /// 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.Calendar.Client.Models.CalendarPermission body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The permissions of the users with whom the calendar is shared. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 calendarPermissions for users + /// + /// 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.Calendar.Client.Models.CalendarPermission body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission 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.Calendar.Client.Users.Item.Calendars.Item.CalendarPermissions.CalendarPermissionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarPermissions.CalendarPermissionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The permissions of the users with whom the calendar is shared. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionsRequestBuilderGetQueryParameters + { + /// 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 CalendarPermissionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..445f494594a --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarPermissions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarPermissions.Count +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\calendarPermissions\$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}/calendars/{calendar%2Did}/calendarPermissions/$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}/calendars/{calendar%2Did}/calendarPermissions/$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.Calendar.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.Calendar.Client.Users.Item.Calendars.Item.CalendarPermissions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarPermissions.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/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs new file mode 100644 index 00000000000..31dbbb66908 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarPermissions/Item/CalendarPermissionItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarPermissions.Item +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\calendarPermissions\{calendarPermission-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CalendarPermissionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarPermissions/{calendarPermission%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 CalendarPermissionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarPermissions/{calendarPermission%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property calendarPermissions for users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The permissions of the users with whom the calendar is shared. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property calendarPermissions in users + /// + /// 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.Calendar.Client.Models.CalendarPermission body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property calendarPermissions for users + /// + /// A + /// Configuration 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 permissions of the users with whom the calendar is shared. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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 calendarPermissions in users + /// + /// 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.Calendar.Client.Models.CalendarPermission body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission 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.Calendar.Client.Users.Item.Calendars.Item.CalendarPermissions.Item.CalendarPermissionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarPermissions.Item.CalendarPermissionItemRequestBuilder(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 CalendarPermissionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The permissions of the users with whom the calendar is shared. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CalendarPermissionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarPermissionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs new file mode 100644 index 00000000000..c837e9841f4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs @@ -0,0 +1,190 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarView.Delta; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarView +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\calendarView + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarViewRequestBuilder : BaseRequestBuilder + { + /// The delta property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarView.Delta.DeltaRequestBuilder Delta + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarView.Delta.DeltaRequestBuilder(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 CalendarViewRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 CalendarViewRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The calendar view for the calendar. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The calendar view for the calendar. Navigation property. 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.Calendar.Client.Users.Item.Calendars.Item.CalendarView.CalendarViewRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarView.CalendarViewRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The calendar view for the calendar. Navigation property. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarViewRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T19:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 CalendarViewRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..cf080a06db5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarView/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendars.Item.CalendarView.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseDeltaFunctionResponse, 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.Calendar.Client.Users.Item.Calendars.Item.CalendarView.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarView.Delta.DeltaGetResponse(); + } + /// + /// 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.Calendar.Client.Models.Event.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/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..99c6b68d1cf --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarView/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,209 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarView.Delta +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\calendarView\delta() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/calendarView/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarView.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarView.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Users.Item.Calendars.Item.CalendarView.Delta.DeltaRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarView.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..4da94618e97 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/CalendarView/Delta/DeltaResponse.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.Calendar.Client.Users.Item.Calendars.Item.CalendarView.Delta +{ + [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarView.Delta.DeltaGetResponse, 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.Calendar.Client.Users.Item.Calendars.Item.CalendarView.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarView.Delta.DeltaResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..ffa258bd4ef --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Count +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events\$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}/calendars/{calendar%2Did}/events/$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}/calendars/{calendar%2Did}/events/$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.Calendar.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.Calendar.Client.Users.Item.Calendars.Item.Events.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.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/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..9bbef0abed7 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendars.Item.Events.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseDeltaFunctionResponse, 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.Calendar.Client.Users.Item.Calendars.Item.Events.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Delta.DeltaGetResponse(); + } + /// + /// 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.Calendar.Client.Models.Event.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/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..ee589ee4ea4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,209 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Delta +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events\delta() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Users.Item.Calendars.Item.Events.Delta.DeltaRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Delta/DeltaResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..e97c3d982d2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Delta/DeltaResponse.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.Calendar.Client.Users.Item.Calendars.Item.Events.Delta +{ + [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Delta.DeltaGetResponse, 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.Calendar.Client.Users.Item.Calendars.Item.Events.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Delta.DeltaResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/EventsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/EventsRequestBuilder.cs new file mode 100644 index 00000000000..c2ad5344b39 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/EventsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Delta; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.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.Calendar.Client.Users.Item.Calendars.Item.Events +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// The delta property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Delta.DeltaRequestBuilder Delta + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Delta.DeltaRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.users.item.calendars.item.events.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.EventItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("event%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.EventItemRequestBuilder(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 EventsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events{?%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 EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The events in the calendar. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to events for users + /// + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The events in the calendar. Navigation property. 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 events for users + /// + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Users.Item.Calendars.Item.Events.EventsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.EventsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The events in the calendar. Navigation property. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilderGetQueryParameters + { + /// 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 EventsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.cs new file mode 100644 index 00000000000..4fd5b28d031 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Accept/AcceptPostRequestBody.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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Accept +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AcceptPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The SendResponse property + public bool? SendResponse { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public AcceptPostRequestBody() + { + AdditionalData = new Dictionary(); + SendResponse = false; + } + /// + /// 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Accept.AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Accept.AcceptPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteBoolValue("SendResponse", SendResponse); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs new file mode 100644 index 00000000000..5852346e23f --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Accept/AcceptRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Accept +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events\{event-id}\accept + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AcceptRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/accept", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/accept", rawUrl) + { + } + /// + /// Accept the specified event in a user calendar. + /// 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Accept.AcceptPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Accept.AcceptPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Accept the specified event in a user calendar. + /// + /// 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Accept.AcceptPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Accept.AcceptPostRequestBody 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Accept.AcceptRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Accept.AcceptRequestBuilder(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 AcceptRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs new file mode 100644 index 00000000000..67dcd54b07d --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events\{event-id}\attachments + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// The createUploadSession property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder CreateUploadSession + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.users.item.calendars.item.events.item.attachments.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.Item.AttachmentItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("attachment%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.Item.AttachmentItemRequestBuilder(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 AttachmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments{?%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 AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to attachments for users + /// + /// 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.Calendar.Client.Models.Attachment body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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; + } + /// + /// Create new navigation property to attachments for users + /// + /// 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.Calendar.Client.Models.Attachment body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.AttachmentsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.AttachmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderGetQueryParameters + { + /// 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 AttachmentsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..f649c467482 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.Count +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events\{event-id}\attachments\$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}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/$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}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/$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.Calendar.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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.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/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs new file mode 100644 index 00000000000..8b91f59ebbd --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -0,0 +1,66 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CreateUploadSessionPostRequestBody : 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 AttachmentItem property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem? AttachmentItem { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem AttachmentItem { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CreateUploadSessionPostRequestBody() + { + 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem.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("AttachmentItem", AttachmentItem); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs new file mode 100644 index 00000000000..a6ca39594ca --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -0,0 +1,104 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events\{event-id}\attachments\createUploadSession + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateUploadSessionRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CreateUploadSessionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/createUploadSession", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/createUploadSession", rawUrl) + { + } + /// + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// + /// 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(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 CreateUploadSessionRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs new file mode 100644 index 00000000000..3e9609e59f7 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -0,0 +1,174 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.Item +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events\{event-id}\attachments\{attachment-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AttachmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/{attachment%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 AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/attachments/{attachment%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property attachments for users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property attachments for users + /// + /// A + /// Configuration 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 collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.Item.AttachmentItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.Item.AttachmentItemRequestBuilder(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 AttachmentItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 AttachmentItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs new file mode 100644 index 00000000000..b106dd5fd24 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Calendar/CalendarRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Calendar +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events\{event-id}\calendar + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CalendarRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/calendar{?%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 CalendarRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/calendar{?%24expand,%24select}", rawUrl) + { + } + /// + /// The calendar that contains the event. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The calendar that contains the event. Navigation property. 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Calendar.CalendarRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Calendar.CalendarRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The calendar that contains the event. Navigation property. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CalendarRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.cs new file mode 100644 index 00000000000..63b5f3ebb93 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Cancel/CancelPostRequestBody.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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Cancel +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CancelPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CancelPostRequestBody() + { + 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Cancel.CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Cancel.CancelPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = 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("Comment", Comment); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs new file mode 100644 index 00000000000..507e9330697 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Cancel/CancelRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Cancel +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events\{event-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}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%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}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/cancel", rawUrl) + { + } + /// + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Cancel.CancelPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Cancel.CancelPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// + /// 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Cancel.CancelPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Cancel.CancelPostRequestBody 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Cancel.CancelRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.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/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs new file mode 100644 index 00000000000..36d38dcda35 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Decline/DeclinePostRequestBody.cs @@ -0,0 +1,81 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Decline +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeclinePostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The ProposedNewTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot? ProposedNewTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot ProposedNewTime { get; set; } +#endif + /// The SendResponse property + public bool? SendResponse { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public DeclinePostRequestBody() + { + AdditionalData = new Dictionary(); + SendResponse = false; + } + /// + /// 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Decline.DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Decline.DeclinePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot.CreateFromDiscriminatorValue); } }, + { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteBoolValue("SendResponse", SendResponse); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs new file mode 100644 index 00000000000..f16555b2337 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Decline/DeclineRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Decline +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events\{event-id}\decline + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeclineRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeclineRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/decline", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/decline", rawUrl) + { + } + /// + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Decline.DeclinePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Decline.DeclinePostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// + /// 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Decline.DeclinePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Decline.DeclinePostRequestBody 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Decline.DeclineRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Decline.DeclineRequestBuilder(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 DeclineRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs new file mode 100644 index 00000000000..3a9eba8f6b9 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.DismissReminder +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events\{event-id}\dismissReminder + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DismissReminderRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DismissReminderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/dismissReminder", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/dismissReminder", rawUrl) + { + } + /// + /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// + /// A + /// Configuration 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.DismissReminder.DismissReminderRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.DismissReminder.DismissReminderRequestBuilder(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 DismissReminderRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs new file mode 100644 index 00000000000..a5c71fab96f --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/EventItemRequestBuilder.cs @@ -0,0 +1,301 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Accept; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Calendar; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Cancel; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Decline; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.DismissReminder; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Extensions; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Forward; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Instances; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.PermanentDelete; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.SnoozeReminder; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.TentativelyAccept; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events\{event-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilder : BaseRequestBuilder + { + /// The accept property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Accept.AcceptRequestBuilder Accept + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Accept.AcceptRequestBuilder(PathParameters, RequestAdapter); + } + /// The attachments property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.AttachmentsRequestBuilder Attachments + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Attachments.AttachmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// The calendar property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Calendar.CalendarRequestBuilder Calendar + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Calendar.CalendarRequestBuilder(PathParameters, RequestAdapter); + } + /// The cancel property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Cancel.CancelRequestBuilder Cancel + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Cancel.CancelRequestBuilder(PathParameters, RequestAdapter); + } + /// The decline property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Decline.DeclineRequestBuilder Decline + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Decline.DeclineRequestBuilder(PathParameters, RequestAdapter); + } + /// The dismissReminder property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.DismissReminder.DismissReminderRequestBuilder DismissReminder + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.DismissReminder.DismissReminderRequestBuilder(PathParameters, RequestAdapter); + } + /// The extensions property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Extensions.ExtensionsRequestBuilder Extensions + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Extensions.ExtensionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The forward property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Forward.ForwardRequestBuilder Forward + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Forward.ForwardRequestBuilder(PathParameters, RequestAdapter); + } + /// The instances property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Instances.InstancesRequestBuilder Instances + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Instances.InstancesRequestBuilder(PathParameters, RequestAdapter); + } + /// The permanentDelete property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder PermanentDelete + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder(PathParameters, RequestAdapter); + } + /// The snoozeReminder property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder SnoozeReminder + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder(PathParameters, RequestAdapter); + } + /// The tentativelyAccept property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder TentativelyAccept + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder(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 EventItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%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 EventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property events for users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The events in the calendar. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property events in users + /// + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property events for users + /// + /// A + /// Configuration 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 events in the calendar. Navigation property. 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 events in users + /// + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.EventItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.EventItemRequestBuilder(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 EventItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The events in the calendar. Navigation property. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 EventItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..25ec7d30329 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Extensions.Count +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events\{event-id}\extensions\$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}/calendars/{calendar%2Did}/events/{event%2Did}/extensions/$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}/calendars/{calendar%2Did}/events/{event%2Did}/extensions/$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.Calendar.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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Extensions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Extensions.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/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs new file mode 100644 index 00000000000..28ef20695be --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Extensions.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Extensions.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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Extensions +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events\{event-id}\extensions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Extensions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Extensions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.users.item.calendars.item.events.item.extensions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Extensions.Item.ExtensionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("extension%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Extensions.Item.ExtensionItemRequestBuilder(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 ExtensionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/extensions{?%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 ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The collection of open extensions defined for the event. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to extensions for users + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of open extensions defined for the event. 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; + } + /// + /// Create new navigation property to extensions for users + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Extensions.ExtensionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Extensions.ExtensionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of open extensions defined for the event. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderGetQueryParameters + { + /// 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 ExtensionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs new file mode 100644 index 00000000000..d2be4da2661 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Extensions.Item +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events\{event-id}\extensions\{extension-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExtensionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/extensions/{extension%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 ExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/extensions/{extension%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property extensions for users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of open extensions defined for the event. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property extensions in users + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property extensions for users + /// + /// A + /// Configuration 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 collection of open extensions defined for the event. 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; + } + /// + /// Update the navigation property extensions in users + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Extensions.Item.ExtensionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Extensions.Item.ExtensionItemRequestBuilder(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 ExtensionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The collection of open extensions defined for the event. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 ExtensionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs new file mode 100644 index 00000000000..3688fa0cba2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Forward/ForwardPostRequestBody.cs @@ -0,0 +1,76 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Forward +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ForwardPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The ToRecipients property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ToRecipients { get; set; } +#nullable restore +#else + public List ToRecipients { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ForwardPostRequestBody() + { + 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Forward.ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Forward.ForwardPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs new file mode 100644 index 00000000000..ad872dd92ff --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Forward/ForwardRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Forward +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events\{event-id}\forward + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ForwardRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ForwardRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/forward", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/forward", rawUrl) + { + } + /// + /// This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Forward.ForwardPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// + /// 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Forward.ForwardPostRequestBody 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Forward.ForwardRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Forward.ForwardRequestBuilder(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 ForwardRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..b76a233d531 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Instances.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseDeltaFunctionResponse, 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaGetResponse(); + } + /// + /// 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.Calendar.Client.Models.Event.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/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..caf1df01e32 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,209 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Instances.Delta +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events\{event-id}\instances\delta() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..9681720112c --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Instances/Delta/DeltaResponse.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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Instances.Delta +{ + [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaGetResponse, 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs new file mode 100644 index 00000000000..d0e772110f7 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/Instances/InstancesRequestBuilder.cs @@ -0,0 +1,190 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Instances.Delta; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Instances +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events\{event-id}\instances + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilder : BaseRequestBuilder + { + /// The delta property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaRequestBuilder Delta + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaRequestBuilder(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 InstancesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Instances.InstancesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.Instances.InstancesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T19:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs new file mode 100644 index 00000000000..3b33a01a910 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.PermanentDelete +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events\{event-id}\permanentDelete + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermanentDeleteRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/permanentDelete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/permanentDelete", rawUrl) + { + } + /// + /// Permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. + /// + /// A + /// Configuration 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder(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 PermanentDeleteRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs new file mode 100644 index 00000000000..fdb8c014d68 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -0,0 +1,66 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.SnoozeReminder +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class SnoozeReminderPostRequestBody : 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 NewReminderTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? NewReminderTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone NewReminderTime { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public SnoozeReminderPostRequestBody() + { + 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone.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("NewReminderTime", NewReminderTime); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs new file mode 100644 index 00000000000..17287da366a --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.SnoozeReminder +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events\{event-id}\snoozeReminder + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SnoozeReminderRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SnoozeReminderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/snoozeReminder", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/snoozeReminder", rawUrl) + { + } + /// + /// Postpone a reminder for an event in a user calendar until a new time. + /// 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Postpone a reminder for an event in a user calendar until a new time. + /// + /// 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder(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 SnoozeReminderRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs new file mode 100644 index 00000000000..137cee00dd9 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -0,0 +1,81 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.TentativelyAccept +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class TentativelyAcceptPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The ProposedNewTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot? ProposedNewTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot ProposedNewTime { get; set; } +#endif + /// The SendResponse property + public bool? SendResponse { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public TentativelyAcceptPostRequestBody() + { + AdditionalData = new Dictionary(); + SendResponse = false; + } + /// + /// 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot.CreateFromDiscriminatorValue); } }, + { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteBoolValue("SendResponse", SendResponse); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs new file mode 100644 index 00000000000..87be1acea7f --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.TentativelyAccept +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\events\{event-id}\tentativelyAccept + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TentativelyAcceptRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TentativelyAcceptRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/tentativelyAccept", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/events/{event%2Did}/tentativelyAccept", rawUrl) + { + } + /// + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// + /// 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody 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.Calendar.Client.Users.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder(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 TentativelyAcceptRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs new file mode 100644 index 00000000000..9af2c9f044a --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/GetSchedule/GetSchedulePostRequestBody.cs @@ -0,0 +1,90 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendars.Item.GetSchedule +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class GetSchedulePostRequestBody : 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 AvailabilityViewInterval property + public int? AvailabilityViewInterval { get; set; } + /// The EndTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? EndTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone EndTime { get; set; } +#endif + /// The Schedules property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Schedules { get; set; } +#nullable restore +#else + public List Schedules { get; set; } +#endif + /// The StartTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? StartTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone StartTime { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public GetSchedulePostRequestBody() + { + 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.Calendar.Client.Users.Item.Calendars.Item.GetSchedule.GetSchedulePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.GetSchedule.GetSchedulePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "AvailabilityViewInterval", n => { AvailabilityViewInterval = n.GetIntValue(); } }, + { "EndTime", n => { EndTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "Schedules", n => { Schedules = n.GetCollectionOfPrimitiveValues()?.AsList(); } }, + { "StartTime", n => { StartTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone.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.WriteIntValue("AvailabilityViewInterval", AvailabilityViewInterval); + writer.WriteObjectValue("EndTime", EndTime); + writer.WriteCollectionOfPrimitiveValues("Schedules", Schedules); + writer.WriteObjectValue("StartTime", StartTime); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs new file mode 100644 index 00000000000..bc01e6b9141 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/GetSchedule/GetSchedulePostResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendars.Item.GetSchedule +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class GetSchedulePostResponse : global::Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Calendars.Item.GetSchedule.GetSchedulePostResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.GetSchedule.GetSchedulePostResponse(); + } + /// + /// 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.Calendar.Client.Models.ScheduleInformation.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/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs new file mode 100644 index 00000000000..97df38bfe80 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/GetSchedule/GetScheduleRequestBuilder.cs @@ -0,0 +1,130 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.GetSchedule +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\getSchedule + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class GetScheduleRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GetScheduleRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/getSchedule", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GetScheduleRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/getSchedule", rawUrl) + { + } + /// + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// 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 PostAsGetSchedulePostResponseAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.GetSchedule.GetSchedulePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsGetSchedulePostResponseAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.GetSchedule.GetSchedulePostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.GetSchedule.GetSchedulePostResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// 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 + [Obsolete("This method is obsolete. Use PostAsGetSchedulePostResponseAsync instead.")] +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.GetSchedule.GetSchedulePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.GetSchedule.GetSchedulePostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.GetSchedule.GetScheduleResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get the free/busy availability information for a collection of users, distributions lists, or resources (rooms or equipment) for a specified time period. + /// + /// 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.Calendar.Client.Users.Item.Calendars.Item.GetSchedule.GetSchedulePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.GetSchedule.GetSchedulePostRequestBody 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.Calendar.Client.Users.Item.Calendars.Item.GetSchedule.GetScheduleRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.GetSchedule.GetScheduleRequestBuilder(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 GetScheduleRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/GetSchedule/GetScheduleResponse.cs new file mode 100644 index 00000000000..a3ae0b48324 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/GetSchedule/GetScheduleResponse.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.Calendar.Client.Users.Item.Calendars.Item.GetSchedule +{ + [Obsolete("This class is obsolete. Use GetSchedulePostResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class GetScheduleResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.GetSchedule.GetSchedulePostResponse, 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.Calendar.Client.Users.Item.Calendars.Item.GetSchedule.GetScheduleResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.GetSchedule.GetScheduleResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs new file mode 100644 index 00000000000..68de56ad094 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs @@ -0,0 +1,96 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.PermanentDelete +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\calendars\{calendar-id}\permanentDelete + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermanentDeleteRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/permanentDelete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendars/{calendar%2Did}/permanentDelete", rawUrl) + { + } + /// + /// Permanently delete a calendar folder and the events that it contains and remove them from the mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Permanently delete a calendar folder and the events that it contains and remove them from the mailbox. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. + /// + /// A + /// Configuration 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.Calendar.Client.Users.Item.Calendars.Item.PermanentDelete.PermanentDeleteRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.PermanentDelete.PermanentDeleteRequestBuilder(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 PermanentDeleteRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..71094096361 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Count +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events\$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}/events/$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}/events/$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.Calendar.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.Calendar.Client.Users.Item.Events.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.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/Calendar/wrapper/beta/Client/Users/Item/Events/Delta/DeltaGetResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..67f8a7565a8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Events.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseDeltaFunctionResponse, 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.Calendar.Client.Users.Item.Events.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Delta.DeltaGetResponse(); + } + /// + /// 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.Calendar.Client.Models.Event.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/Calendar/wrapper/beta/Client/Users/Item/Events/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..c512fd8bb58 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,209 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Delta +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events\delta() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Users.Item.Events.Delta.DeltaRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Delta/DeltaResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..f53ee66e5b6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Delta/DeltaResponse.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.Calendar.Client.Users.Item.Events.Delta +{ + [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Delta.DeltaGetResponse, 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.Calendar.Client.Users.Item.Events.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Delta.DeltaResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/EventsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/EventsRequestBuilder.cs new file mode 100644 index 00000000000..321f7d7dc5d --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/EventsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Delta; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.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.Calendar.Client.Users.Item.Events +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// The delta property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Delta.DeltaRequestBuilder Delta + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Delta.DeltaRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.users.item.events.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.EventItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("event%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.EventItemRequestBuilder(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 EventsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events{?%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 EventsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The user's events. The default is to show events under the Default Calendar. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to events for users + /// + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The user's events. The default is to show events under the Default Calendar. 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; + } + /// + /// Create new navigation property to events for users + /// + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Users.Item.Events.EventsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.EventsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The user's events. The default is to show events under the Default Calendar. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilderGetQueryParameters + { + /// 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 EventsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Accept/AcceptPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Accept/AcceptPostRequestBody.cs new file mode 100644 index 00000000000..ba4c636ffa4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Accept/AcceptPostRequestBody.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.Calendar.Client.Users.Item.Events.Item.Accept +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class AcceptPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The SendResponse property + public bool? SendResponse { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public AcceptPostRequestBody() + { + AdditionalData = new Dictionary(); + SendResponse = false; + } + /// + /// 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.Calendar.Client.Users.Item.Events.Item.Accept.AcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Accept.AcceptPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteBoolValue("SendResponse", SendResponse); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Accept/AcceptRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Accept/AcceptRequestBuilder.cs new file mode 100644 index 00000000000..4d25634b3b2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Accept/AcceptRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Accept +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events\{event-id}\accept + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AcceptRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AcceptRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/accept", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/accept", rawUrl) + { + } + /// + /// Accept the specified event in a user calendar. + /// 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.Calendar.Client.Users.Item.Events.Item.Accept.AcceptPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Accept.AcceptPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Accept the specified event in a user calendar. + /// + /// 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.Calendar.Client.Users.Item.Events.Item.Accept.AcceptPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Accept.AcceptPostRequestBody 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.Calendar.Client.Users.Item.Events.Item.Accept.AcceptRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Accept.AcceptRequestBuilder(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 AcceptRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs new file mode 100644 index 00000000000..f3cd1cc077c --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -0,0 +1,244 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.CreateUploadSession; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.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.Calendar.Client.Users.Item.Events.Item.Attachments +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events\{event-id}\attachments + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// The createUploadSession property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder CreateUploadSession + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.users.item.events.item.attachments.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.Item.AttachmentItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("attachment%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.Item.AttachmentItemRequestBuilder(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 AttachmentsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/attachments{?%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 AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to attachments for users + /// + /// 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.Calendar.Client.Models.Attachment body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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; + } + /// + /// Create new navigation property to attachments for users + /// + /// 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.Calendar.Client.Models.Attachment body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment 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.Calendar.Client.Users.Item.Events.Item.Attachments.AttachmentsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.AttachmentsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderGetQueryParameters + { + /// 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 AttachmentsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..7081239fda6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Attachments/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.Count +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events\{event-id}\attachments\$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}/events/{event%2Did}/attachments/$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}/events/{event%2Did}/attachments/$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.Calendar.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.Calendar.Client.Users.Item.Events.Item.Attachments.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.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/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs new file mode 100644 index 00000000000..1d0aeb905ae --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionPostRequestBody.cs @@ -0,0 +1,66 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Events.Item.Attachments.CreateUploadSession +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CreateUploadSessionPostRequestBody : 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 AttachmentItem property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem? AttachmentItem { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem AttachmentItem { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CreateUploadSessionPostRequestBody() + { + 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.Calendar.Client.Users.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "AttachmentItem", n => { AttachmentItem = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem.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("AttachmentItem", AttachmentItem); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs new file mode 100644 index 00000000000..0772db98ba7 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Attachments/CreateUploadSession/CreateUploadSessionRequestBuilder.cs @@ -0,0 +1,104 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.CreateUploadSession +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events\{event-id}\attachments\createUploadSession + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CreateUploadSessionRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CreateUploadSessionRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/attachments/createUploadSession", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CreateUploadSessionRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/attachments/createUploadSession", rawUrl) + { + } + /// + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// 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.Calendar.Client.Users.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.UploadSession.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create an upload session that allows an app to iteratively upload ranges of a file, so as to attach the file to an Outlook item. The item can be a message or event. Use this approach to attach a file if the file size is between 3 MB and 150 MB. To attach a file that's smaller than 3 MB, do a POST operation on the attachments navigation property of the Outlook item; see how to do this for a message or for an event. As part of the response, this action returns an upload URL that you can use in subsequent sequential PUT queries. Request headers for each PUT operation let you specify the exact range of bytes to be uploaded. This allows transfer to be resumed, in case the network connection is dropped during upload. The following are the steps to attach a file to an Outlook item using an upload session: See attach large files to Outlook messages or events for an example. + /// + /// 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.Calendar.Client.Users.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody 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.Calendar.Client.Users.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionRequestBuilder(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 CreateUploadSessionRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs new file mode 100644 index 00000000000..04508f14f9c --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -0,0 +1,174 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.Item +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events\{event-id}\attachments\{attachment-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AttachmentItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/attachments/{attachment%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 AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/attachments/{attachment%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property attachments for users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property attachments for users + /// + /// A + /// Configuration 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 collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. 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.Calendar.Client.Users.Item.Events.Item.Attachments.Item.AttachmentItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.Item.AttachmentItemRequestBuilder(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 AttachmentItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The collection of FileAttachment, ItemAttachment, and referenceAttachment attachments for the event. Navigation property. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class AttachmentItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 AttachmentItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Calendar/CalendarRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Calendar/CalendarRequestBuilder.cs new file mode 100644 index 00000000000..d623cda1e47 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Calendar/CalendarRequestBuilder.cs @@ -0,0 +1,125 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Calendar +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events\{event-id}\calendar + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CalendarRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/calendar{?%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 CalendarRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/calendar{?%24expand,%24select}", rawUrl) + { + } + /// + /// The calendar that contains the event. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The calendar that contains the event. Navigation property. 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.Calendar.Client.Users.Item.Events.Item.Calendar.CalendarRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Calendar.CalendarRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The calendar that contains the event. Navigation property. Read-only. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class CalendarRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 CalendarRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Cancel/CancelPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Cancel/CancelPostRequestBody.cs new file mode 100644 index 00000000000..25d9df1a1e5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Cancel/CancelPostRequestBody.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.Calendar.Client.Users.Item.Events.Item.Cancel +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class CancelPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CancelPostRequestBody() + { + 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.Calendar.Client.Users.Item.Events.Item.Cancel.CancelPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Cancel.CancelPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = 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("Comment", Comment); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Cancel/CancelRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Cancel/CancelRequestBuilder.cs new file mode 100644 index 00000000000..ab7dc184cc5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Cancel/CancelRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Cancel +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events\{event-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}/users/{user%2Did}/events/{event%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}/users/{user%2Did}/events/{event%2Did}/cancel", rawUrl) + { + } + /// + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// 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.Calendar.Client.Users.Item.Events.Item.Cancel.CancelPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Cancel.CancelPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// This action allows the organizer of a meeting to send a cancellation message and cancel the event. The action moves the event to the Deleted Items folder. The organizer can also cancel an occurrence of a recurring meeting by providing the occurrence event ID. An attendee calling this action gets an error (HTTP 400 Bad Request), with the followingerror message: 'Your request can't be completed. You need to be an organizer to cancel a meeting.' This action differs from Delete in that Cancel is available to only the organizer, and letsthe organizer send a custom message to the attendees about the cancellation. + /// + /// 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.Calendar.Client.Users.Item.Events.Item.Cancel.CancelPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Cancel.CancelPostRequestBody 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.Calendar.Client.Users.Item.Events.Item.Cancel.CancelRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.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/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Decline/DeclinePostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Decline/DeclinePostRequestBody.cs new file mode 100644 index 00000000000..cf8fd45b740 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Decline/DeclinePostRequestBody.cs @@ -0,0 +1,81 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Events.Item.Decline +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeclinePostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The ProposedNewTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot? ProposedNewTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot ProposedNewTime { get; set; } +#endif + /// The SendResponse property + public bool? SendResponse { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public DeclinePostRequestBody() + { + AdditionalData = new Dictionary(); + SendResponse = false; + } + /// + /// 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.Calendar.Client.Users.Item.Events.Item.Decline.DeclinePostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Decline.DeclinePostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot.CreateFromDiscriminatorValue); } }, + { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteBoolValue("SendResponse", SendResponse); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Decline/DeclineRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Decline/DeclineRequestBuilder.cs new file mode 100644 index 00000000000..9314d4d8a54 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Decline/DeclineRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Decline +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events\{event-id}\decline + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeclineRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeclineRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/decline", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DeclineRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/decline", rawUrl) + { + } + /// + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// 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.Calendar.Client.Users.Item.Events.Item.Decline.DeclinePostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Decline.DeclinePostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Decline invitation to the specified event in a user calendar. If the event allows proposals for new times, on declining the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// + /// 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.Calendar.Client.Users.Item.Events.Item.Decline.DeclinePostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Decline.DeclinePostRequestBody 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.Calendar.Client.Users.Item.Events.Item.Decline.DeclineRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Decline.DeclineRequestBuilder(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 DeclineRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs new file mode 100644 index 00000000000..2dc0b020eee --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/DismissReminder/DismissReminderRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.DismissReminder +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events\{event-id}\dismissReminder + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DismissReminderRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DismissReminderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/dismissReminder", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DismissReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/dismissReminder", rawUrl) + { + } + /// + /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Dismiss a reminder that has been triggered for an event in a user calendar. + /// + /// A + /// Configuration 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.Calendar.Client.Users.Item.Events.Item.DismissReminder.DismissReminderRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.DismissReminder.DismissReminderRequestBuilder(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 DismissReminderRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/EventItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/EventItemRequestBuilder.cs new file mode 100644 index 00000000000..1ef7083bcf8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/EventItemRequestBuilder.cs @@ -0,0 +1,301 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Accept; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Calendar; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Cancel; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Decline; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.DismissReminder; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Extensions; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Forward; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Instances; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.PermanentDelete; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.SnoozeReminder; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.TentativelyAccept; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events\{event-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilder : BaseRequestBuilder + { + /// The accept property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Accept.AcceptRequestBuilder Accept + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Accept.AcceptRequestBuilder(PathParameters, RequestAdapter); + } + /// The attachments property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.AttachmentsRequestBuilder Attachments + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.AttachmentsRequestBuilder(PathParameters, RequestAdapter); + } + /// The calendar property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Calendar.CalendarRequestBuilder Calendar + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Calendar.CalendarRequestBuilder(PathParameters, RequestAdapter); + } + /// The cancel property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Cancel.CancelRequestBuilder Cancel + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Cancel.CancelRequestBuilder(PathParameters, RequestAdapter); + } + /// The decline property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Decline.DeclineRequestBuilder Decline + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Decline.DeclineRequestBuilder(PathParameters, RequestAdapter); + } + /// The dismissReminder property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.DismissReminder.DismissReminderRequestBuilder DismissReminder + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.DismissReminder.DismissReminderRequestBuilder(PathParameters, RequestAdapter); + } + /// The extensions property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Extensions.ExtensionsRequestBuilder Extensions + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Extensions.ExtensionsRequestBuilder(PathParameters, RequestAdapter); + } + /// The forward property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Forward.ForwardRequestBuilder Forward + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Forward.ForwardRequestBuilder(PathParameters, RequestAdapter); + } + /// The instances property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Instances.InstancesRequestBuilder Instances + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Instances.InstancesRequestBuilder(PathParameters, RequestAdapter); + } + /// The permanentDelete property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder PermanentDelete + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder(PathParameters, RequestAdapter); + } + /// The snoozeReminder property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder SnoozeReminder + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder(PathParameters, RequestAdapter); + } + /// The tentativelyAccept property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder TentativelyAccept + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder(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 EventItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%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 EventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property events for users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The user's events. The default is to show events under the Default Calendar. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property events in users + /// + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property events for users + /// + /// A + /// Configuration 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 user's events. The default is to show events under the Default Calendar. 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; + } + /// + /// Update the navigation property events in users + /// + /// 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.Calendar.Client.Models.Event body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Event 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.Calendar.Client.Users.Item.Events.Item.EventItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.EventItemRequestBuilder(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 EventItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The user's events. The default is to show events under the Default Calendar. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 EventItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class EventItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..36dbeaeaa0e --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Extensions/Count/CountRequestBuilder.cs @@ -0,0 +1,124 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Extensions.Count +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events\{event-id}\extensions\$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}/events/{event%2Did}/extensions/$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}/events/{event%2Did}/extensions/$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.Calendar.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.Calendar.Client.Users.Item.Events.Item.Extensions.Count.CountRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Extensions.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/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs new file mode 100644 index 00000000000..8c66faa08cf --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Extensions/ExtensionsRequestBuilder.cs @@ -0,0 +1,238 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Extensions.Count; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Extensions.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.Calendar.Client.Users.Item.Events.Item.Extensions +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events\{event-id}\extensions + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilder : BaseRequestBuilder + { + /// The Count property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Extensions.Count.CountRequestBuilder Count + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Extensions.Count.CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.users.item.events.item.extensions.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Extensions.Item.ExtensionItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("extension%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Extensions.Item.ExtensionItemRequestBuilder(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 ExtensionsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/extensions{?%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 ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/extensions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The collection of open extensions defined for the event. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to extensions for users + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of open extensions defined for the event. 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; + } + /// + /// Create new navigation property to extensions for users + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Users.Item.Events.Item.Extensions.ExtensionsRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Extensions.ExtensionsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The collection of open extensions defined for the event. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderGetQueryParameters + { + /// 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 ExtensionsRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionsRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs new file mode 100644 index 00000000000..ece8adda275 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -0,0 +1,229 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Extensions.Item +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events\{event-id}\extensions\{extension-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExtensionItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/extensions/{extension%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 ExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/extensions/{extension%2Did}{?%24expand,%24select}", rawUrl) + { + } + /// + /// Delete navigation property extensions for users + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The collection of open extensions defined for the event. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property extensions in users + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PatchAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property extensions for users + /// + /// A + /// Configuration 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 collection of open extensions defined for the event. 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; + } + /// + /// Update the navigation property extensions in users + /// + /// 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.Calendar.Client.Models.Extension body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension 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.Calendar.Client.Users.Item.Events.Item.Extensions.Item.ExtensionItemRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Extensions.Item.ExtensionItemRequestBuilder(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 ExtensionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + { + } + /// + /// The collection of open extensions defined for the event. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderGetQueryParameters + { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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 ExtensionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ExtensionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Forward/ForwardPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Forward/ForwardPostRequestBody.cs new file mode 100644 index 00000000000..e544dffe4b4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Forward/ForwardPostRequestBody.cs @@ -0,0 +1,76 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Events.Item.Forward +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class ForwardPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The ToRecipients property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ToRecipients { get; set; } +#nullable restore +#else + public List ToRecipients { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ForwardPostRequestBody() + { + 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.Calendar.Client.Users.Item.Events.Item.Forward.ForwardPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Forward.ForwardPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "ToRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient.CreateFromDiscriminatorValue)?.AsList(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteCollectionOfObjectValues("ToRecipients", ToRecipients); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Forward/ForwardRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Forward/ForwardRequestBuilder.cs new file mode 100644 index 00000000000..36d79963f45 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Forward/ForwardRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Forward +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events\{event-id}\forward + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class ForwardRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ForwardRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/forward", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ForwardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/forward", rawUrl) + { + } + /// + /// This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// 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.Calendar.Client.Users.Item.Events.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Forward.ForwardPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// This action allows the organizer or attendee of a meeting event to forward themeeting request to a new recipient. If the meeting event is forwarded from an attendee's Microsoft 365 mailbox to another recipient, this actionalso sends a message to notify the organizer of the forwarding, and adds the recipient to the organizer'scopy of the meeting event. This convenience is not available when forwarding from an Outlook.com account. + /// + /// 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.Calendar.Client.Users.Item.Events.Item.Forward.ForwardPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Forward.ForwardPostRequestBody 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.Calendar.Client.Users.Item.Events.Item.Forward.ForwardRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Forward.ForwardRequestBuilder(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 ForwardRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs new file mode 100644 index 00000000000..5bef7fb5c72 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Instances/Delta/DeltaGetResponse.cs @@ -0,0 +1,57 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Events.Item.Instances.Delta +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaGetResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Models.BaseDeltaFunctionResponse, 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.Calendar.Client.Users.Item.Events.Item.Instances.Delta.DeltaGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Instances.Delta.DeltaGetResponse(); + } + /// + /// 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.Calendar.Client.Models.Event.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/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..423cb443496 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Instances/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,209 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Instances.Delta +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events\{event-id}\instances\delta() + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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 DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances/delta()?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task GetAsDeltaGetResponseAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> + { + { "XXX", global::Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Instances.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// 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 GetAsDeltaGetResponseAsync 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Instances.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation 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.Calendar.Client.Users.Item.Events.Item.Instances.Delta.DeltaRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Instances.Delta.DeltaRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a set of event resources that are added, deleted, or updated in one or more calendars. You can get specific types of these incremental changes in the events in all the calendars of a mailbox or in a specific calendar, or in an event collection of a calendarView (range of events defined by start and end dates) of a calendar. The calendar can be the default calendar or some other specified calendar that belongs to the user. When getting incremental changes on calendarView, the calendar can be a group calendar as well. Typically, synchronizing events in a calendar or calendarView in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of events in the specified calendar. The following table lists the differences between the delta function on events and the delta function on a calendarView in a calendar. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class DeltaRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range in the function, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 DeltaRequestBuilderGetRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Instances/Delta/DeltaResponse.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Instances/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..b832c38db41 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Instances/Delta/DeltaResponse.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.Calendar.Client.Users.Item.Events.Item.Instances.Delta +{ + [Obsolete("This class is obsolete. Use DeltaGetResponse instead.")] + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class DeltaResponse : global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Instances.Delta.DeltaGetResponse, 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.Calendar.Client.Users.Item.Events.Item.Instances.Delta.DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Instances.Delta.DeltaResponse(); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Instances/InstancesRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Instances/InstancesRequestBuilder.cs new file mode 100644 index 00000000000..2185bd0a04b --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/Instances/InstancesRequestBuilder.cs @@ -0,0 +1,190 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Instances.Delta; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Instances +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events\{event-id}\instances + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilder : BaseRequestBuilder + { + /// The delta property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Instances.Delta.DeltaRequestBuilder Delta + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Instances.Delta.DeltaRequestBuilder(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 InstancesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%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}/users/{user%2Did}/events/{event%2Did}/instances?endDateTime={endDateTime}&startDateTime={startDateTime}{&%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) + { + } + /// + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. 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.Calendar.Client.Users.Item.Events.Item.Instances.InstancesRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Instances.InstancesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// The occurrences of a recurring series, if the event is a series master. This property includes occurrences that are part of the recurrence pattern and exceptions that have been modified. It doesn't include occurrences that have been canceled from the series. Navigation property. Read-only. Nullable. + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class InstancesRequestBuilderGetQueryParameters + { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || 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; } + /// The start date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T19:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif + /// 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 + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs new file mode 100644 index 00000000000..263bf0f108e --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/PermanentDelete/PermanentDeleteRequestBuilder.cs @@ -0,0 +1,97 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.PermanentDelete +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events\{event-id}\permanentDelete + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class PermanentDeleteRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/permanentDelete", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PermanentDeleteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/permanentDelete", rawUrl) + { + } + /// + /// Permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. + /// 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Permanently delete an event and place it in the Purges folder in the dumpster in the user's mailbox. Email clients such as Outlook or the Outlook on the web can't access permanently deleted items. Unless there's a hold set on the mailbox, the items are permanently deleted after a set period of time. For more information about item retention, see Configure Deleted Item retention and Recoverable Items quotas. + /// + /// A + /// Configuration 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.Calendar.Client.Users.Item.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.PermanentDelete.PermanentDeleteRequestBuilder(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 PermanentDeleteRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs new file mode 100644 index 00000000000..120d81410a6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderPostRequestBody.cs @@ -0,0 +1,66 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Events.Item.SnoozeReminder +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class SnoozeReminderPostRequestBody : 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 NewReminderTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? NewReminderTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone NewReminderTime { get; set; } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public SnoozeReminderPostRequestBody() + { + 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.Calendar.Client.Users.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "NewReminderTime", n => { NewReminderTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone.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("NewReminderTime", NewReminderTime); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs new file mode 100644 index 00000000000..d60a7309616 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/SnoozeReminder/SnoozeReminderRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.SnoozeReminder +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events\{event-id}\snoozeReminder + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class SnoozeReminderRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public SnoozeReminderRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/snoozeReminder", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public SnoozeReminderRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/snoozeReminder", rawUrl) + { + } + /// + /// Postpone a reminder for an event in a user calendar until a new time. + /// 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.Calendar.Client.Users.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Postpone a reminder for an event in a user calendar until a new time. + /// + /// 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.Calendar.Client.Users.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody 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.Calendar.Client.Users.Item.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.SnoozeReminder.SnoozeReminderRequestBuilder(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 SnoozeReminderRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs new file mode 100644 index 00000000000..1be9c3af8e7 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptPostRequestBody.cs @@ -0,0 +1,81 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.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.Calendar.Client.Users.Item.Events.Item.TentativelyAccept +{ + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + #pragma warning disable CS1591 + public partial class TentativelyAcceptPostRequestBody : 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 Comment property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Comment { get; set; } +#nullable restore +#else + public string Comment { get; set; } +#endif + /// The ProposedNewTime property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot? ProposedNewTime { get; set; } +#nullable restore +#else + public global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot ProposedNewTime { get; set; } +#endif + /// The SendResponse property + public bool? SendResponse { get; set; } + /// + /// Instantiates a new and sets the default values. + /// + public TentativelyAcceptPostRequestBody() + { + AdditionalData = new Dictionary(); + SendResponse = false; + } + /// + /// 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.Calendar.Client.Users.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) + { + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() + { + return new Dictionary> + { + { "Comment", n => { Comment = n.GetStringValue(); } }, + { "ProposedNewTime", n => { ProposedNewTime = n.GetObjectValue(global::Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot.CreateFromDiscriminatorValue); } }, + { "SendResponse", n => { SendResponse = n.GetBoolValue(); } }, + }; + } + /// + /// 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("Comment", Comment); + writer.WriteObjectValue("ProposedNewTime", ProposedNewTime); + writer.WriteBoolValue("SendResponse", SendResponse); + writer.WriteAdditionalData(AdditionalData); + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs new file mode 100644 index 00000000000..274409dcaa8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Events/Item/TentativelyAccept/TentativelyAcceptRequestBuilder.cs @@ -0,0 +1,102 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.TentativelyAccept +{ + /// + /// Builds and executes requests for operations under \users\{user-id}\events\{event-id}\tentativelyAccept + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class TentativelyAcceptRequestBuilder : BaseRequestBuilder + { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public TentativelyAcceptRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/tentativelyAccept", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public TentativelyAcceptRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/events/{event%2Did}/tentativelyAccept", rawUrl) + { + } + /// + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// 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.Calendar.Client.Users.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + { +#nullable restore +#else + public async Task PostAsync(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody 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.Calendar.Client.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Tentatively accept the specified event in a user calendar. If the event allows proposals for new times, on responding tentative to the event, an invitee can choose to suggest an alternative time by including the proposedNewTime parameter. For more information on how to propose a time, and how to receive and accept a new time proposal, see Propose new meeting times. + /// + /// 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.Calendar.Client.Users.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody body, Action>? requestConfiguration = default) + { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody 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.Calendar.Client.Users.Item.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder WithUrl(string rawUrl) + { + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.TentativelyAccept.TentativelyAcceptRequestBuilder(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 TentativelyAcceptRequestBuilderPostRequestConfiguration : RequestConfiguration + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/UserItemRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/UserItemRequestBuilder.cs new file mode 100644 index 00000000000..d7f2a0a67c8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/Item/UserItemRequestBuilder.cs @@ -0,0 +1,65 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarView; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars; +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users.Item +{ + /// + /// Builds and executes requests for operations under \users\{user-id} + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UserItemRequestBuilder : BaseRequestBuilder + { + /// The calendar property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarRequestBuilder Calendar + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.CalendarRequestBuilder(PathParameters, RequestAdapter); + } + /// The calendarGroups property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.CalendarGroupsRequestBuilder CalendarGroups + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.CalendarGroupsRequestBuilder(PathParameters, RequestAdapter); + } + /// The calendars property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.CalendarsRequestBuilder Calendars + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.CalendarsRequestBuilder(PathParameters, RequestAdapter); + } + /// The calendarView property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarView.CalendarViewRequestBuilder CalendarView + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarView.CalendarViewRequestBuilder(PathParameters, RequestAdapter); + } + /// The events property + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.EventsRequestBuilder Events + { + get => new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.EventsRequestBuilder(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 UserItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UserItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}", rawUrl) + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/Users/UsersRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/UsersRequestBuilder.cs new file mode 100644 index 00000000000..b598416b410 --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/Users/UsersRequestBuilder.cs @@ -0,0 +1,48 @@ +// +#pragma warning disable CS0618 +using Microsoft.Graph.PowerShell.Calendar.Client.Users.Item; +using Microsoft.Kiota.Abstractions.Extensions; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Threading.Tasks; +using System; +namespace Microsoft.Graph.PowerShell.Calendar.Client.Users +{ + /// + /// Builds and executes requests for operations under \users + /// + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] + public partial class UsersRequestBuilder : BaseRequestBuilder + { + /// Gets an item from the Microsoft.Graph.PowerShell.Calendar.Client.users.item collection + /// Unique identifier of the item + /// A + public global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.UserItemRequestBuilder this[string position] + { + get + { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("user%2Did", position); + return new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.UserItemRequestBuilder(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 UsersRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users", pathParameters) + { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users", rawUrl) + { + } + } +} +#pragma warning restore CS0618 diff --git a/src/Calendar/wrapper/beta/Client/kiota-lock.json b/src/Calendar/wrapper/beta/Client/kiota-lock.json new file mode 100644 index 00000000000..df2ba1813fc --- /dev/null +++ b/src/Calendar/wrapper/beta/Client/kiota-lock.json @@ -0,0 +1,35 @@ +{ + "descriptionHash": "8D2493579F5BAD63C5895CDB1748570A16B79ED4DF121EB2C1A5F409C0B648387FD10C8316765EAB062E336D07F5D112B46B4779A7D80A22192D0943CD47AF35", + "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/beta/Calendar.yml", + "lockFileVersion": "1.0.0", + "kiotaVersion": "1.36.1", + "clientClassName": "ApiClient", + "typeAccessModifier": "Public", + "clientNamespaceName": "Microsoft.Graph.PowerShell.Calendar.Client", + "language": "CSharp", + "usesBackingStore": false, + "excludeBackwardCompatible": false, + "includeAdditionalData": true, + "disableSSLValidation": false, + "serializers": [ + "Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory", + "Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory", + "Microsoft.Kiota.Serialization.Form.FormSerializationWriterFactory", + "Microsoft.Kiota.Serialization.Multipart.MultipartSerializationWriterFactory" + ], + "deserializers": [ + "Microsoft.Kiota.Serialization.Json.JsonParseNodeFactory", + "Microsoft.Kiota.Serialization.Text.TextParseNodeFactory", + "Microsoft.Kiota.Serialization.Form.FormParseNodeFactory" + ], + "structuredMimeTypes": [ + "application/json", + "text/plain;q=0.9", + "application/x-www-form-urlencoded;q=0.2", + "multipart/form-data;q=0.1" + ], + "includePatterns": [], + "excludePatterns": [], + "disabledValidationRules": [], + "allowedExternalOrigins": [] +} \ No newline at end of file diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendar.g.cs new file mode 100644 index 00000000000..5aba11116c7 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendar.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/calendar")] + [Cmdlet(VerbsCommon.Get, "MgGroupCalendar")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] + public class GetMgGroupCalendarCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { 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.Calendar.Client.Models.Calendar? result; + try + { + result = client.Groups[GroupId].Calendar.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, GroupId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs new file mode 100644 index 00000000000..c51e144f725 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs @@ -0,0 +1,94 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/calendar/allowedCalendarSharingRoles(User='{User}')")] + [Cmdlet(VerbsCommon.Get, "MgGroupCalendarAllowedCalendarSharingRolesWithUser")] + [OutputType(typeof(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse))] + public class GetMgGroupCalendarAllowedCalendarSharingRolesWithUserCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + + [Parameter(Mandatory = true, Position = 1, + HelpMessage = "Value for the 'User' parameter of this OData function.")] + public string User { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { 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! }, + { "group%2Did", GroupId }, + { "User", User }, + }; + var requestBuilder = new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder(pathParameters, requestAdapter); + + global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse? result; + try + { + result = requestBuilder.GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + 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, GroupId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent.g.cs new file mode 100644 index 00000000000..4c0024acce2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/calendar/events")] + [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEvent", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event), ParameterSetName = new[] { "Get" })] + public class GetMgGroupCalendarEventCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string EventId { 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-MgGroupCalendarEvent_Get or Get-MgGroupCalendarEvent_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgGroupCalendarEvent_Get" : "Get-MgGroupCalendarEvent_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" ? EventId : GroupId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment.g.cs new file mode 100644 index 00000000000..72f41d90549 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/calendar/events/{event-id}/attachments")] + [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventAttachment", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment), ParameterSetName = new[] { "Get" })] + public class GetMgGroupCalendarEventAttachmentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string AttachmentId { 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-MgGroupCalendarEventAttachment_Get or Get-MgGroupCalendarEventAttachment_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgGroupCalendarEventAttachment_Get" : "Get-MgGroupCalendarEventAttachment_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" ? AttachmentId : EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachmentCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachmentCount.g.cs new file mode 100644 index 00000000000..b7e64aa36cf --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachmentCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/calendar/events/{event-id}/attachments/$count")] + [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventAttachmentCount")] + [OutputType(typeof(int))] + public class GetMgGroupCalendarEventAttachmentCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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.Groups[GroupId].Calendar.Events[EventId].Attachments.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, EventId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment_Get.g.cs new file mode 100644 index 00000000000..50c9a61239b --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/calendar/events/{event-id}/attachments/{attachment-id}")] + [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventAttachment_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment))] + public class GetMgGroupCalendarEventAttachment_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AttachmentId { 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.Calendar.Client.Models.Attachment? result; + try + { + result = client.Groups[GroupId].Calendar.Events[EventId].Attachments[AttachmentId].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, AttachmentId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment_List.g.cs new file mode 100644 index 00000000000..b5b52cbe29c --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/calendar/events/{event-id}/attachments")] + [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventAttachment_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment))] + public class GetMgGroupCalendarEventAttachment_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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.Calendar.Client.Models.AttachmentCollectionResponse? result; + try + { + result = client.Groups[GroupId].Calendar.Events[EventId].Attachments.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.Groups[GroupId].Calendar.Events[EventId].Attachments.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, EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventCalendar.g.cs new file mode 100644 index 00000000000..68fb501aeed --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventCalendar.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/calendar/events/{event-id}/calendar")] + [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventCalendar")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] + public class GetMgGroupCalendarEventCalendarCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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.Calendar.Client.Models.Calendar? result; + try + { + result = client.Groups[GroupId].Calendar.Events[EventId].Calendar.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, EventId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventCount.g.cs new file mode 100644 index 00000000000..2b8c9a0c6ad --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/calendar/events/$count")] + [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventCount")] + [OutputType(typeof(int))] + public class GetMgGroupCalendarEventCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { 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.Groups[GroupId].Calendar.Events.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, GroupId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension.g.cs new file mode 100644 index 00000000000..75412788517 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/calendar/events/{event-id}/extensions")] + [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventExtension", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.ExtensionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension), ParameterSetName = new[] { "Get" })] + public class GetMgGroupCalendarEventExtensionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string ExtensionId { 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-MgGroupCalendarEventExtension_Get or Get-MgGroupCalendarEventExtension_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgGroupCalendarEventExtension_Get" : "Get-MgGroupCalendarEventExtension_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" ? ExtensionId : EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtensionCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtensionCount.g.cs new file mode 100644 index 00000000000..bca5e733c36 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtensionCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/calendar/events/{event-id}/extensions/$count")] + [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventExtensionCount")] + [OutputType(typeof(int))] + public class GetMgGroupCalendarEventExtensionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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.Groups[GroupId].Calendar.Events[EventId].Extensions.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, EventId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension_Get.g.cs new file mode 100644 index 00000000000..8c51b0d9ceb --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}")] + [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventExtension_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] + public class GetMgGroupCalendarEventExtension_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string ExtensionId { 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.Calendar.Client.Models.Extension? result; + try + { + result = client.Groups[GroupId].Calendar.Events[EventId].Extensions[ExtensionId].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, ExtensionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension_List.g.cs new file mode 100644 index 00000000000..4c44e296f6e --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/calendar/events/{event-id}/extensions")] + [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventExtension_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] + public class GetMgGroupCalendarEventExtension_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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.Calendar.Client.Models.ExtensionCollectionResponse? result; + try + { + result = client.Groups[GroupId].Calendar.Events[EventId].Extensions.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.Groups[GroupId].Calendar.Events[EventId].Extensions.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, EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventInstance.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventInstance.g.cs new file mode 100644 index 00000000000..e33d72fe031 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventInstance.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/calendar/events/{event-id}/instances")] + [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventInstance")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgGroupCalendarEventInstanceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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.Calendar.Client.Models.EventCollectionResponse? result; + try + { + result = client.Groups[GroupId].Calendar.Events[EventId].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.Groups[GroupId].Calendar.Events[EventId].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, EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs new file mode 100644 index 00000000000..94e1cd63cc1 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/calendar/events/{event-id}")] + [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEvent_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgGroupCalendarEvent_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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.Calendar.Client.Models.Event? result; + try + { + result = client.Groups[GroupId].Calendar.Events[EventId].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, EventId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_List.g.cs new file mode 100644 index 00000000000..950a55d22c6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/calendar/events")] + [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEvent_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgGroupCalendarEvent_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { 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.Calendar.Client.Models.EventCollectionResponse? result; + try + { + result = client.Groups[GroupId].Calendar.Events.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.Groups[GroupId].Calendar.Events.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, GroupId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission.g.cs new file mode 100644 index 00000000000..4d9d634cc25 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/calendar/calendarPermissions")] + [Cmdlet(VerbsCommon.Get, "MgGroupCalendarPermission", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermissionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission), ParameterSetName = new[] { "Get" })] + public class GetMgGroupCalendarPermissionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string CalendarPermissionId { 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-MgGroupCalendarPermission_Get or Get-MgGroupCalendarPermission_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgGroupCalendarPermission_Get" : "Get-MgGroupCalendarPermission_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" ? CalendarPermissionId : GroupId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermissionCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermissionCount.g.cs new file mode 100644 index 00000000000..541250ada98 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermissionCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/calendar/calendarPermissions/$count")] + [Cmdlet(VerbsCommon.Get, "MgGroupCalendarPermissionCount")] + [OutputType(typeof(int))] + public class GetMgGroupCalendarPermissionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { 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.Groups[GroupId].Calendar.CalendarPermissions.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, GroupId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_Get.g.cs new file mode 100644 index 00000000000..534e6ef4a5e --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/calendar/calendarPermissions/{calendarPermission-id}")] + [Cmdlet(VerbsCommon.Get, "MgGroupCalendarPermission_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission))] + public class GetMgGroupCalendarPermission_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarPermissionId { 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.Calendar.Client.Models.CalendarPermission? result; + try + { + result = client.Groups[GroupId].Calendar.CalendarPermissions[CalendarPermissionId].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, CalendarPermissionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_List.g.cs new file mode 100644 index 00000000000..555dc10e481 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/calendar/calendarPermissions")] + [Cmdlet(VerbsCommon.Get, "MgGroupCalendarPermission_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission))] + public class GetMgGroupCalendarPermission_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { 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.Calendar.Client.Models.CalendarPermissionCollectionResponse? result; + try + { + result = client.Groups[GroupId].Calendar.CalendarPermissions.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.Groups[GroupId].Calendar.CalendarPermissions.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, GroupId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarView.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarView.g.cs new file mode 100644 index 00000000000..803efaf0dea --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarView.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/calendar/calendarView")] + [Cmdlet(VerbsCommon.Get, "MgGroupCalendarView")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgGroupCalendarViewCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { 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.Calendar.Client.Models.EventCollectionResponse? result; + try + { + result = client.Groups[GroupId].Calendar.CalendarView.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.Groups[GroupId].Calendar.CalendarView.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, GroupId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent.g.cs new file mode 100644 index 00000000000..eb19e055331 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/events")] + [Cmdlet(VerbsCommon.Get, "MgGroupEvent", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event), ParameterSetName = new[] { "Get" })] + public class GetMgGroupEventCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string EventId { 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-MgGroupEvent_Get or Get-MgGroupEvent_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgGroupEvent_Get" : "Get-MgGroupEvent_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" ? EventId : GroupId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment.g.cs new file mode 100644 index 00000000000..0b0c9d2f505 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/events/{event-id}/attachments")] + [Cmdlet(VerbsCommon.Get, "MgGroupEventAttachment", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment), ParameterSetName = new[] { "Get" })] + public class GetMgGroupEventAttachmentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string AttachmentId { 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-MgGroupEventAttachment_Get or Get-MgGroupEventAttachment_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgGroupEventAttachment_Get" : "Get-MgGroupEventAttachment_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" ? AttachmentId : EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachmentCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachmentCount.g.cs new file mode 100644 index 00000000000..0aa3810bfad --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachmentCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/events/{event-id}/attachments/$count")] + [Cmdlet(VerbsCommon.Get, "MgGroupEventAttachmentCount")] + [OutputType(typeof(int))] + public class GetMgGroupEventAttachmentCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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.Groups[GroupId].Events[EventId].Attachments.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, EventId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_Get.g.cs new file mode 100644 index 00000000000..60b5d4c1788 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/events/{event-id}/attachments/{attachment-id}")] + [Cmdlet(VerbsCommon.Get, "MgGroupEventAttachment_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment))] + public class GetMgGroupEventAttachment_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AttachmentId { 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.Calendar.Client.Models.Attachment? result; + try + { + result = client.Groups[GroupId].Events[EventId].Attachments[AttachmentId].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, AttachmentId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_List.g.cs new file mode 100644 index 00000000000..42c948c9ca8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/events/{event-id}/attachments")] + [Cmdlet(VerbsCommon.Get, "MgGroupEventAttachment_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment))] + public class GetMgGroupEventAttachment_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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.Calendar.Client.Models.AttachmentCollectionResponse? result; + try + { + result = client.Groups[GroupId].Events[EventId].Attachments.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.Groups[GroupId].Events[EventId].Attachments.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, EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventCalendar.g.cs new file mode 100644 index 00000000000..fd439bbef75 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventCalendar.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/events/{event-id}/calendar")] + [Cmdlet(VerbsCommon.Get, "MgGroupEventCalendar")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] + public class GetMgGroupEventCalendarCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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.Calendar.Client.Models.Calendar? result; + try + { + result = client.Groups[GroupId].Events[EventId].Calendar.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, EventId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventCount.g.cs new file mode 100644 index 00000000000..85a0badd66c --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/events/$count")] + [Cmdlet(VerbsCommon.Get, "MgGroupEventCount")] + [OutputType(typeof(int))] + public class GetMgGroupEventCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { 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.Groups[GroupId].Events.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, GroupId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventDelta.g.cs new file mode 100644 index 00000000000..331e381bff1 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventDelta.g.cs @@ -0,0 +1,177 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/events/delta()")] + [Cmdlet(VerbsCommon.Get, "MgGroupEventDelta", DefaultParameterSetName = "DeltaSync")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgGroupEventDeltaCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0, ParameterSetName = "DeltaSync")] + public string GroupId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public SwitchParameter Count { get; set; } + + // Resumes a previous sync from the link that run published. Universal: every delta + // request builder accepts a raw URL, whereas a token argument exists on only a few. + [Parameter(Mandatory = true, ParameterSetName = "Resume")] + public string DeltaLink { get; set; } = string.Empty; + + // Follows @odata.nextLink through the change set. Without it only the first page returns, + // plus a warning when more pages exist. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + // Receives the @odata.deltaLink that terminates the change set, for the next sync round. + // A named variable is how this SDK already returns a scalar alongside a pipeline + // (-CountVariable on the published list cmdlets). + [Parameter(Mandatory = false)] + [Alias("DLV")] + public string? DeltaLinkVariable { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // Cleared before the request so a failed or interrupted run cannot leave the previous + // run's link readable, which would silently resume from the wrong point. + if (this.IsParameterBound(nameof(DeltaLinkVariable))) + SessionState.PSVariable.Set(DeltaLinkVariable, null); + + global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Delta.DeltaGetResponse? result; + try + { + result = ParameterSetName == "Resume" + ? client.Groups[GroupId].Events.Delta.WithUrl(ValidateContinuationUrl(DeltaLink!, requestAdapter, nameof(DeltaLink))).GetAsDeltaGetResponseAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult() + : client.Groups[GroupId].Events.Delta.GetAsDeltaGetResponseAsync(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(); + + var fetched = 0; + while (true) + { + if (result?.Value is { } items) + { + WriteObject(items, enumerateCollection: true); + fetched += items.Count; + } + + var nextLink = result?.OdataNextLink; + var deltaLink = result?.OdataDeltaLink; + + // A response cannot be both continued and terminated; treating one as + // authoritative would silently drop pages or resume from a partial set. + if (!string.IsNullOrEmpty(nextLink) && !string.IsNullOrEmpty(deltaLink)) + { + ThrowTerminatingError(new ErrorRecord( + new InvalidOperationException("The response carries both @odata.nextLink and @odata.deltaLink, which is not a valid delta response."), + "InvalidDeltaResponse", ErrorCategory.InvalidData, targetObject: null)); + return; + } + + if (!string.IsNullOrEmpty(deltaLink)) + { + if (this.IsParameterBound(nameof(DeltaLinkVariable))) + SessionState.PSVariable.Set(DeltaLinkVariable, deltaLink); + break; + } + + // No link of either kind: the change set ends here and there is nothing to + // publish for a next round. + if (string.IsNullOrEmpty(nextLink)) break; + + if (!All.IsPresent) + { + WriteWarning("More results are available. Use -All to return all pages."); + break; + } + + if (Stopping) break; + if (this.IsParameterBound(nameof(Top)) && fetched >= Top) break; + + result = client.Groups[GroupId].Events.Delta.WithUrl(nextLink).GetAsDeltaGetResponseAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GroupId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension.g.cs new file mode 100644 index 00000000000..7f4d6825a25 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/events/{event-id}/extensions")] + [Cmdlet(VerbsCommon.Get, "MgGroupEventExtension", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.ExtensionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension), ParameterSetName = new[] { "Get" })] + public class GetMgGroupEventExtensionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string ExtensionId { 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-MgGroupEventExtension_Get or Get-MgGroupEventExtension_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgGroupEventExtension_Get" : "Get-MgGroupEventExtension_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" ? ExtensionId : EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtensionCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtensionCount.g.cs new file mode 100644 index 00000000000..f4ae3fd73c6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtensionCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/events/{event-id}/extensions/$count")] + [Cmdlet(VerbsCommon.Get, "MgGroupEventExtensionCount")] + [OutputType(typeof(int))] + public class GetMgGroupEventExtensionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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.Groups[GroupId].Events[EventId].Extensions.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, EventId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_Get.g.cs new file mode 100644 index 00000000000..1486b1dc391 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/events/{event-id}/extensions/{extension-id}")] + [Cmdlet(VerbsCommon.Get, "MgGroupEventExtension_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] + public class GetMgGroupEventExtension_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string ExtensionId { 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.Calendar.Client.Models.Extension? result; + try + { + result = client.Groups[GroupId].Events[EventId].Extensions[ExtensionId].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, ExtensionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_List.g.cs new file mode 100644 index 00000000000..f0c1a26337a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/events/{event-id}/extensions")] + [Cmdlet(VerbsCommon.Get, "MgGroupEventExtension_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] + public class GetMgGroupEventExtension_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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.Calendar.Client.Models.ExtensionCollectionResponse? result; + try + { + result = client.Groups[GroupId].Events[EventId].Extensions.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.Groups[GroupId].Events[EventId].Extensions.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, EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstance.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstance.g.cs new file mode 100644 index 00000000000..dc11b2f1d75 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstance.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/events/{event-id}/instances")] + [Cmdlet(VerbsCommon.Get, "MgGroupEventInstance")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgGroupEventInstanceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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.Calendar.Client.Models.EventCollectionResponse? result; + try + { + result = client.Groups[GroupId].Events[EventId].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.Groups[GroupId].Events[EventId].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, EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstanceDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstanceDelta.g.cs new file mode 100644 index 00000000000..4f70bc1220a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstanceDelta.g.cs @@ -0,0 +1,179 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/events/{event-id}/instances/delta()")] + [Cmdlet(VerbsCommon.Get, "MgGroupEventInstanceDelta", DefaultParameterSetName = "DeltaSync")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgGroupEventInstanceDeltaCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0, ParameterSetName = "DeltaSync")] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1, ParameterSetName = "DeltaSync")] + public string EventId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public SwitchParameter Count { get; set; } + + // Resumes a previous sync from the link that run published. Universal: every delta + // request builder accepts a raw URL, whereas a token argument exists on only a few. + [Parameter(Mandatory = true, ParameterSetName = "Resume")] + public string DeltaLink { get; set; } = string.Empty; + + // Follows @odata.nextLink through the change set. Without it only the first page returns, + // plus a warning when more pages exist. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + // Receives the @odata.deltaLink that terminates the change set, for the next sync round. + // A named variable is how this SDK already returns a scalar alongside a pipeline + // (-CountVariable on the published list cmdlets). + [Parameter(Mandatory = false)] + [Alias("DLV")] + public string? DeltaLinkVariable { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // Cleared before the request so a failed or interrupted run cannot leave the previous + // run's link readable, which would silently resume from the wrong point. + if (this.IsParameterBound(nameof(DeltaLinkVariable))) + SessionState.PSVariable.Set(DeltaLinkVariable, null); + + global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Instances.Delta.DeltaGetResponse? result; + try + { + result = ParameterSetName == "Resume" + ? client.Groups[GroupId].Events[EventId].Instances.Delta.WithUrl(ValidateContinuationUrl(DeltaLink!, requestAdapter, nameof(DeltaLink))).GetAsDeltaGetResponseAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult() + : client.Groups[GroupId].Events[EventId].Instances.Delta.GetAsDeltaGetResponseAsync(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(); + + var fetched = 0; + while (true) + { + if (result?.Value is { } items) + { + WriteObject(items, enumerateCollection: true); + fetched += items.Count; + } + + var nextLink = result?.OdataNextLink; + var deltaLink = result?.OdataDeltaLink; + + // A response cannot be both continued and terminated; treating one as + // authoritative would silently drop pages or resume from a partial set. + if (!string.IsNullOrEmpty(nextLink) && !string.IsNullOrEmpty(deltaLink)) + { + ThrowTerminatingError(new ErrorRecord( + new InvalidOperationException("The response carries both @odata.nextLink and @odata.deltaLink, which is not a valid delta response."), + "InvalidDeltaResponse", ErrorCategory.InvalidData, targetObject: null)); + return; + } + + if (!string.IsNullOrEmpty(deltaLink)) + { + if (this.IsParameterBound(nameof(DeltaLinkVariable))) + SessionState.PSVariable.Set(DeltaLinkVariable, deltaLink); + break; + } + + // No link of either kind: the change set ends here and there is nothing to + // publish for a next round. + if (string.IsNullOrEmpty(nextLink)) break; + + if (!All.IsPresent) + { + WriteWarning("More results are available. Use -All to return all pages."); + break; + } + + if (Stopping) break; + if (this.IsParameterBound(nameof(Top)) && fetched >= Top) break; + + result = client.Groups[GroupId].Events[EventId].Instances.Delta.WithUrl(nextLink).GetAsDeltaGetResponseAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_Get.g.cs new file mode 100644 index 00000000000..16236f9380e --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/events/{event-id}")] + [Cmdlet(VerbsCommon.Get, "MgGroupEvent_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgGroupEvent_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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.Calendar.Client.Models.Event? result; + try + { + result = client.Groups[GroupId].Events[EventId].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, EventId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_List.g.cs new file mode 100644 index 00000000000..f60f7c1c162 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/groups/{group-id}/events")] + [Cmdlet(VerbsCommon.Get, "MgGroupEvent_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgGroupEvent_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { 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.Calendar.Client.Models.EventCollectionResponse? result; + try + { + result = client.Groups[GroupId].Events.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.Groups[GroupId].Events.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, GroupId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding.g.cs new file mode 100644 index 00000000000..8f3f297e153 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/graph.building")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuilding", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Building), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsBuildingCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 0)] + public string PlaceId { 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-MgPlaceAsBuilding_Get or Get-MgPlaceAsBuilding_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsBuilding_Get" : "Get-MgPlaceAsBuilding_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" ? PlaceId : null); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn.g.cs new file mode 100644 index 00000000000..81dd1b72177 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/checkIns")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingCheckIn", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsBuildingCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string CheckInClaimCalendarEventId { 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-MgPlaceAsBuildingCheckIn_Get or Get-MgPlaceAsBuildingCheckIn_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsBuildingCheckIn_Get" : "Get-MgPlaceAsBuildingCheckIn_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" ? CheckInClaimCalendarEventId : PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckInCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckInCount.g.cs new file mode 100644 index 00000000000..13345384970 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckInCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/checkIns/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingCheckInCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsBuildingCheckInCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Places[PlaceId].GraphBuilding.CheckIns.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, PlaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs new file mode 100644 index 00000000000..80318e0060f --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingCheckIn_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class GetMgPlaceAsBuildingCheckIn_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { 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.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphBuilding.CheckIns[CheckInClaimCalendarEventId].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, CheckInClaimCalendarEventId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs new file mode 100644 index 00000000000..2338a42333b --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/checkIns")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingCheckIn_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class GetMgPlaceAsBuildingCheckIn_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.CheckInClaimCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphBuilding.CheckIns.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.Places[PlaceId].GraphBuilding.CheckIns.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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild.g.cs new file mode 100644 index 00000000000..20c08fb2a48 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/children")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingChild", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsBuildingChildCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string PlaceId1 { 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-MgPlaceAsBuildingChild_Get or Get-MgPlaceAsBuildingChild_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsBuildingChild_Get" : "Get-MgPlaceAsBuildingChild_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" ? PlaceId1 : PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChildCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChildCount.g.cs new file mode 100644 index 00000000000..4fb8313d1ac --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChildCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/children/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingChildCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsBuildingChildCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Places[PlaceId].GraphBuilding.Children.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, PlaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_Get.g.cs new file mode 100644 index 00000000000..65b76d22506 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/children/{place-id1}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingChild_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class GetMgPlaceAsBuildingChild_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string PlaceId1 { 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.Calendar.Client.Models.Place? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Children[PlaceId1].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, PlaceId1); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_List.g.cs new file mode 100644 index 00000000000..f8edc1a7b59 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/children")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingChild_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class GetMgPlaceAsBuildingChild_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.PlaceCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Children.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.Places[PlaceId].GraphBuilding.Children.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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMap.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMap.g.cs new file mode 100644 index 00000000000..f0eb58353c9 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMap.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/map")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingMap")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingMap))] + public class GetMgPlaceAsBuildingMapCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.BuildingMap? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.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, PlaceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint.g.cs new file mode 100644 index 00000000000..93661597773 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/map/footprints")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingMapFootprint", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMapCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsBuildingMapFootprintCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string FootprintMapId { 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-MgPlaceAsBuildingMapFootprint_Get or Get-MgPlaceAsBuildingMapFootprint_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsBuildingMapFootprint_Get" : "Get-MgPlaceAsBuildingMapFootprint_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" ? FootprintMapId : PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprintCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprintCount.g.cs new file mode 100644 index 00000000000..9d4e743a200 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprintCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/map/footprints/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingMapFootprintCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsBuildingMapFootprintCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Places[PlaceId].GraphBuilding.Map.Footprints.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, PlaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_Get.g.cs new file mode 100644 index 00000000000..8fc7c0712d6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/map/footprints/{footprintMap-id}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingMapFootprint_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap))] + public class GetMgPlaceAsBuildingMapFootprint_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string FootprintMapId { 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.Calendar.Client.Models.FootprintMap? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Footprints[FootprintMapId].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, FootprintMapId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_List.g.cs new file mode 100644 index 00000000000..02675962dd8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/map/footprints")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingMapFootprint_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap))] + public class GetMgPlaceAsBuildingMapFootprint_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.FootprintMapCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Footprints.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.Places[PlaceId].GraphBuilding.Map.Footprints.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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel.g.cs new file mode 100644 index 00000000000..5c591fc6c5a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/map/levels")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingMapLevel", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMapCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsBuildingMapLevelCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string LevelMapId { 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-MgPlaceAsBuildingMapLevel_Get or Get-MgPlaceAsBuildingMapLevel_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsBuildingMapLevel_Get" : "Get-MgPlaceAsBuildingMapLevel_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" ? LevelMapId : PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelCount.g.cs new file mode 100644 index 00000000000..f94f17199ea --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/map/levels/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingMapLevelCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsBuildingMapLevelCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Places[PlaceId].GraphBuilding.Map.Levels.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, PlaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture.g.cs new file mode 100644 index 00000000000..1f9f1c9ce36 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/map/levels/{levelMap-id}/fixtures")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingMapLevelFixture", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMapCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsBuildingMapLevelFixtureCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string FixtureMapId { 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-MgPlaceAsBuildingMapLevelFixture_Get or Get-MgPlaceAsBuildingMapLevelFixture_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsBuildingMapLevelFixture_Get" : "Get-MgPlaceAsBuildingMapLevelFixture_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" ? FixtureMapId : LevelMapId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixtureCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixtureCount.g.cs new file mode 100644 index 00000000000..3e1b673a25f --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixtureCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/map/levels/{levelMap-id}/fixtures/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingMapLevelFixtureCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsBuildingMapLevelFixtureCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { 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.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Fixtures.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, LevelMapId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs new file mode 100644 index 00000000000..d935b69ac09 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/map/levels/{levelMap-id}/fixtures/{fixtureMap-id}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingMapLevelFixture_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap))] + public class GetMgPlaceAsBuildingMapLevelFixture_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string FixtureMapId { 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.Calendar.Client.Models.FixtureMap? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Fixtures[FixtureMapId].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, FixtureMapId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_List.g.cs new file mode 100644 index 00000000000..791a8ab0a94 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/map/levels/{levelMap-id}/fixtures")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingMapLevelFixture_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap))] + public class GetMgPlaceAsBuildingMapLevelFixture_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { 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.Calendar.Client.Models.FixtureMapCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Fixtures.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.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Fixtures.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, LevelMapId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection.g.cs new file mode 100644 index 00000000000..0fd8ab7e6e4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/map/levels/{levelMap-id}/sections")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingMapLevelSection", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMapCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsBuildingMapLevelSectionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string SectionMapId { 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-MgPlaceAsBuildingMapLevelSection_Get or Get-MgPlaceAsBuildingMapLevelSection_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsBuildingMapLevelSection_Get" : "Get-MgPlaceAsBuildingMapLevelSection_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" ? SectionMapId : LevelMapId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSectionCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSectionCount.g.cs new file mode 100644 index 00000000000..f30ed7b74ad --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSectionCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/map/levels/{levelMap-id}/sections/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingMapLevelSectionCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsBuildingMapLevelSectionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { 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.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Sections.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, LevelMapId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_Get.g.cs new file mode 100644 index 00000000000..d1a1a84404c --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/map/levels/{levelMap-id}/sections/{sectionMap-id}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingMapLevelSection_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap))] + public class GetMgPlaceAsBuildingMapLevelSection_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SectionMapId { 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.Calendar.Client.Models.SectionMap? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Sections[SectionMapId].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, SectionMapId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_List.g.cs new file mode 100644 index 00000000000..6b6fd5af092 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/map/levels/{levelMap-id}/sections")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingMapLevelSection_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap))] + public class GetMgPlaceAsBuildingMapLevelSection_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { 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.Calendar.Client.Models.SectionMapCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Sections.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.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Sections.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, LevelMapId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit.g.cs new file mode 100644 index 00000000000..ced317b3ef0 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/map/levels/{levelMap-id}/units")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingMapLevelUnit", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMapCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsBuildingMapLevelUnitCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string UnitMapId { 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-MgPlaceAsBuildingMapLevelUnit_Get or Get-MgPlaceAsBuildingMapLevelUnit_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsBuildingMapLevelUnit_Get" : "Get-MgPlaceAsBuildingMapLevelUnit_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" ? UnitMapId : LevelMapId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnitCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnitCount.g.cs new file mode 100644 index 00000000000..3db492fd891 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnitCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/map/levels/{levelMap-id}/units/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingMapLevelUnitCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsBuildingMapLevelUnitCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { 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.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Units.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, LevelMapId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs new file mode 100644 index 00000000000..f636f67d196 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/map/levels/{levelMap-id}/units/{unitMap-id}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingMapLevelUnit_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap))] + public class GetMgPlaceAsBuildingMapLevelUnit_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string UnitMapId { 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.Calendar.Client.Models.UnitMap? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Units[UnitMapId].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, UnitMapId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_List.g.cs new file mode 100644 index 00000000000..1afa6f39414 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/map/levels/{levelMap-id}/units")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingMapLevelUnit_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap))] + public class GetMgPlaceAsBuildingMapLevelUnit_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { 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.Calendar.Client.Models.UnitMapCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Units.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.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Units.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, LevelMapId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs new file mode 100644 index 00000000000..37a7c18d8a4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/map/levels/{levelMap-id}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingMapLevel_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap))] + public class GetMgPlaceAsBuildingMapLevel_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { 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.Calendar.Client.Models.LevelMap? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].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, LevelMapId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs new file mode 100644 index 00000000000..92a79071843 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building/map/levels")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuildingMapLevel_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap))] + public class GetMgPlaceAsBuildingMapLevel_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.LevelMapCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Levels.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.Places[PlaceId].GraphBuilding.Map.Levels.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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs new file mode 100644 index 00000000000..14b5ddaa743 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.building")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuilding_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Building))] + public class GetMgPlaceAsBuilding_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.Building? result; + try + { + result = client.Places[PlaceId].GraphBuilding.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, PlaceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_List.g.cs new file mode 100644 index 00000000000..5ba23a2dcf5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/graph.building")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsBuilding_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Building))] + public class GetMgPlaceAsBuilding_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.Calendar.Client.Models.BuildingCollectionResponse? result; + try + { + result = client.Places.GraphBuilding.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.Places.GraphBuilding.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/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk.g.cs new file mode 100644 index 00000000000..a9f79b5cdc5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/graph.desk")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsDesk", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.DeskCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Desk), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsDeskCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 0)] + public string PlaceId { 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-MgPlaceAsDesk_Get or Get-MgPlaceAsDesk_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsDesk_Get" : "Get-MgPlaceAsDesk_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" ? PlaceId : null); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn.g.cs new file mode 100644 index 00000000000..330216ec4f0 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.desk/checkIns")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsDeskCheckIn", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsDeskCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string CheckInClaimCalendarEventId { 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-MgPlaceAsDeskCheckIn_Get or Get-MgPlaceAsDeskCheckIn_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsDeskCheckIn_Get" : "Get-MgPlaceAsDeskCheckIn_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" ? CheckInClaimCalendarEventId : PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckInCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckInCount.g.cs new file mode 100644 index 00000000000..cc195af070b --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckInCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.desk/checkIns/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsDeskCheckInCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsDeskCheckInCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Places[PlaceId].GraphDesk.CheckIns.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, PlaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs new file mode 100644 index 00000000000..17a517a18b3 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.desk/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsDeskCheckIn_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class GetMgPlaceAsDeskCheckIn_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { 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.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphDesk.CheckIns[CheckInClaimCalendarEventId].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, CheckInClaimCalendarEventId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs new file mode 100644 index 00000000000..9f71609f781 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.desk/checkIns")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsDeskCheckIn_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class GetMgPlaceAsDeskCheckIn_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.CheckInClaimCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphDesk.CheckIns.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.Places[PlaceId].GraphDesk.CheckIns.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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild.g.cs new file mode 100644 index 00000000000..af8c898e9c4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.desk/children")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsDeskChild", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsDeskChildCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string PlaceId1 { 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-MgPlaceAsDeskChild_Get or Get-MgPlaceAsDeskChild_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsDeskChild_Get" : "Get-MgPlaceAsDeskChild_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" ? PlaceId1 : PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChildCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChildCount.g.cs new file mode 100644 index 00000000000..f47406627c7 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChildCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.desk/children/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsDeskChildCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsDeskChildCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Places[PlaceId].GraphDesk.Children.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, PlaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_Get.g.cs new file mode 100644 index 00000000000..53295aa8d77 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.desk/children/{place-id1}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsDeskChild_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class GetMgPlaceAsDeskChild_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string PlaceId1 { 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.Calendar.Client.Models.Place? result; + try + { + result = client.Places[PlaceId].GraphDesk.Children[PlaceId1].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, PlaceId1); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_List.g.cs new file mode 100644 index 00000000000..367b6c6a1e2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.desk/children")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsDeskChild_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class GetMgPlaceAsDeskChild_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.PlaceCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphDesk.Children.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.Places[PlaceId].GraphDesk.Children.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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_Get.g.cs new file mode 100644 index 00000000000..48c9d29d65d --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.desk")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsDesk_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Desk))] + public class GetMgPlaceAsDesk_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.Desk? result; + try + { + result = client.Places[PlaceId].GraphDesk.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, PlaceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_List.g.cs new file mode 100644 index 00000000000..96559480a43 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/graph.desk")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsDesk_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Desk))] + public class GetMgPlaceAsDesk_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.Calendar.Client.Models.DeskCollectionResponse? result; + try + { + result = client.Places.GraphDesk.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.Places.GraphDesk.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/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor.g.cs new file mode 100644 index 00000000000..d3911a48d16 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/graph.floor")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsFloor", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.FloorCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Floor), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsFloorCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 0)] + public string PlaceId { 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-MgPlaceAsFloor_Get or Get-MgPlaceAsFloor_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsFloor_Get" : "Get-MgPlaceAsFloor_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" ? PlaceId : null); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn.g.cs new file mode 100644 index 00000000000..0023491f98a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.floor/checkIns")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsFloorCheckIn", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsFloorCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string CheckInClaimCalendarEventId { 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-MgPlaceAsFloorCheckIn_Get or Get-MgPlaceAsFloorCheckIn_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsFloorCheckIn_Get" : "Get-MgPlaceAsFloorCheckIn_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" ? CheckInClaimCalendarEventId : PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckInCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckInCount.g.cs new file mode 100644 index 00000000000..c36582f6865 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckInCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.floor/checkIns/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsFloorCheckInCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsFloorCheckInCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Places[PlaceId].GraphFloor.CheckIns.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, PlaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs new file mode 100644 index 00000000000..42ac2f6143b --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.floor/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsFloorCheckIn_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class GetMgPlaceAsFloorCheckIn_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { 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.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphFloor.CheckIns[CheckInClaimCalendarEventId].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, CheckInClaimCalendarEventId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs new file mode 100644 index 00000000000..7aab502b9c3 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.floor/checkIns")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsFloorCheckIn_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class GetMgPlaceAsFloorCheckIn_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.CheckInClaimCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphFloor.CheckIns.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.Places[PlaceId].GraphFloor.CheckIns.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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild.g.cs new file mode 100644 index 00000000000..af3376c7300 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.floor/children")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsFloorChild", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsFloorChildCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string PlaceId1 { 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-MgPlaceAsFloorChild_Get or Get-MgPlaceAsFloorChild_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsFloorChild_Get" : "Get-MgPlaceAsFloorChild_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" ? PlaceId1 : PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChildCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChildCount.g.cs new file mode 100644 index 00000000000..5f5a34a8641 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChildCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.floor/children/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsFloorChildCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsFloorChildCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Places[PlaceId].GraphFloor.Children.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, PlaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_Get.g.cs new file mode 100644 index 00000000000..c27f631a6c0 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.floor/children/{place-id1}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsFloorChild_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class GetMgPlaceAsFloorChild_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string PlaceId1 { 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.Calendar.Client.Models.Place? result; + try + { + result = client.Places[PlaceId].GraphFloor.Children[PlaceId1].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, PlaceId1); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_List.g.cs new file mode 100644 index 00000000000..7e3555f83f6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.floor/children")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsFloorChild_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class GetMgPlaceAsFloorChild_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.PlaceCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphFloor.Children.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.Places[PlaceId].GraphFloor.Children.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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_Get.g.cs new file mode 100644 index 00000000000..4b6054ca3b1 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.floor")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsFloor_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Floor))] + public class GetMgPlaceAsFloor_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.Floor? result; + try + { + result = client.Places[PlaceId].GraphFloor.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, PlaceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_List.g.cs new file mode 100644 index 00000000000..b2240265ac6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/graph.floor")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsFloor_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Floor))] + public class GetMgPlaceAsFloor_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.Calendar.Client.Models.FloorCollectionResponse? result; + try + { + result = client.Places.GraphFloor.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.Places.GraphFloor.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/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom.g.cs new file mode 100644 index 00000000000..1d432c433d9 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/graph.room")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoom", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Room), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsRoomCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 0)] + public string PlaceId { 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-MgPlaceAsRoom_Get or Get-MgPlaceAsRoom_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsRoom_Get" : "Get-MgPlaceAsRoom_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" ? PlaceId : null); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn.g.cs new file mode 100644 index 00000000000..096bda286f2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.room/checkIns")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomCheckIn", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsRoomCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string CheckInClaimCalendarEventId { 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-MgPlaceAsRoomCheckIn_Get or Get-MgPlaceAsRoomCheckIn_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsRoomCheckIn_Get" : "Get-MgPlaceAsRoomCheckIn_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" ? CheckInClaimCalendarEventId : PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckInCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckInCount.g.cs new file mode 100644 index 00000000000..7338b797793 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckInCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.room/checkIns/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomCheckInCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsRoomCheckInCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Places[PlaceId].GraphRoom.CheckIns.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, PlaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs new file mode 100644 index 00000000000..c08921be70c --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.room/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomCheckIn_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class GetMgPlaceAsRoomCheckIn_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { 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.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphRoom.CheckIns[CheckInClaimCalendarEventId].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, CheckInClaimCalendarEventId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs new file mode 100644 index 00000000000..068f4ed872a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.room/checkIns")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomCheckIn_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class GetMgPlaceAsRoomCheckIn_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.CheckInClaimCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphRoom.CheckIns.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.Places[PlaceId].GraphRoom.CheckIns.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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild.g.cs new file mode 100644 index 00000000000..4e2d2a506ee --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.room/children")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomChild", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsRoomChildCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string PlaceId1 { 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-MgPlaceAsRoomChild_Get or Get-MgPlaceAsRoomChild_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsRoomChild_Get" : "Get-MgPlaceAsRoomChild_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" ? PlaceId1 : PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChildCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChildCount.g.cs new file mode 100644 index 00000000000..820aa4b69a4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChildCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.room/children/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomChildCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsRoomChildCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Places[PlaceId].GraphRoom.Children.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, PlaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_Get.g.cs new file mode 100644 index 00000000000..1a4c54cafb2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.room/children/{place-id1}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomChild_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class GetMgPlaceAsRoomChild_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string PlaceId1 { 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.Calendar.Client.Models.Place? result; + try + { + result = client.Places[PlaceId].GraphRoom.Children[PlaceId1].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, PlaceId1); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_List.g.cs new file mode 100644 index 00000000000..6f62119703a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.room/children")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomChild_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class GetMgPlaceAsRoomChild_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.PlaceCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphRoom.Children.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.Places[PlaceId].GraphRoom.Children.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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList.g.cs new file mode 100644 index 00000000000..5ef93f76fb3 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/graph.roomList")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomList", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomListCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomList), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsRoomListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 0)] + public string PlaceId { 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-MgPlaceAsRoomList_Get or Get-MgPlaceAsRoomList_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsRoomList_Get" : "Get-MgPlaceAsRoomList_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" ? PlaceId : null); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn.g.cs new file mode 100644 index 00000000000..3b03b27cc23 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/checkIns")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListCheckIn", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsRoomListCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string CheckInClaimCalendarEventId { 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-MgPlaceAsRoomListCheckIn_Get or Get-MgPlaceAsRoomListCheckIn_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsRoomListCheckIn_Get" : "Get-MgPlaceAsRoomListCheckIn_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" ? CheckInClaimCalendarEventId : PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckInCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckInCount.g.cs new file mode 100644 index 00000000000..12c014f8e25 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckInCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/checkIns/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListCheckInCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsRoomListCheckInCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Places[PlaceId].GraphRoomList.CheckIns.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, PlaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs new file mode 100644 index 00000000000..ce6a3b2c241 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListCheckIn_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class GetMgPlaceAsRoomListCheckIn_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { 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.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphRoomList.CheckIns[CheckInClaimCalendarEventId].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, CheckInClaimCalendarEventId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs new file mode 100644 index 00000000000..43be5f5cadd --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/checkIns")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListCheckIn_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class GetMgPlaceAsRoomListCheckIn_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.CheckInClaimCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphRoomList.CheckIns.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.Places[PlaceId].GraphRoomList.CheckIns.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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild.g.cs new file mode 100644 index 00000000000..121a5cb877e --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/children")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListChild", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsRoomListChildCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string PlaceId1 { 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-MgPlaceAsRoomListChild_Get or Get-MgPlaceAsRoomListChild_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsRoomListChild_Get" : "Get-MgPlaceAsRoomListChild_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" ? PlaceId1 : PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChildCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChildCount.g.cs new file mode 100644 index 00000000000..fb057e2b817 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChildCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/children/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListChildCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsRoomListChildCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Places[PlaceId].GraphRoomList.Children.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, PlaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_Get.g.cs new file mode 100644 index 00000000000..5c205dbfb18 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/children/{place-id1}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListChild_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class GetMgPlaceAsRoomListChild_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string PlaceId1 { 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.Calendar.Client.Models.Place? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Children[PlaceId1].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, PlaceId1); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_List.g.cs new file mode 100644 index 00000000000..0bdfd256cb4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/children")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListChild_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class GetMgPlaceAsRoomListChild_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.PlaceCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Children.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.Places[PlaceId].GraphRoomList.Children.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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom.g.cs new file mode 100644 index 00000000000..510afe02e91 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/rooms")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListRoom", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Room), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsRoomListRoomCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string RoomId { 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-MgPlaceAsRoomListRoom_Get or Get-MgPlaceAsRoomListRoom_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsRoomListRoom_Get" : "Get-MgPlaceAsRoomListRoom_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" ? RoomId : PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn.g.cs new file mode 100644 index 00000000000..be04a4bbd18 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/rooms/{room-id}/checkIns")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListRoomCheckIn", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsRoomListRoomCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RoomId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string CheckInClaimCalendarEventId { 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-MgPlaceAsRoomListRoomCheckIn_Get or Get-MgPlaceAsRoomListRoomCheckIn_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsRoomListRoomCheckIn_Get" : "Get-MgPlaceAsRoomListRoomCheckIn_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" ? CheckInClaimCalendarEventId : RoomId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckInCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckInCount.g.cs new file mode 100644 index 00000000000..5818433b336 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckInCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/rooms/{room-id}/checkIns/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListRoomCheckInCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsRoomListRoomCheckInCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RoomId { 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.Places[PlaceId].GraphRoomList.Rooms[RoomId].CheckIns.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, RoomId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs new file mode 100644 index 00000000000..d9b814ae39e --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/rooms/{room-id}/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListRoomCheckIn_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class GetMgPlaceAsRoomListRoomCheckIn_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RoomId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CheckInClaimCalendarEventId { 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.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Rooms[RoomId].CheckIns[CheckInClaimCalendarEventId].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, CheckInClaimCalendarEventId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_List.g.cs new file mode 100644 index 00000000000..5e39cf1dcad --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/rooms/{room-id}/checkIns")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListRoomCheckIn_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class GetMgPlaceAsRoomListRoomCheckIn_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RoomId { 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.Calendar.Client.Models.CheckInClaimCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Rooms[RoomId].CheckIns.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.Places[PlaceId].GraphRoomList.Rooms[RoomId].CheckIns.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, RoomId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild.g.cs new file mode 100644 index 00000000000..5c1560d79fd --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/rooms/{room-id}/children")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListRoomChild", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsRoomListRoomChildCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RoomId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string PlaceId1 { 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-MgPlaceAsRoomListRoomChild_Get or Get-MgPlaceAsRoomListRoomChild_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsRoomListRoomChild_Get" : "Get-MgPlaceAsRoomListRoomChild_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" ? PlaceId1 : RoomId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChildCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChildCount.g.cs new file mode 100644 index 00000000000..7f277c91482 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChildCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/rooms/{room-id}/children/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListRoomChildCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsRoomListRoomChildCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RoomId { 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.Places[PlaceId].GraphRoomList.Rooms[RoomId].Children.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, RoomId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_Get.g.cs new file mode 100644 index 00000000000..6f2e51da03f --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/rooms/{room-id}/children/{place-id1}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListRoomChild_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class GetMgPlaceAsRoomListRoomChild_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RoomId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string PlaceId1 { 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.Calendar.Client.Models.Place? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Rooms[RoomId].Children[PlaceId1].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, PlaceId1); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_List.g.cs new file mode 100644 index 00000000000..9fd943223ac --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/rooms/{room-id}/children")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListRoomChild_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class GetMgPlaceAsRoomListRoomChild_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RoomId { 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.Calendar.Client.Models.PlaceCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Rooms[RoomId].Children.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.Places[PlaceId].GraphRoomList.Rooms[RoomId].Children.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, RoomId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCount.g.cs new file mode 100644 index 00000000000..054edcfa41a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/rooms/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListRoomCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsRoomListRoomCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Places[PlaceId].GraphRoomList.Rooms.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, PlaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs new file mode 100644 index 00000000000..b5c4a498e0f --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/rooms/{room-id}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListRoom_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Room))] + public class GetMgPlaceAsRoomListRoom_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RoomId { 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.Calendar.Client.Models.Room? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Rooms[RoomId].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, RoomId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs new file mode 100644 index 00000000000..3edb1d42df5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/rooms")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListRoom_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Room))] + public class GetMgPlaceAsRoomListRoom_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.RoomCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Rooms.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.Places[PlaceId].GraphRoomList.Rooms.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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace.g.cs new file mode 100644 index 00000000000..a905a38636f --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/workspaces")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListWorkspace", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.WorkspaceCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsRoomListWorkspaceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string WorkspaceId { 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-MgPlaceAsRoomListWorkspace_Get or Get-MgPlaceAsRoomListWorkspace_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsRoomListWorkspace_Get" : "Get-MgPlaceAsRoomListWorkspace_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" ? WorkspaceId : PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn.g.cs new file mode 100644 index 00000000000..ff4878b5493 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/workspaces/{workspace-id}/checkIns")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListWorkspaceCheckIn", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsRoomListWorkspaceCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string WorkspaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string CheckInClaimCalendarEventId { 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-MgPlaceAsRoomListWorkspaceCheckIn_Get or Get-MgPlaceAsRoomListWorkspaceCheckIn_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsRoomListWorkspaceCheckIn_Get" : "Get-MgPlaceAsRoomListWorkspaceCheckIn_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" ? CheckInClaimCalendarEventId : WorkspaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckInCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckInCount.g.cs new file mode 100644 index 00000000000..aac3775cb4f --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckInCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/workspaces/{workspace-id}/checkIns/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListWorkspaceCheckInCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsRoomListWorkspaceCheckInCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string WorkspaceId { 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.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].CheckIns.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, WorkspaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs new file mode 100644 index 00000000000..9d10f318513 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/workspaces/{workspace-id}/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListWorkspaceCheckIn_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class GetMgPlaceAsRoomListWorkspaceCheckIn_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string WorkspaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CheckInClaimCalendarEventId { 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.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].CheckIns[CheckInClaimCalendarEventId].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, CheckInClaimCalendarEventId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs new file mode 100644 index 00000000000..baaeea4c142 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/workspaces/{workspace-id}/checkIns")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListWorkspaceCheckIn_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class GetMgPlaceAsRoomListWorkspaceCheckIn_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string WorkspaceId { 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.Calendar.Client.Models.CheckInClaimCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].CheckIns.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.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].CheckIns.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, WorkspaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild.g.cs new file mode 100644 index 00000000000..6b1014b1e3f --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/workspaces/{workspace-id}/children")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListWorkspaceChild", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsRoomListWorkspaceChildCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string WorkspaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string PlaceId1 { 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-MgPlaceAsRoomListWorkspaceChild_Get or Get-MgPlaceAsRoomListWorkspaceChild_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsRoomListWorkspaceChild_Get" : "Get-MgPlaceAsRoomListWorkspaceChild_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" ? PlaceId1 : WorkspaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChildCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChildCount.g.cs new file mode 100644 index 00000000000..69aa806b1ee --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChildCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/workspaces/{workspace-id}/children/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListWorkspaceChildCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsRoomListWorkspaceChildCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string WorkspaceId { 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.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].Children.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, WorkspaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_Get.g.cs new file mode 100644 index 00000000000..d996912c6cf --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/workspaces/{workspace-id}/children/{place-id1}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListWorkspaceChild_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class GetMgPlaceAsRoomListWorkspaceChild_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string WorkspaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string PlaceId1 { 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.Calendar.Client.Models.Place? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].Children[PlaceId1].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, PlaceId1); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_List.g.cs new file mode 100644 index 00000000000..a23c8494ae5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/workspaces/{workspace-id}/children")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListWorkspaceChild_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class GetMgPlaceAsRoomListWorkspaceChild_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string WorkspaceId { 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.Calendar.Client.Models.PlaceCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].Children.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.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].Children.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, WorkspaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCount.g.cs new file mode 100644 index 00000000000..e1ffdbd36d6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/workspaces/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListWorkspaceCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsRoomListWorkspaceCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Places[PlaceId].GraphRoomList.Workspaces.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, PlaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs new file mode 100644 index 00000000000..339cd505ac7 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/workspaces/{workspace-id}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListWorkspace_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace))] + public class GetMgPlaceAsRoomListWorkspace_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string WorkspaceId { 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.Calendar.Client.Models.Workspace? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].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, WorkspaceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs new file mode 100644 index 00000000000..3820de80715 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList/workspaces")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomListWorkspace_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace))] + public class GetMgPlaceAsRoomListWorkspace_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.WorkspaceCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Workspaces.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.Places[PlaceId].GraphRoomList.Workspaces.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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs new file mode 100644 index 00000000000..31d78ccd284 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.roomList")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomList_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomList))] + public class GetMgPlaceAsRoomList_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.RoomList? result; + try + { + result = client.Places[PlaceId].GraphRoomList.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, PlaceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_List.g.cs new file mode 100644 index 00000000000..f161e4f9f9a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/graph.roomList")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoomList_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomList))] + public class GetMgPlaceAsRoomList_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.Calendar.Client.Models.RoomListCollectionResponse? result; + try + { + result = client.Places.GraphRoomList.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.Places.GraphRoomList.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/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_Get.g.cs new file mode 100644 index 00000000000..0c80c54b485 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.room")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoom_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Room))] + public class GetMgPlaceAsRoom_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.Room? result; + try + { + result = client.Places[PlaceId].GraphRoom.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, PlaceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_List.g.cs new file mode 100644 index 00000000000..d63120b250e --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/graph.room")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsRoom_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Room))] + public class GetMgPlaceAsRoom_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.Calendar.Client.Models.RoomCollectionResponse? result; + try + { + result = client.Places.GraphRoom.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.Places.GraphRoom.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/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection.g.cs new file mode 100644 index 00000000000..67e494ee425 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/graph.section")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsSection", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Section), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsSectionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 0)] + public string PlaceId { 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-MgPlaceAsSection_Get or Get-MgPlaceAsSection_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsSection_Get" : "Get-MgPlaceAsSection_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" ? PlaceId : null); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn.g.cs new file mode 100644 index 00000000000..9b14eba9f52 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.section/checkIns")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsSectionCheckIn", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsSectionCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string CheckInClaimCalendarEventId { 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-MgPlaceAsSectionCheckIn_Get or Get-MgPlaceAsSectionCheckIn_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsSectionCheckIn_Get" : "Get-MgPlaceAsSectionCheckIn_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" ? CheckInClaimCalendarEventId : PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckInCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckInCount.g.cs new file mode 100644 index 00000000000..dd70bcfc98a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckInCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.section/checkIns/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsSectionCheckInCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsSectionCheckInCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Places[PlaceId].GraphSection.CheckIns.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, PlaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs new file mode 100644 index 00000000000..27c481b0325 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.section/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsSectionCheckIn_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class GetMgPlaceAsSectionCheckIn_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { 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.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphSection.CheckIns[CheckInClaimCalendarEventId].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, CheckInClaimCalendarEventId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs new file mode 100644 index 00000000000..343a695c87e --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.section/checkIns")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsSectionCheckIn_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class GetMgPlaceAsSectionCheckIn_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.CheckInClaimCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphSection.CheckIns.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.Places[PlaceId].GraphSection.CheckIns.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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild.g.cs new file mode 100644 index 00000000000..4f2733d2cdd --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.section/children")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsSectionChild", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsSectionChildCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string PlaceId1 { 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-MgPlaceAsSectionChild_Get or Get-MgPlaceAsSectionChild_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsSectionChild_Get" : "Get-MgPlaceAsSectionChild_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" ? PlaceId1 : PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChildCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChildCount.g.cs new file mode 100644 index 00000000000..a0cd9a17cfd --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChildCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.section/children/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsSectionChildCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsSectionChildCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Places[PlaceId].GraphSection.Children.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, PlaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_Get.g.cs new file mode 100644 index 00000000000..4053a02d797 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.section/children/{place-id1}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsSectionChild_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class GetMgPlaceAsSectionChild_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string PlaceId1 { 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.Calendar.Client.Models.Place? result; + try + { + result = client.Places[PlaceId].GraphSection.Children[PlaceId1].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, PlaceId1); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_List.g.cs new file mode 100644 index 00000000000..8cd76de19ed --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.section/children")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsSectionChild_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class GetMgPlaceAsSectionChild_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.PlaceCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphSection.Children.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.Places[PlaceId].GraphSection.Children.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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_Get.g.cs new file mode 100644 index 00000000000..47c1d587199 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.section")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsSection_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Section))] + public class GetMgPlaceAsSection_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.Section? result; + try + { + result = client.Places[PlaceId].GraphSection.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, PlaceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_List.g.cs new file mode 100644 index 00000000000..61ac3f3b976 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/graph.section")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsSection_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Section))] + public class GetMgPlaceAsSection_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.Calendar.Client.Models.SectionCollectionResponse? result; + try + { + result = client.Places.GraphSection.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.Places.GraphSection.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/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace.g.cs new file mode 100644 index 00000000000..2e8d03f7edd --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/graph.workspace")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsWorkspace", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.WorkspaceCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsWorkspaceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 0)] + public string PlaceId { 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-MgPlaceAsWorkspace_Get or Get-MgPlaceAsWorkspace_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsWorkspace_Get" : "Get-MgPlaceAsWorkspace_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" ? PlaceId : null); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn.g.cs new file mode 100644 index 00000000000..a1bb3652368 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.workspace/checkIns")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsWorkspaceCheckIn", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsWorkspaceCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string CheckInClaimCalendarEventId { 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-MgPlaceAsWorkspaceCheckIn_Get or Get-MgPlaceAsWorkspaceCheckIn_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsWorkspaceCheckIn_Get" : "Get-MgPlaceAsWorkspaceCheckIn_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" ? CheckInClaimCalendarEventId : PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckInCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckInCount.g.cs new file mode 100644 index 00000000000..897dfabd3c6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckInCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.workspace/checkIns/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsWorkspaceCheckInCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsWorkspaceCheckInCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Places[PlaceId].GraphWorkspace.CheckIns.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, PlaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs new file mode 100644 index 00000000000..ce09c34858c --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.workspace/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsWorkspaceCheckIn_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class GetMgPlaceAsWorkspaceCheckIn_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { 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.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphWorkspace.CheckIns[CheckInClaimCalendarEventId].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, CheckInClaimCalendarEventId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs new file mode 100644 index 00000000000..2931d51f6da --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.workspace/checkIns")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsWorkspaceCheckIn_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class GetMgPlaceAsWorkspaceCheckIn_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.CheckInClaimCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphWorkspace.CheckIns.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.Places[PlaceId].GraphWorkspace.CheckIns.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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild.g.cs new file mode 100644 index 00000000000..bcf0f58677a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.workspace/children")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsWorkspaceChild", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceAsWorkspaceChildCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string PlaceId1 { 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-MgPlaceAsWorkspaceChild_Get or Get-MgPlaceAsWorkspaceChild_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceAsWorkspaceChild_Get" : "Get-MgPlaceAsWorkspaceChild_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" ? PlaceId1 : PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChildCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChildCount.g.cs new file mode 100644 index 00000000000..6c85930a891 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChildCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.workspace/children/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsWorkspaceChildCount")] + [OutputType(typeof(int))] + public class GetMgPlaceAsWorkspaceChildCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Places[PlaceId].GraphWorkspace.Children.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, PlaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_Get.g.cs new file mode 100644 index 00000000000..2e98a258c6c --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.workspace/children/{place-id1}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsWorkspaceChild_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class GetMgPlaceAsWorkspaceChild_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string PlaceId1 { 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.Calendar.Client.Models.Place? result; + try + { + result = client.Places[PlaceId].GraphWorkspace.Children[PlaceId1].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, PlaceId1); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_List.g.cs new file mode 100644 index 00000000000..52f80597710 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.workspace/children")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsWorkspaceChild_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class GetMgPlaceAsWorkspaceChild_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.PlaceCollectionResponse? result; + try + { + result = client.Places[PlaceId].GraphWorkspace.Children.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.Places[PlaceId].GraphWorkspace.Children.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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs new file mode 100644 index 00000000000..d5622782fa2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/graph.workspace")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsWorkspace_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace))] + public class GetMgPlaceAsWorkspace_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.Workspace? result; + try + { + result = client.Places[PlaceId].GraphWorkspace.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, PlaceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs new file mode 100644 index 00000000000..10fd5adf781 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/graph.workspace")] + [Cmdlet(VerbsCommon.Get, "MgPlaceAsWorkspace_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace))] + public class GetMgPlaceAsWorkspace_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.Calendar.Client.Models.WorkspaceCollectionResponse? result; + try + { + result = client.Places.GraphWorkspace.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.Places.GraphWorkspace.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/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn.g.cs new file mode 100644 index 00000000000..9efcc60b57d --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/checkIns")] + [Cmdlet(VerbsCommon.Get, "MgPlaceCheckIn", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string CheckInClaimCalendarEventId { 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-MgPlaceCheckIn_Get or Get-MgPlaceCheckIn_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceCheckIn_Get" : "Get-MgPlaceCheckIn_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" ? CheckInClaimCalendarEventId : PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckInCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckInCount.g.cs new file mode 100644 index 00000000000..fc546681805 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckInCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/checkIns/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceCheckInCount")] + [OutputType(typeof(int))] + public class GetMgPlaceCheckInCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Places[PlaceId].CheckIns.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, PlaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_Get.g.cs new file mode 100644 index 00000000000..aae9acf16c7 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceCheckIn_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class GetMgPlaceCheckIn_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { 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.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].CheckIns[CheckInClaimCalendarEventId].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, CheckInClaimCalendarEventId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_List.g.cs new file mode 100644 index 00000000000..56c8a6a20c8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/checkIns")] + [Cmdlet(VerbsCommon.Get, "MgPlaceCheckIn_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class GetMgPlaceCheckIn_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.CheckInClaimCollectionResponse? result; + try + { + result = client.Places[PlaceId].CheckIns.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.Places[PlaceId].CheckIns.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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild.g.cs new file mode 100644 index 00000000000..f696d7796b2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/children")] + [Cmdlet(VerbsCommon.Get, "MgPlaceChild", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place), ParameterSetName = new[] { "Get" })] + public class GetMgPlaceChildCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string PlaceId1 { 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-MgPlaceChild_Get or Get-MgPlaceChild_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgPlaceChild_Get" : "Get-MgPlaceChild_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" ? PlaceId1 : PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChildCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChildCount.g.cs new file mode 100644 index 00000000000..8b93239de46 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChildCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/children/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceChildCount")] + [OutputType(typeof(int))] + public class GetMgPlaceChildCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Places[PlaceId].Children.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, PlaceId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_Get.g.cs new file mode 100644 index 00000000000..4d7634c8abb --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/children/{place-id1}")] + [Cmdlet(VerbsCommon.Get, "MgPlaceChild_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class GetMgPlaceChild_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string PlaceId1 { 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.Calendar.Client.Models.Place? result; + try + { + result = client.Places[PlaceId].Children[PlaceId1].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, PlaceId1); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_List.g.cs new file mode 100644 index 00000000000..8f1db2aa156 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/children")] + [Cmdlet(VerbsCommon.Get, "MgPlaceChild_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class GetMgPlaceChild_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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.Calendar.Client.Models.PlaceCollectionResponse? result; + try + { + result = client.Places[PlaceId].Children.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.Places[PlaceId].Children.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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCount.g.cs new file mode 100644 index 00000000000..5c9aff063ae --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceCount")] + [OutputType(typeof(int))] + public class GetMgPlaceCountCommand : 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.Places.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/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsBuilding.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsBuilding.g.cs new file mode 100644 index 00000000000..aa900e54b5c --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsBuilding.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/graph.building/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceCountAsBuilding")] + [OutputType(typeof(int))] + public class GetMgPlaceCountAsBuildingCommand : 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.Places.GraphBuilding.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/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsDesk.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsDesk.g.cs new file mode 100644 index 00000000000..ee49c494665 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsDesk.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/graph.desk/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceCountAsDesk")] + [OutputType(typeof(int))] + public class GetMgPlaceCountAsDeskCommand : 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.Places.GraphDesk.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/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsFloor.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsFloor.g.cs new file mode 100644 index 00000000000..f922922abde --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsFloor.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/graph.floor/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceCountAsFloor")] + [OutputType(typeof(int))] + public class GetMgPlaceCountAsFloorCommand : 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.Places.GraphFloor.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/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsRoom.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsRoom.g.cs new file mode 100644 index 00000000000..ff09723dc9e --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsRoom.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/graph.room/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceCountAsRoom")] + [OutputType(typeof(int))] + public class GetMgPlaceCountAsRoomCommand : 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.Places.GraphRoom.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/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsRoomList.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsRoomList.g.cs new file mode 100644 index 00000000000..cfedf7ba6c4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsRoomList.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/graph.roomList/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceCountAsRoomList")] + [OutputType(typeof(int))] + public class GetMgPlaceCountAsRoomListCommand : 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.Places.GraphRoomList.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/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsSection.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsSection.g.cs new file mode 100644 index 00000000000..5dbafcd1baf --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsSection.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/graph.section/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceCountAsSection")] + [OutputType(typeof(int))] + public class GetMgPlaceCountAsSectionCommand : 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.Places.GraphSection.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/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsWorkspace.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsWorkspace.g.cs new file mode 100644 index 00000000000..f2886cff66a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsWorkspace.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/graph.workspace/$count")] + [Cmdlet(VerbsCommon.Get, "MgPlaceCountAsWorkspace")] + [OutputType(typeof(int))] + public class GetMgPlaceCountAsWorkspaceCommand : 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.Places.GraphWorkspace.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/Calendar/wrapper/beta/Cmdlets/GetMgPlaceDescendants.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceDescendants.g.cs new file mode 100644 index 00000000000..a5ca22bacc3 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceDescendants.g.cs @@ -0,0 +1,105 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/{place-id}/descendants()")] + [Cmdlet(VerbsCommon.Get, "MgPlaceDescendants")] + [OutputType(typeof(global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Descendants.DescendantsGetResponse))] + public class GetMgPlaceDescendantsCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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); + + + global::Microsoft.Graph.PowerShell.Calendar.Client.Places.Item.Descendants.DescendantsGetResponse? result; + try + { + result = client.Places[PlaceId].Descendants.GetAsDescendantsGetResponseAsync(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, PlaceId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceGetOperationWithId.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceGetOperationWithId.g.cs new file mode 100644 index 00000000000..2fc6ebfc12b --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceGetOperationWithId.g.cs @@ -0,0 +1,65 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/getOperation(id='{id}')")] + [Cmdlet(VerbsCommon.Get, "MgPlaceGetOperationWithId")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceOperation))] + public class GetMgPlaceGetOperationWithIdCommand : GraphClientCmdlet + { + + + [Parameter(Mandatory = true, Position = 0, + HelpMessage = "Value for the 'id' parameter of this OData function.")] + public string Id { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + var pathParameters = new Dictionary + { + { "baseurl", requestAdapter.BaseUrl! }, + { "id", Id }, + }; + var requestBuilder = new global::Microsoft.Graph.PowerShell.Calendar.Client.Places.GetOperationWithId.GetOperationWithIdRequestBuilder(pathParameters, requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceOperation? 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, null); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceListOperations.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceListOperations.g.cs new file mode 100644 index 00000000000..fe302f3e322 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceListOperations.g.cs @@ -0,0 +1,104 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/places/listOperations()")] + [Cmdlet(VerbsCommon.Get, "MgPlaceListOperations")] + [OutputType(typeof(global::Microsoft.Graph.PowerShell.Calendar.Client.Places.ListOperations.ListOperationsGetResponse))] + public class GetMgPlaceListOperationsCommand : 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; } + + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + global::Microsoft.Graph.PowerShell.Calendar.Client.Places.ListOperations.ListOperationsGetResponse? result; + try + { + result = client.Places.ListOperations.GetAsListOperationsGetResponseAsync(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/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar.g.cs new file mode 100644 index 00000000000..e94c79b5414 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendars")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendar", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar), ParameterSetName = new[] { "Get" })] + public class GetMgUserCalendarCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string CalendarId { 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-MgUserCalendar_Get or Get-MgUserCalendar_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgUserCalendar_Get" : "Get-MgUserCalendar_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" ? CalendarId : UserId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarAllowedCalendarSharingRolesWithUser.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarAllowedCalendarSharingRolesWithUser.g.cs new file mode 100644 index 00000000000..c0d1def3ed0 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarAllowedCalendarSharingRolesWithUser.g.cs @@ -0,0 +1,97 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendars/{calendar-id}/allowedCalendarSharingRoles(User='{User}')")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarAllowedCalendarSharingRolesWithUser")] + [OutputType(typeof(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse))] + public class GetMgUserCalendarAllowedCalendarSharingRolesWithUserCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarId { get; set; } = string.Empty; + + [Parameter(Mandatory = true, Position = 2, + HelpMessage = "Value for the 'User' parameter of this OData function.")] + public string User { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { 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! }, + { "user%2Did", UserId }, + { "calendar%2Did", CalendarId }, + { "User", User }, + }; + var requestBuilder = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder(pathParameters, requestAdapter); + + global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse? result; + try + { + result = requestBuilder.GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + 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, CalendarId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarCount.g.cs new file mode 100644 index 00000000000..4c28b5dca16 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendars/$count")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarCount")] + [OutputType(typeof(int))] + public class GetMgUserCalendarCountCommand : 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].Calendars.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/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarDelta.g.cs new file mode 100644 index 00000000000..ce1534d2e49 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarDelta.g.cs @@ -0,0 +1,177 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendars/delta()")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarDelta", DefaultParameterSetName = "DeltaSync")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] + public class GetMgUserCalendarDeltaCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0, ParameterSetName = "DeltaSync")] + public string UserId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public SwitchParameter Count { get; set; } + + // Resumes a previous sync from the link that run published. Universal: every delta + // request builder accepts a raw URL, whereas a token argument exists on only a few. + [Parameter(Mandatory = true, ParameterSetName = "Resume")] + public string DeltaLink { get; set; } = string.Empty; + + // Follows @odata.nextLink through the change set. Without it only the first page returns, + // plus a warning when more pages exist. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + // Receives the @odata.deltaLink that terminates the change set, for the next sync round. + // A named variable is how this SDK already returns a scalar alongside a pipeline + // (-CountVariable on the published list cmdlets). + [Parameter(Mandatory = false)] + [Alias("DLV")] + public string? DeltaLinkVariable { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // Cleared before the request so a failed or interrupted run cannot leave the previous + // run's link readable, which would silently resume from the wrong point. + if (this.IsParameterBound(nameof(DeltaLinkVariable))) + SessionState.PSVariable.Set(DeltaLinkVariable, null); + + global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Delta.DeltaGetResponse? result; + try + { + result = ParameterSetName == "Resume" + ? client.Users[UserId].Calendars.Delta.WithUrl(ValidateContinuationUrl(DeltaLink!, requestAdapter, nameof(DeltaLink))).GetAsDeltaGetResponseAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult() + : client.Users[UserId].Calendars.Delta.GetAsDeltaGetResponseAsync(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(); + + var fetched = 0; + while (true) + { + if (result?.Value is { } items) + { + WriteObject(items, enumerateCollection: true); + fetched += items.Count; + } + + var nextLink = result?.OdataNextLink; + var deltaLink = result?.OdataDeltaLink; + + // A response cannot be both continued and terminated; treating one as + // authoritative would silently drop pages or resume from a partial set. + if (!string.IsNullOrEmpty(nextLink) && !string.IsNullOrEmpty(deltaLink)) + { + ThrowTerminatingError(new ErrorRecord( + new InvalidOperationException("The response carries both @odata.nextLink and @odata.deltaLink, which is not a valid delta response."), + "InvalidDeltaResponse", ErrorCategory.InvalidData, targetObject: null)); + return; + } + + if (!string.IsNullOrEmpty(deltaLink)) + { + if (this.IsParameterBound(nameof(DeltaLinkVariable))) + SessionState.PSVariable.Set(DeltaLinkVariable, deltaLink); + break; + } + + // No link of either kind: the change set ends here and there is nothing to + // publish for a next round. + if (string.IsNullOrEmpty(nextLink)) break; + + if (!All.IsPresent) + { + WriteWarning("More results are available. Use -All to return all pages."); + break; + } + + if (Stopping) break; + if (this.IsParameterBound(nameof(Top)) && fetched >= Top) break; + + result = client.Users[UserId].Calendars.Delta.WithUrl(nextLink).GetAsDeltaGetResponseAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, UserId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarEvent.g.cs new file mode 100644 index 00000000000..2e1a92edbe8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarEvent.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendars/{calendar-id}/events")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarEvent")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgUserCalendarEventCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarId { 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.Calendar.Client.Models.EventCollectionResponse? result; + try + { + result = client.Users[UserId].Calendars[CalendarId].Events.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].Calendars[CalendarId].Events.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, CalendarId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup.g.cs new file mode 100644 index 00000000000..97ff5c490b9 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroup", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroupCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup), ParameterSetName = new[] { "Get" })] + public class GetMgUserCalendarGroupCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string CalendarGroupId { 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-MgUserCalendarGroup_Get or Get-MgUserCalendarGroup_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgUserCalendarGroup_Get" : "Get-MgUserCalendarGroup_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" ? CalendarGroupId : UserId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs new file mode 100644 index 00000000000..eebf900b67f --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendar", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar), ParameterSetName = new[] { "Get" })] + public class GetMgUserCalendarGroupCalendarCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string CalendarId { 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-MgUserCalendarGroupCalendar_Get or Get-MgUserCalendarGroupCalendar_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgUserCalendarGroupCalendar_Get" : "Get-MgUserCalendarGroupCalendar_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" ? CalendarId : CalendarGroupId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs new file mode 100644 index 00000000000..727bc2b47cc --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs @@ -0,0 +1,100 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/allowedCalendarSharingRoles(User='{User}')")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUser")] + [OutputType(typeof(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse))] + public class GetMgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUserCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + + [Parameter(Mandatory = true, Position = 3, + HelpMessage = "Value for the 'User' parameter of this OData function.")] + public string User { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { 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! }, + { "user%2Did", UserId }, + { "calendarGroup%2Did", CalendarGroupId }, + { "calendar%2Did", CalendarId }, + { "User", User }, + }; + var requestBuilder = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder(pathParameters, requestAdapter); + + global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse? result; + try + { + result = requestBuilder.GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + 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, CalendarId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarCount.g.cs new file mode 100644 index 00000000000..a52629de083 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/$count")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarCount")] + [OutputType(typeof(int))] + public class GetMgUserCalendarGroupCalendarCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { 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].CalendarGroups[CalendarGroupId].Calendars.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, CalendarGroupId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarDelta.g.cs new file mode 100644 index 00000000000..eb707834f22 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarDelta.g.cs @@ -0,0 +1,179 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/delta()")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarDelta", DefaultParameterSetName = "DeltaSync")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] + public class GetMgUserCalendarGroupCalendarDeltaCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0, ParameterSetName = "DeltaSync")] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1, ParameterSetName = "DeltaSync")] + public string CalendarGroupId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public SwitchParameter Count { get; set; } + + // Resumes a previous sync from the link that run published. Universal: every delta + // request builder accepts a raw URL, whereas a token argument exists on only a few. + [Parameter(Mandatory = true, ParameterSetName = "Resume")] + public string DeltaLink { get; set; } = string.Empty; + + // Follows @odata.nextLink through the change set. Without it only the first page returns, + // plus a warning when more pages exist. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + // Receives the @odata.deltaLink that terminates the change set, for the next sync round. + // A named variable is how this SDK already returns a scalar alongside a pipeline + // (-CountVariable on the published list cmdlets). + [Parameter(Mandatory = false)] + [Alias("DLV")] + public string? DeltaLinkVariable { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // Cleared before the request so a failed or interrupted run cannot leave the previous + // run's link readable, which would silently resume from the wrong point. + if (this.IsParameterBound(nameof(DeltaLinkVariable))) + SessionState.PSVariable.Set(DeltaLinkVariable, null); + + global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Delta.DeltaGetResponse? result; + try + { + result = ParameterSetName == "Resume" + ? client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars.Delta.WithUrl(ValidateContinuationUrl(DeltaLink!, requestAdapter, nameof(DeltaLink))).GetAsDeltaGetResponseAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult() + : client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars.Delta.GetAsDeltaGetResponseAsync(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(); + + var fetched = 0; + while (true) + { + if (result?.Value is { } items) + { + WriteObject(items, enumerateCollection: true); + fetched += items.Count; + } + + var nextLink = result?.OdataNextLink; + var deltaLink = result?.OdataDeltaLink; + + // A response cannot be both continued and terminated; treating one as + // authoritative would silently drop pages or resume from a partial set. + if (!string.IsNullOrEmpty(nextLink) && !string.IsNullOrEmpty(deltaLink)) + { + ThrowTerminatingError(new ErrorRecord( + new InvalidOperationException("The response carries both @odata.nextLink and @odata.deltaLink, which is not a valid delta response."), + "InvalidDeltaResponse", ErrorCategory.InvalidData, targetObject: null)); + return; + } + + if (!string.IsNullOrEmpty(deltaLink)) + { + if (this.IsParameterBound(nameof(DeltaLinkVariable))) + SessionState.PSVariable.Set(DeltaLinkVariable, deltaLink); + break; + } + + // No link of either kind: the change set ends here and there is nothing to + // publish for a next round. + if (string.IsNullOrEmpty(nextLink)) break; + + if (!All.IsPresent) + { + WriteWarning("More results are available. Use -All to return all pages."); + break; + } + + if (Stopping) break; + if (this.IsParameterBound(nameof(Top)) && fetched >= Top) break; + + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars.Delta.WithUrl(nextLink).GetAsDeltaGetResponseAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CalendarGroupId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent.g.cs new file mode 100644 index 00000000000..4185da7c1f3 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEvent", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event), ParameterSetName = new[] { "Get" })] + public class GetMgUserCalendarGroupCalendarEventCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string EventId { 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-MgUserCalendarGroupCalendarEvent_Get or Get-MgUserCalendarGroupCalendarEvent_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgUserCalendarGroupCalendarEvent_Get" : "Get-MgUserCalendarGroupCalendarEvent_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" ? EventId : CalendarId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment.g.cs new file mode 100644 index 00000000000..a0558a5462c --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventAttachment", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment), ParameterSetName = new[] { "Get" })] + public class GetMgUserCalendarGroupCalendarEventAttachmentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 4)] + public string AttachmentId { 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-MgUserCalendarGroupCalendarEventAttachment_Get or Get-MgUserCalendarGroupCalendarEventAttachment_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgUserCalendarGroupCalendarEventAttachment_Get" : "Get-MgUserCalendarGroupCalendarEventAttachment_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" ? AttachmentId : EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachmentCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachmentCount.g.cs new file mode 100644 index 00000000000..9d6d5e751d2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachmentCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/$count")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventAttachmentCount")] + [OutputType(typeof(int))] + public class GetMgUserCalendarGroupCalendarEventAttachmentCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { 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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Attachments.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, EventId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment_Get.g.cs new file mode 100644 index 00000000000..e8be7b6db3d --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventAttachment_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment))] + public class GetMgUserCalendarGroupCalendarEventAttachment_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string AttachmentId { 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.Calendar.Client.Models.Attachment? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Attachments[AttachmentId].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, AttachmentId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment_List.g.cs new file mode 100644 index 00000000000..c961371279c --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventAttachment_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment))] + public class GetMgUserCalendarGroupCalendarEventAttachment_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { 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.Calendar.Client.Models.AttachmentCollectionResponse? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Attachments.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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Attachments.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, EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventCalendar.g.cs new file mode 100644 index 00000000000..a84f7118e8b --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventCalendar.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/calendar")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventCalendar")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] + public class GetMgUserCalendarGroupCalendarEventCalendarCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { 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.Calendar.Client.Models.Calendar? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Calendar.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, EventId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventCount.g.cs new file mode 100644 index 00000000000..87ac7716731 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/$count")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventCount")] + [OutputType(typeof(int))] + public class GetMgUserCalendarGroupCalendarEventCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { 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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events.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, CalendarId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventDelta.g.cs new file mode 100644 index 00000000000..d7b0f0fa37c --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventDelta.g.cs @@ -0,0 +1,181 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/delta()")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventDelta", DefaultParameterSetName = "DeltaSync")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgUserCalendarGroupCalendarEventDeltaCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0, ParameterSetName = "DeltaSync")] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1, ParameterSetName = "DeltaSync")] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2, ParameterSetName = "DeltaSync")] + public string CalendarId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public SwitchParameter Count { get; set; } + + // Resumes a previous sync from the link that run published. Universal: every delta + // request builder accepts a raw URL, whereas a token argument exists on only a few. + [Parameter(Mandatory = true, ParameterSetName = "Resume")] + public string DeltaLink { get; set; } = string.Empty; + + // Follows @odata.nextLink through the change set. Without it only the first page returns, + // plus a warning when more pages exist. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + // Receives the @odata.deltaLink that terminates the change set, for the next sync round. + // A named variable is how this SDK already returns a scalar alongside a pipeline + // (-CountVariable on the published list cmdlets). + [Parameter(Mandatory = false)] + [Alias("DLV")] + public string? DeltaLinkVariable { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // Cleared before the request so a failed or interrupted run cannot leave the previous + // run's link readable, which would silently resume from the wrong point. + if (this.IsParameterBound(nameof(DeltaLinkVariable))) + SessionState.PSVariable.Set(DeltaLinkVariable, null); + + global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Delta.DeltaGetResponse? result; + try + { + result = ParameterSetName == "Resume" + ? client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events.Delta.WithUrl(ValidateContinuationUrl(DeltaLink!, requestAdapter, nameof(DeltaLink))).GetAsDeltaGetResponseAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult() + : client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events.Delta.GetAsDeltaGetResponseAsync(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(); + + var fetched = 0; + while (true) + { + if (result?.Value is { } items) + { + WriteObject(items, enumerateCollection: true); + fetched += items.Count; + } + + var nextLink = result?.OdataNextLink; + var deltaLink = result?.OdataDeltaLink; + + // A response cannot be both continued and terminated; treating one as + // authoritative would silently drop pages or resume from a partial set. + if (!string.IsNullOrEmpty(nextLink) && !string.IsNullOrEmpty(deltaLink)) + { + ThrowTerminatingError(new ErrorRecord( + new InvalidOperationException("The response carries both @odata.nextLink and @odata.deltaLink, which is not a valid delta response."), + "InvalidDeltaResponse", ErrorCategory.InvalidData, targetObject: null)); + return; + } + + if (!string.IsNullOrEmpty(deltaLink)) + { + if (this.IsParameterBound(nameof(DeltaLinkVariable))) + SessionState.PSVariable.Set(DeltaLinkVariable, deltaLink); + break; + } + + // No link of either kind: the change set ends here and there is nothing to + // publish for a next round. + if (string.IsNullOrEmpty(nextLink)) break; + + if (!All.IsPresent) + { + WriteWarning("More results are available. Use -All to return all pages."); + break; + } + + if (Stopping) break; + if (this.IsParameterBound(nameof(Top)) && fetched >= Top) break; + + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events.Delta.WithUrl(nextLink).GetAsDeltaGetResponseAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CalendarId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension.g.cs new file mode 100644 index 00000000000..5d5557f3ad8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventExtension", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.ExtensionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension), ParameterSetName = new[] { "Get" })] + public class GetMgUserCalendarGroupCalendarEventExtensionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 4)] + public string ExtensionId { 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-MgUserCalendarGroupCalendarEventExtension_Get or Get-MgUserCalendarGroupCalendarEventExtension_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgUserCalendarGroupCalendarEventExtension_Get" : "Get-MgUserCalendarGroupCalendarEventExtension_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" ? ExtensionId : EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtensionCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtensionCount.g.cs new file mode 100644 index 00000000000..81cfd65524c --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtensionCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/$count")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventExtensionCount")] + [OutputType(typeof(int))] + public class GetMgUserCalendarGroupCalendarEventExtensionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { 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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Extensions.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, EventId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension_Get.g.cs new file mode 100644 index 00000000000..b5e1e7696e6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventExtension_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] + public class GetMgUserCalendarGroupCalendarEventExtension_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string ExtensionId { 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.Calendar.Client.Models.Extension? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Extensions[ExtensionId].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, ExtensionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension_List.g.cs new file mode 100644 index 00000000000..e7d7a9243e5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventExtension_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] + public class GetMgUserCalendarGroupCalendarEventExtension_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { 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.Calendar.Client.Models.ExtensionCollectionResponse? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Extensions.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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Extensions.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, EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventInstance.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventInstance.g.cs new file mode 100644 index 00000000000..b5b4ff63bde --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventInstance.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventInstance")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgUserCalendarGroupCalendarEventInstanceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { 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.Calendar.Client.Models.EventCollectionResponse? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].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.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].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, EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventInstanceDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventInstanceDelta.g.cs new file mode 100644 index 00000000000..eae2da324fb --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventInstanceDelta.g.cs @@ -0,0 +1,183 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances/delta()")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventInstanceDelta", DefaultParameterSetName = "DeltaSync")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgUserCalendarGroupCalendarEventInstanceDeltaCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0, ParameterSetName = "DeltaSync")] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1, ParameterSetName = "DeltaSync")] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2, ParameterSetName = "DeltaSync")] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3, ParameterSetName = "DeltaSync")] + public string EventId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public SwitchParameter Count { get; set; } + + // Resumes a previous sync from the link that run published. Universal: every delta + // request builder accepts a raw URL, whereas a token argument exists on only a few. + [Parameter(Mandatory = true, ParameterSetName = "Resume")] + public string DeltaLink { get; set; } = string.Empty; + + // Follows @odata.nextLink through the change set. Without it only the first page returns, + // plus a warning when more pages exist. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + // Receives the @odata.deltaLink that terminates the change set, for the next sync round. + // A named variable is how this SDK already returns a scalar alongside a pipeline + // (-CountVariable on the published list cmdlets). + [Parameter(Mandatory = false)] + [Alias("DLV")] + public string? DeltaLinkVariable { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // Cleared before the request so a failed or interrupted run cannot leave the previous + // run's link readable, which would silently resume from the wrong point. + if (this.IsParameterBound(nameof(DeltaLinkVariable))) + SessionState.PSVariable.Set(DeltaLinkVariable, null); + + global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaGetResponse? result; + try + { + result = ParameterSetName == "Resume" + ? client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Instances.Delta.WithUrl(ValidateContinuationUrl(DeltaLink!, requestAdapter, nameof(DeltaLink))).GetAsDeltaGetResponseAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult() + : client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Instances.Delta.GetAsDeltaGetResponseAsync(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(); + + var fetched = 0; + while (true) + { + if (result?.Value is { } items) + { + WriteObject(items, enumerateCollection: true); + fetched += items.Count; + } + + var nextLink = result?.OdataNextLink; + var deltaLink = result?.OdataDeltaLink; + + // A response cannot be both continued and terminated; treating one as + // authoritative would silently drop pages or resume from a partial set. + if (!string.IsNullOrEmpty(nextLink) && !string.IsNullOrEmpty(deltaLink)) + { + ThrowTerminatingError(new ErrorRecord( + new InvalidOperationException("The response carries both @odata.nextLink and @odata.deltaLink, which is not a valid delta response."), + "InvalidDeltaResponse", ErrorCategory.InvalidData, targetObject: null)); + return; + } + + if (!string.IsNullOrEmpty(deltaLink)) + { + if (this.IsParameterBound(nameof(DeltaLinkVariable))) + SessionState.PSVariable.Set(DeltaLinkVariable, deltaLink); + break; + } + + // No link of either kind: the change set ends here and there is nothing to + // publish for a next round. + if (string.IsNullOrEmpty(nextLink)) break; + + if (!All.IsPresent) + { + WriteWarning("More results are available. Use -All to return all pages."); + break; + } + + if (Stopping) break; + if (this.IsParameterBound(nameof(Top)) && fetched >= Top) break; + + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Instances.Delta.WithUrl(nextLink).GetAsDeltaGetResponseAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent_Get.g.cs new file mode 100644 index 00000000000..82db7fe9223 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEvent_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgUserCalendarGroupCalendarEvent_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { 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.Calendar.Client.Models.Event? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].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, EventId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent_List.g.cs new file mode 100644 index 00000000000..67a99d316b6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEvent_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgUserCalendarGroupCalendarEvent_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { 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.Calendar.Client.Models.EventCollectionResponse? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events.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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events.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, CalendarId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission.g.cs new file mode 100644 index 00000000000..a7e8fbf96b0 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarPermission", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermissionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission), ParameterSetName = new[] { "Get" })] + public class GetMgUserCalendarGroupCalendarPermissionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] + public string CalendarPermissionId { 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-MgUserCalendarGroupCalendarPermission_Get or Get-MgUserCalendarGroupCalendarPermission_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgUserCalendarGroupCalendarPermission_Get" : "Get-MgUserCalendarGroupCalendarPermission_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" ? CalendarPermissionId : CalendarId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermissionCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermissionCount.g.cs new file mode 100644 index 00000000000..6680ed9a36d --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermissionCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/$count")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarPermissionCount")] + [OutputType(typeof(int))] + public class GetMgUserCalendarGroupCalendarPermissionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { 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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarPermissions.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, CalendarId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission_Get.g.cs new file mode 100644 index 00000000000..6fe9c98cf0d --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarPermission_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission))] + public class GetMgUserCalendarGroupCalendarPermission_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CalendarPermissionId { 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.Calendar.Client.Models.CalendarPermission? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarPermissions[CalendarPermissionId].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, CalendarPermissionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission_List.g.cs new file mode 100644 index 00000000000..eeadca5837a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarPermission_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission))] + public class GetMgUserCalendarGroupCalendarPermission_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { 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.Calendar.Client.Models.CalendarPermissionCollectionResponse? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarPermissions.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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarPermissions.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, CalendarId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarView.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarView.g.cs new file mode 100644 index 00000000000..66560de1a7a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarView.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarView")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgUserCalendarGroupCalendarViewCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { 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.Calendar.Client.Models.EventCollectionResponse? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarView.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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarView.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, CalendarId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarViewDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarViewDelta.g.cs new file mode 100644 index 00000000000..1847a672f15 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarViewDelta.g.cs @@ -0,0 +1,181 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/delta()")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarViewDelta", DefaultParameterSetName = "DeltaSync")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgUserCalendarGroupCalendarViewDeltaCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0, ParameterSetName = "DeltaSync")] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1, ParameterSetName = "DeltaSync")] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2, ParameterSetName = "DeltaSync")] + public string CalendarId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public SwitchParameter Count { get; set; } + + // Resumes a previous sync from the link that run published. Universal: every delta + // request builder accepts a raw URL, whereas a token argument exists on only a few. + [Parameter(Mandatory = true, ParameterSetName = "Resume")] + public string DeltaLink { get; set; } = string.Empty; + + // Follows @odata.nextLink through the change set. Without it only the first page returns, + // plus a warning when more pages exist. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + // Receives the @odata.deltaLink that terminates the change set, for the next sync round. + // A named variable is how this SDK already returns a scalar alongside a pipeline + // (-CountVariable on the published list cmdlets). + [Parameter(Mandatory = false)] + [Alias("DLV")] + public string? DeltaLinkVariable { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // Cleared before the request so a failed or interrupted run cannot leave the previous + // run's link readable, which would silently resume from the wrong point. + if (this.IsParameterBound(nameof(DeltaLinkVariable))) + SessionState.PSVariable.Set(DeltaLinkVariable, null); + + global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Delta.DeltaGetResponse? result; + try + { + result = ParameterSetName == "Resume" + ? client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarView.Delta.WithUrl(ValidateContinuationUrl(DeltaLink!, requestAdapter, nameof(DeltaLink))).GetAsDeltaGetResponseAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult() + : client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarView.Delta.GetAsDeltaGetResponseAsync(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(); + + var fetched = 0; + while (true) + { + if (result?.Value is { } items) + { + WriteObject(items, enumerateCollection: true); + fetched += items.Count; + } + + var nextLink = result?.OdataNextLink; + var deltaLink = result?.OdataDeltaLink; + + // A response cannot be both continued and terminated; treating one as + // authoritative would silently drop pages or resume from a partial set. + if (!string.IsNullOrEmpty(nextLink) && !string.IsNullOrEmpty(deltaLink)) + { + ThrowTerminatingError(new ErrorRecord( + new InvalidOperationException("The response carries both @odata.nextLink and @odata.deltaLink, which is not a valid delta response."), + "InvalidDeltaResponse", ErrorCategory.InvalidData, targetObject: null)); + return; + } + + if (!string.IsNullOrEmpty(deltaLink)) + { + if (this.IsParameterBound(nameof(DeltaLinkVariable))) + SessionState.PSVariable.Set(DeltaLinkVariable, deltaLink); + break; + } + + // No link of either kind: the change set ends here and there is nothing to + // publish for a next round. + if (string.IsNullOrEmpty(nextLink)) break; + + if (!All.IsPresent) + { + WriteWarning("More results are available. Use -All to return all pages."); + break; + } + + if (Stopping) break; + if (this.IsParameterBound(nameof(Top)) && fetched >= Top) break; + + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarView.Delta.WithUrl(nextLink).GetAsDeltaGetResponseAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CalendarId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar_Get.g.cs new file mode 100644 index 00000000000..3d6237a8002 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendar_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] + public class GetMgUserCalendarGroupCalendar_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { 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.Calendar.Client.Models.Calendar? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].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, CalendarId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar_List.g.cs new file mode 100644 index 00000000000..a8f108c70bb --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendar_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] + public class GetMgUserCalendarGroupCalendar_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { 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.Calendar.Client.Models.CalendarCollectionResponse? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars.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].CalendarGroups[CalendarGroupId].Calendars.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, CalendarGroupId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCount.g.cs new file mode 100644 index 00000000000..c02aca2cda6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/$count")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCount")] + [OutputType(typeof(int))] + public class GetMgUserCalendarGroupCountCommand : 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].CalendarGroups.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/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_Get.g.cs new file mode 100644 index 00000000000..1759945a395 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroup_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup))] + public class GetMgUserCalendarGroup_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { 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.Calendar.Client.Models.CalendarGroup? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].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, CalendarGroupId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_List.g.cs new file mode 100644 index 00000000000..aeff8b33a50 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendarGroups")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroup_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup))] + public class GetMgUserCalendarGroup_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.Calendar.Client.Models.CalendarGroupCollectionResponse? result; + try + { + result = client.Users[UserId].CalendarGroups.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].CalendarGroups.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/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission.g.cs new file mode 100644 index 00000000000..561ce25612b --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendar/calendarPermissions")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarPermission", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermissionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission), ParameterSetName = new[] { "Get" })] + public class GetMgUserCalendarPermissionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string CalendarPermissionId { 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-MgUserCalendarPermission_Get or Get-MgUserCalendarPermission_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgUserCalendarPermission_Get" : "Get-MgUserCalendarPermission_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" ? CalendarPermissionId : UserId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermissionCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermissionCount.g.cs new file mode 100644 index 00000000000..202aa14272d --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermissionCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendar/calendarPermissions/$count")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarPermissionCount")] + [OutputType(typeof(int))] + public class GetMgUserCalendarPermissionCountCommand : 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].Calendar.CalendarPermissions.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/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_Get.g.cs new file mode 100644 index 00000000000..5dee1a8e417 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendar/calendarPermissions/{calendarPermission-id}")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarPermission_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission))] + public class GetMgUserCalendarPermission_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarPermissionId { 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.Calendar.Client.Models.CalendarPermission? result; + try + { + result = client.Users[UserId].Calendar.CalendarPermissions[CalendarPermissionId].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, CalendarPermissionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_List.g.cs new file mode 100644 index 00000000000..7bc00d7b93a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendar/calendarPermissions")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarPermission_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission))] + public class GetMgUserCalendarPermission_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.Calendar.Client.Models.CalendarPermissionCollectionResponse? result; + try + { + result = client.Users[UserId].Calendar.CalendarPermissions.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].Calendar.CalendarPermissions.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/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarView.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarView.g.cs new file mode 100644 index 00000000000..451e7ccf7d8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarView.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendar/calendarView")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarView")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgUserCalendarViewCommand : 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.Calendar.Client.Models.EventCollectionResponse? result; + try + { + result = client.Users[UserId].Calendar.CalendarView.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].Calendar.CalendarView.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/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarViewDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarViewDelta.g.cs new file mode 100644 index 00000000000..05030ba5a21 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarViewDelta.g.cs @@ -0,0 +1,179 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendars/{calendar-id}/calendarView/delta()")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarViewDelta", DefaultParameterSetName = "DeltaSync")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgUserCalendarViewDeltaCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0, ParameterSetName = "DeltaSync")] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1, ParameterSetName = "DeltaSync")] + public string CalendarId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public SwitchParameter Count { get; set; } + + // Resumes a previous sync from the link that run published. Universal: every delta + // request builder accepts a raw URL, whereas a token argument exists on only a few. + [Parameter(Mandatory = true, ParameterSetName = "Resume")] + public string DeltaLink { get; set; } = string.Empty; + + // Follows @odata.nextLink through the change set. Without it only the first page returns, + // plus a warning when more pages exist. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + // Receives the @odata.deltaLink that terminates the change set, for the next sync round. + // A named variable is how this SDK already returns a scalar alongside a pipeline + // (-CountVariable on the published list cmdlets). + [Parameter(Mandatory = false)] + [Alias("DLV")] + public string? DeltaLinkVariable { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // Cleared before the request so a failed or interrupted run cannot leave the previous + // run's link readable, which would silently resume from the wrong point. + if (this.IsParameterBound(nameof(DeltaLinkVariable))) + SessionState.PSVariable.Set(DeltaLinkVariable, null); + + global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarView.Delta.DeltaGetResponse? result; + try + { + result = ParameterSetName == "Resume" + ? client.Users[UserId].Calendars[CalendarId].CalendarView.Delta.WithUrl(ValidateContinuationUrl(DeltaLink!, requestAdapter, nameof(DeltaLink))).GetAsDeltaGetResponseAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult() + : client.Users[UserId].Calendars[CalendarId].CalendarView.Delta.GetAsDeltaGetResponseAsync(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(); + + var fetched = 0; + while (true) + { + if (result?.Value is { } items) + { + WriteObject(items, enumerateCollection: true); + fetched += items.Count; + } + + var nextLink = result?.OdataNextLink; + var deltaLink = result?.OdataDeltaLink; + + // A response cannot be both continued and terminated; treating one as + // authoritative would silently drop pages or resume from a partial set. + if (!string.IsNullOrEmpty(nextLink) && !string.IsNullOrEmpty(deltaLink)) + { + ThrowTerminatingError(new ErrorRecord( + new InvalidOperationException("The response carries both @odata.nextLink and @odata.deltaLink, which is not a valid delta response."), + "InvalidDeltaResponse", ErrorCategory.InvalidData, targetObject: null)); + return; + } + + if (!string.IsNullOrEmpty(deltaLink)) + { + if (this.IsParameterBound(nameof(DeltaLinkVariable))) + SessionState.PSVariable.Set(DeltaLinkVariable, deltaLink); + break; + } + + // No link of either kind: the change set ends here and there is nothing to + // publish for a next round. + if (string.IsNullOrEmpty(nextLink)) break; + + if (!All.IsPresent) + { + WriteWarning("More results are available. Use -All to return all pages."); + break; + } + + if (Stopping) break; + if (this.IsParameterBound(nameof(Top)) && fetched >= Top) break; + + result = client.Users[UserId].Calendars[CalendarId].CalendarView.Delta.WithUrl(nextLink).GetAsDeltaGetResponseAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CalendarId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_Get.g.cs new file mode 100644 index 00000000000..ee5be114a47 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendars/{calendar-id}")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendar_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] + public class GetMgUserCalendar_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarId { 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.Calendar.Client.Models.Calendar? result; + try + { + result = client.Users[UserId].Calendars[CalendarId].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, CalendarId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_List.g.cs new file mode 100644 index 00000000000..f11f64618fd --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendars")] + [Cmdlet(VerbsCommon.Get, "MgUserCalendar_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] + public class GetMgUserCalendar_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.Calendar.Client.Models.CalendarCollectionResponse? result; + try + { + result = client.Users[UserId].Calendars.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].Calendars.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/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendar.g.cs new file mode 100644 index 00000000000..475d3c7fd2a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendar.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendar")] + [Cmdlet(VerbsCommon.Get, "MgUserDefaultCalendar")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] + public class GetMgUserDefaultCalendarCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { 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.Calendar.Client.Models.Calendar? result; + try + { + result = client.Users[UserId].Calendar.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, UserId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs new file mode 100644 index 00000000000..10dbd44ab72 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendarEvent.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendar/events")] + [Cmdlet(VerbsCommon.Get, "MgUserDefaultCalendarEvent")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgUserDefaultCalendarEventCommand : 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.Calendar.Client.Models.EventCollectionResponse? result; + try + { + result = client.Users[UserId].Calendar.Events.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].Calendar.Events.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/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent.g.cs new file mode 100644 index 00000000000..245530664af --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/events")] + [Cmdlet(VerbsCommon.Get, "MgUserEvent", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event), ParameterSetName = new[] { "Get" })] + public class GetMgUserEventCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 1)] + public string EventId { 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-MgUserEvent_Get or Get-MgUserEvent_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgUserEvent_Get" : "Get-MgUserEvent_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" ? EventId : UserId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment.g.cs new file mode 100644 index 00000000000..a3a27711104 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/events/{event-id}/attachments")] + [Cmdlet(VerbsCommon.Get, "MgUserEventAttachment", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment), ParameterSetName = new[] { "Get" })] + public class GetMgUserEventAttachmentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string AttachmentId { 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-MgUserEventAttachment_Get or Get-MgUserEventAttachment_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgUserEventAttachment_Get" : "Get-MgUserEventAttachment_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" ? AttachmentId : EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachmentCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachmentCount.g.cs new file mode 100644 index 00000000000..1468bc09845 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachmentCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/events/{event-id}/attachments/$count")] + [Cmdlet(VerbsCommon.Get, "MgUserEventAttachmentCount")] + [OutputType(typeof(int))] + public class GetMgUserEventAttachmentCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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].Events[EventId].Attachments.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, EventId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_Get.g.cs new file mode 100644 index 00000000000..58aafb4bf8d --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/events/{event-id}/attachments/{attachment-id}")] + [Cmdlet(VerbsCommon.Get, "MgUserEventAttachment_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment))] + public class GetMgUserEventAttachment_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AttachmentId { 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.Calendar.Client.Models.Attachment? result; + try + { + result = client.Users[UserId].Events[EventId].Attachments[AttachmentId].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, AttachmentId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_List.g.cs new file mode 100644 index 00000000000..2e09a8ee09e --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/events/{event-id}/attachments")] + [Cmdlet(VerbsCommon.Get, "MgUserEventAttachment_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment))] + public class GetMgUserEventAttachment_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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.Calendar.Client.Models.AttachmentCollectionResponse? result; + try + { + result = client.Users[UserId].Events[EventId].Attachments.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].Events[EventId].Attachments.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, EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventCalendar.g.cs new file mode 100644 index 00000000000..f73dac92119 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventCalendar.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/events/{event-id}/calendar")] + [Cmdlet(VerbsCommon.Get, "MgUserEventCalendar")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] + public class GetMgUserEventCalendarCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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.Calendar.Client.Models.Calendar? result; + try + { + result = client.Users[UserId].Events[EventId].Calendar.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, EventId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventCount.g.cs new file mode 100644 index 00000000000..1274bc78915 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/events/$count")] + [Cmdlet(VerbsCommon.Get, "MgUserEventCount")] + [OutputType(typeof(int))] + public class GetMgUserEventCountCommand : 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].Events.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/Calendar/wrapper/beta/Cmdlets/GetMgUserEventDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventDelta.g.cs new file mode 100644 index 00000000000..9d0c0040f9f --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventDelta.g.cs @@ -0,0 +1,177 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/events/delta()")] + [Cmdlet(VerbsCommon.Get, "MgUserEventDelta", DefaultParameterSetName = "DeltaSync")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgUserEventDeltaCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0, ParameterSetName = "DeltaSync")] + public string UserId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public SwitchParameter Count { get; set; } + + // Resumes a previous sync from the link that run published. Universal: every delta + // request builder accepts a raw URL, whereas a token argument exists on only a few. + [Parameter(Mandatory = true, ParameterSetName = "Resume")] + public string DeltaLink { get; set; } = string.Empty; + + // Follows @odata.nextLink through the change set. Without it only the first page returns, + // plus a warning when more pages exist. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + // Receives the @odata.deltaLink that terminates the change set, for the next sync round. + // A named variable is how this SDK already returns a scalar alongside a pipeline + // (-CountVariable on the published list cmdlets). + [Parameter(Mandatory = false)] + [Alias("DLV")] + public string? DeltaLinkVariable { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // Cleared before the request so a failed or interrupted run cannot leave the previous + // run's link readable, which would silently resume from the wrong point. + if (this.IsParameterBound(nameof(DeltaLinkVariable))) + SessionState.PSVariable.Set(DeltaLinkVariable, null); + + global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Delta.DeltaGetResponse? result; + try + { + result = ParameterSetName == "Resume" + ? client.Users[UserId].Events.Delta.WithUrl(ValidateContinuationUrl(DeltaLink!, requestAdapter, nameof(DeltaLink))).GetAsDeltaGetResponseAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult() + : client.Users[UserId].Events.Delta.GetAsDeltaGetResponseAsync(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(); + + var fetched = 0; + while (true) + { + if (result?.Value is { } items) + { + WriteObject(items, enumerateCollection: true); + fetched += items.Count; + } + + var nextLink = result?.OdataNextLink; + var deltaLink = result?.OdataDeltaLink; + + // A response cannot be both continued and terminated; treating one as + // authoritative would silently drop pages or resume from a partial set. + if (!string.IsNullOrEmpty(nextLink) && !string.IsNullOrEmpty(deltaLink)) + { + ThrowTerminatingError(new ErrorRecord( + new InvalidOperationException("The response carries both @odata.nextLink and @odata.deltaLink, which is not a valid delta response."), + "InvalidDeltaResponse", ErrorCategory.InvalidData, targetObject: null)); + return; + } + + if (!string.IsNullOrEmpty(deltaLink)) + { + if (this.IsParameterBound(nameof(DeltaLinkVariable))) + SessionState.PSVariable.Set(DeltaLinkVariable, deltaLink); + break; + } + + // No link of either kind: the change set ends here and there is nothing to + // publish for a next round. + if (string.IsNullOrEmpty(nextLink)) break; + + if (!All.IsPresent) + { + WriteWarning("More results are available. Use -All to return all pages."); + break; + } + + if (Stopping) break; + if (this.IsParameterBound(nameof(Top)) && fetched >= Top) break; + + result = client.Users[UserId].Events.Delta.WithUrl(nextLink).GetAsDeltaGetResponseAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, UserId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension.g.cs new file mode 100644 index 00000000000..5eb4651717b --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension.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.Calendar.Client.Models; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/events/{event-id}/extensions")] + [Cmdlet(VerbsCommon.Get, "MgUserEventExtension", DefaultParameterSetName = "List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.ExtensionCollectionResponse), ParameterSetName = new[] { "List" })] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension), ParameterSetName = new[] { "Get" })] + public class GetMgUserEventExtensionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] + public string ExtensionId { 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-MgUserEventExtension_Get or Get-MgUserEventExtension_List, the two cmdlets + // that actually call Graph. + protected override void ProcessRecord() + { + var internalCmdletName = ParameterSetName == "Get" ? "Get-MgUserEventExtension_Get" : "Get-MgUserEventExtension_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" ? ExtensionId : EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtensionCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtensionCount.g.cs new file mode 100644 index 00000000000..7afbe906cb6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtensionCount.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.Calendar.Client; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/events/{event-id}/extensions/$count")] + [Cmdlet(VerbsCommon.Get, "MgUserEventExtensionCount")] + [OutputType(typeof(int))] + public class GetMgUserEventExtensionCountCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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].Events[EventId].Extensions.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, EventId); + return; + } + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_Get.g.cs new file mode 100644 index 00000000000..fba66a25ecd --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/events/{event-id}/extensions/{extension-id}")] + [Cmdlet(VerbsCommon.Get, "MgUserEventExtension_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] + public class GetMgUserEventExtension_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string ExtensionId { 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.Calendar.Client.Models.Extension? result; + try + { + result = client.Users[UserId].Events[EventId].Extensions[ExtensionId].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, ExtensionId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_List.g.cs new file mode 100644 index 00000000000..1c94212e25c --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/events/{event-id}/extensions")] + [Cmdlet(VerbsCommon.Get, "MgUserEventExtension_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] + public class GetMgUserEventExtension_ListCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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.Calendar.Client.Models.ExtensionCollectionResponse? result; + try + { + result = client.Users[UserId].Events[EventId].Extensions.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].Events[EventId].Extensions.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, EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstance.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstance.g.cs new file mode 100644 index 00000000000..ec8618ce44b --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstance.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/events/{event-id}/instances")] + [Cmdlet(VerbsCommon.Get, "MgUserEventInstance")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgUserEventInstanceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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.Calendar.Client.Models.EventCollectionResponse? result; + try + { + result = client.Users[UserId].Events[EventId].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.Users[UserId].Events[EventId].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, EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstanceDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstanceDelta.g.cs new file mode 100644 index 00000000000..c450c4f6fa8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstanceDelta.g.cs @@ -0,0 +1,179 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/events/{event-id}/instances/delta()")] + [Cmdlet(VerbsCommon.Get, "MgUserEventInstanceDelta", DefaultParameterSetName = "DeltaSync")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgUserEventInstanceDeltaCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0, ParameterSetName = "DeltaSync")] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1, ParameterSetName = "DeltaSync")] + public string EventId { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public string? Filter { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("Select")] + public string[]? Property { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("Expand")] + public string[]? ExpandProperty { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + [Alias("OrderBy")] + public string[]? Sort { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public string? Search { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public int Top { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public int Skip { get; set; } + + [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] + public SwitchParameter Count { get; set; } + + // Resumes a previous sync from the link that run published. Universal: every delta + // request builder accepts a raw URL, whereas a token argument exists on only a few. + [Parameter(Mandatory = true, ParameterSetName = "Resume")] + public string DeltaLink { get; set; } = string.Empty; + + // Follows @odata.nextLink through the change set. Without it only the first page returns, + // plus a warning when more pages exist. + [Parameter(Mandatory = false)] + public SwitchParameter All { get; set; } + + // Receives the @odata.deltaLink that terminates the change set, for the next sync round. + // A named variable is how this SDK already returns a scalar alongside a pipeline + // (-CountVariable on the published list cmdlets). + [Parameter(Mandatory = false)] + [Alias("DLV")] + public string? DeltaLinkVariable { get; set; } + + + + protected override void ProcessRecord() + { + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // Cleared before the request so a failed or interrupted run cannot leave the previous + // run's link readable, which would silently resume from the wrong point. + if (this.IsParameterBound(nameof(DeltaLinkVariable))) + SessionState.PSVariable.Set(DeltaLinkVariable, null); + + global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Instances.Delta.DeltaGetResponse? result; + try + { + result = ParameterSetName == "Resume" + ? client.Users[UserId].Events[EventId].Instances.Delta.WithUrl(ValidateContinuationUrl(DeltaLink!, requestAdapter, nameof(DeltaLink))).GetAsDeltaGetResponseAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult() + : client.Users[UserId].Events[EventId].Instances.Delta.GetAsDeltaGetResponseAsync(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(); + + var fetched = 0; + while (true) + { + if (result?.Value is { } items) + { + WriteObject(items, enumerateCollection: true); + fetched += items.Count; + } + + var nextLink = result?.OdataNextLink; + var deltaLink = result?.OdataDeltaLink; + + // A response cannot be both continued and terminated; treating one as + // authoritative would silently drop pages or resume from a partial set. + if (!string.IsNullOrEmpty(nextLink) && !string.IsNullOrEmpty(deltaLink)) + { + ThrowTerminatingError(new ErrorRecord( + new InvalidOperationException("The response carries both @odata.nextLink and @odata.deltaLink, which is not a valid delta response."), + "InvalidDeltaResponse", ErrorCategory.InvalidData, targetObject: null)); + return; + } + + if (!string.IsNullOrEmpty(deltaLink)) + { + if (this.IsParameterBound(nameof(DeltaLinkVariable))) + SessionState.PSVariable.Set(DeltaLinkVariable, deltaLink); + break; + } + + // No link of either kind: the change set ends here and there is nothing to + // publish for a next round. + if (string.IsNullOrEmpty(nextLink)) break; + + if (!All.IsPresent) + { + WriteWarning("More results are available. Use -All to return all pages."); + break; + } + + if (Stopping) break; + if (this.IsParameterBound(nameof(Top)) && fetched >= Top) break; + + result = client.Users[UserId].Events[EventId].Instances.Delta.WithUrl(nextLink).GetAsDeltaGetResponseAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_Get.g.cs new file mode 100644 index 00000000000..6bce61c8de4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/events/{event-id}")] + [Cmdlet(VerbsCommon.Get, "MgUserEvent_Get")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgUserEvent_GetCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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.Calendar.Client.Models.Event? result; + try + { + result = client.Users[UserId].Events[EventId].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, EventId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_List.g.cs new file mode 100644 index 00000000000..82468a1f7e6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/events")] + [Cmdlet(VerbsCommon.Get, "MgUserEvent_List")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class GetMgUserEvent_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.Calendar.Client.Models.EventCollectionResponse? result; + try + { + result = client.Users[UserId].Events.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].Events.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/Calendar/wrapper/beta/Cmdlets/InvokeMgCalendarUserCalendarAllowedCalendarSharingRoles.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgCalendarUserCalendarAllowedCalendarSharingRoles.g.cs new file mode 100644 index 00000000000..e5bb5dacea9 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgCalendarUserCalendarAllowedCalendarSharingRoles.g.cs @@ -0,0 +1,94 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("GET", "/users/{user-id}/calendar/allowedCalendarSharingRoles(User='{User}')")] + [Cmdlet(VerbsLifecycle.Invoke, "MgCalendarUserCalendarAllowedCalendarSharingRoles")] + [OutputType(typeof(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse))] + public class InvokeMgCalendarUserCalendarAllowedCalendarSharingRolesCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + + [Parameter(Mandatory = true, Position = 1, + HelpMessage = "Value for the 'User' parameter of this OData function.")] + public string User { get; set; } = string.Empty; + + + + [Parameter(Mandatory = false)] + public string? Filter { 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! }, + { "user%2Did", UserId }, + { "User", User }, + }; + var requestBuilder = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder(pathParameters, requestAdapter); + + global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendar.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse? result; + try + { + result = requestBuilder.GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(requestConfiguration => + { + if (this.IsParameterBound(nameof(Filter))) + requestConfiguration.QueryParameters.Filter = Filter; + + 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, UserId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupCalendarGetSchedule.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupCalendarGetSchedule.g.cs new file mode 100644 index 00000000000..5d175d9bf20 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupCalendarGetSchedule.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/groups/{group-id}/calendar/getSchedule")] + [Cmdlet(VerbsLifecycle.Invoke, "MgGroupCalendarGetSchedule", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetSchedulePostResponse))] + public class InvokeMgGroupCalendarGetScheduleCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string[]? Schedules { get; set; } + + [Parameter(Mandatory = false)] + public int? AvailabilityViewInterval { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? EndTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? StartTime { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(GroupId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetSchedulePostRequestBody(); + + if (this.IsParameterBound(nameof(Schedules))) + body.Schedules = Schedules!.ToList(); + + if (this.IsParameterBound(nameof(AvailabilityViewInterval))) + body.AvailabilityViewInterval = AvailabilityViewInterval; + if (this.IsParameterBound(nameof(EndTime))) + body.EndTime = EndTime; + + if (this.IsParameterBound(nameof(StartTime))) + body.StartTime = StartTime; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetSchedulePostResponse? result; + try + { + result = client.Groups[GroupId].Calendar.GetSchedule.PostAsGetSchedulePostResponseAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GroupId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupCalendarPermanentDelete.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupCalendarPermanentDelete.g.cs new file mode 100644 index 00000000000..3d07daa37f2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupCalendarPermanentDelete.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/groups/{group-id}/calendar/permanentDelete")] + [Cmdlet(VerbsLifecycle.Invoke, "MgGroupCalendarPermanentDelete", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgGroupCalendarPermanentDeleteCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(GroupId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Groups[GroupId].Calendar.PermanentDelete.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, GroupId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventAccept.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventAccept.g.cs new file mode 100644 index 00000000000..b8ff877340a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventAccept.g.cs @@ -0,0 +1,73 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/groups/{group-id}/events/{event-id}/accept")] + [Cmdlet(VerbsLifecycle.Invoke, "MgGroupEventAccept", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgGroupEventAcceptCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public bool? SendResponse { get; set; } + + [Parameter(Mandatory = false)] + public string? Comment { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Accept.AcceptPostRequestBody(); + + if (this.IsParameterBound(nameof(SendResponse))) + body.SendResponse = SendResponse; + + if (this.IsParameterBound(nameof(Comment))) + body.Comment = Comment; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Groups[GroupId].Events[EventId].Accept.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventAttachmentCreateUploadSession.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventAttachmentCreateUploadSession.g.cs new file mode 100644 index 00000000000..f2ac49ea940 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventAttachmentCreateUploadSession.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/groups/{group-id}/events/{event-id}/attachments/createUploadSession")] + [Cmdlet(VerbsLifecycle.Invoke, "MgGroupEventAttachmentCreateUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.UploadSession))] + public class InvokeMgGroupEventAttachmentCreateUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem? AttachmentItem { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); + + if (this.IsParameterBound(nameof(AttachmentItem))) + body.AttachmentItem = AttachmentItem; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.UploadSession? result; + try + { + result = client.Groups[GroupId].Events[EventId].Attachments.CreateUploadSession.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventCancel.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventCancel.g.cs new file mode 100644 index 00000000000..c15283662d0 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventCancel.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/groups/{group-id}/events/{event-id}/cancel")] + [Cmdlet(VerbsLifecycle.Invoke, "MgGroupEventCancel", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgGroupEventCancelCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Comment { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Cancel.CancelPostRequestBody(); + + if (this.IsParameterBound(nameof(Comment))) + body.Comment = Comment; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Groups[GroupId].Events[EventId].Cancel.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventDecline.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventDecline.g.cs new file mode 100644 index 00000000000..d47d9bf0c90 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventDecline.g.cs @@ -0,0 +1,77 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/groups/{group-id}/events/{event-id}/decline")] + [Cmdlet(VerbsLifecycle.Invoke, "MgGroupEventDecline", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgGroupEventDeclineCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public bool? SendResponse { get; set; } + + [Parameter(Mandatory = false)] + public string? Comment { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot? ProposedNewTime { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Decline.DeclinePostRequestBody(); + + if (this.IsParameterBound(nameof(SendResponse))) + body.SendResponse = SendResponse; + + if (this.IsParameterBound(nameof(Comment))) + body.Comment = Comment; + if (this.IsParameterBound(nameof(ProposedNewTime))) + body.ProposedNewTime = ProposedNewTime; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Groups[GroupId].Events[EventId].Decline.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventDismissReminder.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventDismissReminder.g.cs new file mode 100644 index 00000000000..1e5aadd4f4d --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventDismissReminder.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/groups/{group-id}/events/{event-id}/dismissReminder")] + [Cmdlet(VerbsLifecycle.Invoke, "MgGroupEventDismissReminder", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgGroupEventDismissReminderCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Groups[GroupId].Events[EventId].DismissReminder.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventForward.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventForward.g.cs new file mode 100644 index 00000000000..1843cd4d8b5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventForward.g.cs @@ -0,0 +1,71 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/groups/{group-id}/events/{event-id}/forward")] + [Cmdlet(VerbsLifecycle.Invoke, "MgGroupEventForward", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgGroupEventForwardCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Comment { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient[]? ToRecipients { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.Forward.ForwardPostRequestBody(); + + if (this.IsParameterBound(nameof(Comment))) + body.Comment = Comment; + if (this.IsParameterBound(nameof(ToRecipients))) + body.ToRecipients = ToRecipients!.ToList(); + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Groups[GroupId].Events[EventId].Forward.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventPermanentDelete.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventPermanentDelete.g.cs new file mode 100644 index 00000000000..27760e831ab --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventPermanentDelete.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/groups/{group-id}/events/{event-id}/permanentDelete")] + [Cmdlet(VerbsLifecycle.Invoke, "MgGroupEventPermanentDelete", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgGroupEventPermanentDeleteCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Groups[GroupId].Events[EventId].PermanentDelete.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventSnoozeReminder.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventSnoozeReminder.g.cs new file mode 100644 index 00000000000..7dda9cf6fca --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventSnoozeReminder.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/groups/{group-id}/events/{event-id}/snoozeReminder")] + [Cmdlet(VerbsLifecycle.Invoke, "MgGroupEventSnoozeReminder", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgGroupEventSnoozeReminderCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? NewReminderTime { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody(); + + if (this.IsParameterBound(nameof(NewReminderTime))) + body.NewReminderTime = NewReminderTime; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Groups[GroupId].Events[EventId].SnoozeReminder.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventTentativelyAccept.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventTentativelyAccept.g.cs new file mode 100644 index 00000000000..d781e4fd370 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventTentativelyAccept.g.cs @@ -0,0 +1,77 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/groups/{group-id}/events/{event-id}/tentativelyAccept")] + [Cmdlet(VerbsLifecycle.Invoke, "MgGroupEventTentativelyAccept", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgGroupEventTentativelyAcceptCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public bool? SendResponse { get; set; } + + [Parameter(Mandatory = false)] + public string? Comment { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot? ProposedNewTime { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody(); + + if (this.IsParameterBound(nameof(SendResponse))) + body.SendResponse = SendResponse; + + if (this.IsParameterBound(nameof(Comment))) + body.Comment = Comment; + if (this.IsParameterBound(nameof(ProposedNewTime))) + body.ProposedNewTime = ProposedNewTime; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Groups[GroupId].Events[EventId].TentativelyAccept.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventAccept.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventAccept.g.cs new file mode 100644 index 00000000000..3a53e76c493 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventAccept.g.cs @@ -0,0 +1,77 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/accept")] + [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarEventAccept", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgUserCalendarGroupCalendarEventAcceptCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public bool? SendResponse { get; set; } + + [Parameter(Mandatory = false)] + public string? Comment { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Accept.AcceptPostRequestBody(); + + if (this.IsParameterBound(nameof(SendResponse))) + body.SendResponse = SendResponse; + + if (this.IsParameterBound(nameof(Comment))) + body.Comment = Comment; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Accept.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventAttachmentCreateUploadSession.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventAttachmentCreateUploadSession.g.cs new file mode 100644 index 00000000000..a3dad6c1d81 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventAttachmentCreateUploadSession.g.cs @@ -0,0 +1,71 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/createUploadSession")] + [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarEventAttachmentCreateUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.UploadSession))] + public class InvokeMgUserCalendarGroupCalendarEventAttachmentCreateUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem? AttachmentItem { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); + + if (this.IsParameterBound(nameof(AttachmentItem))) + body.AttachmentItem = AttachmentItem; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.UploadSession? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Attachments.CreateUploadSession.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventCancel.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventCancel.g.cs new file mode 100644 index 00000000000..8a7c718fce4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventCancel.g.cs @@ -0,0 +1,71 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/cancel")] + [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarEventCancel", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgUserCalendarGroupCalendarEventCancelCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Comment { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Cancel.CancelPostRequestBody(); + + if (this.IsParameterBound(nameof(Comment))) + body.Comment = Comment; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Cancel.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventDecline.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventDecline.g.cs new file mode 100644 index 00000000000..53069b0c9df --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventDecline.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/decline")] + [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarEventDecline", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgUserCalendarGroupCalendarEventDeclineCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public bool? SendResponse { get; set; } + + [Parameter(Mandatory = false)] + public string? Comment { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot? ProposedNewTime { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Decline.DeclinePostRequestBody(); + + if (this.IsParameterBound(nameof(SendResponse))) + body.SendResponse = SendResponse; + + if (this.IsParameterBound(nameof(Comment))) + body.Comment = Comment; + if (this.IsParameterBound(nameof(ProposedNewTime))) + body.ProposedNewTime = ProposedNewTime; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Decline.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventDismissReminder.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventDismissReminder.g.cs new file mode 100644 index 00000000000..8a60725e939 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventDismissReminder.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/dismissReminder")] + [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarEventDismissReminder", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgUserCalendarGroupCalendarEventDismissReminderCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].DismissReminder.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventForward.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventForward.g.cs new file mode 100644 index 00000000000..ca1f83b1e63 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventForward.g.cs @@ -0,0 +1,75 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/forward")] + [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarEventForward", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgUserCalendarGroupCalendarEventForwardCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Comment { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient[]? ToRecipients { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Forward.ForwardPostRequestBody(); + + if (this.IsParameterBound(nameof(Comment))) + body.Comment = Comment; + if (this.IsParameterBound(nameof(ToRecipients))) + body.ToRecipients = ToRecipients!.ToList(); + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Forward.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventPermanentDelete.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventPermanentDelete.g.cs new file mode 100644 index 00000000000..163cde6b8cf --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventPermanentDelete.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/permanentDelete")] + [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarEventPermanentDelete", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgUserCalendarGroupCalendarEventPermanentDeleteCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].PermanentDelete.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventSnoozeReminder.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventSnoozeReminder.g.cs new file mode 100644 index 00000000000..5426fa90a9f --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventSnoozeReminder.g.cs @@ -0,0 +1,71 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/snoozeReminder")] + [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarEventSnoozeReminder", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgUserCalendarGroupCalendarEventSnoozeReminderCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? NewReminderTime { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody(); + + if (this.IsParameterBound(nameof(NewReminderTime))) + body.NewReminderTime = NewReminderTime; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].SnoozeReminder.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventTentativelyAccept.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventTentativelyAccept.g.cs new file mode 100644 index 00000000000..9aa71485f4d --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventTentativelyAccept.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/tentativelyAccept")] + [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarEventTentativelyAccept", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgUserCalendarGroupCalendarEventTentativelyAcceptCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public bool? SendResponse { get; set; } + + [Parameter(Mandatory = false)] + public string? Comment { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot? ProposedNewTime { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody(); + + if (this.IsParameterBound(nameof(SendResponse))) + body.SendResponse = SendResponse; + + if (this.IsParameterBound(nameof(Comment))) + body.Comment = Comment; + if (this.IsParameterBound(nameof(ProposedNewTime))) + body.ProposedNewTime = ProposedNewTime; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].TentativelyAccept.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarGetSchedule.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarGetSchedule.g.cs new file mode 100644 index 00000000000..52525151f00 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarGetSchedule.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/getSchedule")] + [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarGetSchedule", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetSchedulePostResponse))] + public class InvokeMgUserCalendarGroupCalendarGetScheduleCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string[]? Schedules { get; set; } + + [Parameter(Mandatory = false)] + public int? AvailabilityViewInterval { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? EndTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? StartTime { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CalendarId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetSchedulePostRequestBody(); + + if (this.IsParameterBound(nameof(Schedules))) + body.Schedules = Schedules!.ToList(); + + if (this.IsParameterBound(nameof(AvailabilityViewInterval))) + body.AvailabilityViewInterval = AvailabilityViewInterval; + if (this.IsParameterBound(nameof(EndTime))) + body.EndTime = EndTime; + + if (this.IsParameterBound(nameof(StartTime))) + body.StartTime = StartTime; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetSchedulePostResponse? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].GetSchedule.PostAsGetSchedulePostResponseAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CalendarId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarPermanentDelete.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarPermanentDelete.g.cs new file mode 100644 index 00000000000..9c44922cb14 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarPermanentDelete.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/permanentDelete")] + [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarPermanentDelete", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgUserCalendarGroupCalendarPermanentDeleteCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CalendarId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].PermanentDelete.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CalendarId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarPermanentDelete.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarPermanentDelete.g.cs new file mode 100644 index 00000000000..0e61aa604e9 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarPermanentDelete.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendar/permanentDelete")] + [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarPermanentDelete", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgUserCalendarPermanentDeleteCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(UserId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Users[UserId].Calendar.PermanentDelete.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, UserId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventAccept.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventAccept.g.cs new file mode 100644 index 00000000000..e40438e6b9b --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventAccept.g.cs @@ -0,0 +1,73 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/events/{event-id}/accept")] + [Cmdlet(VerbsLifecycle.Invoke, "MgUserEventAccept", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgUserEventAcceptCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public bool? SendResponse { get; set; } + + [Parameter(Mandatory = false)] + public string? Comment { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Accept.AcceptPostRequestBody(); + + if (this.IsParameterBound(nameof(SendResponse))) + body.SendResponse = SendResponse; + + if (this.IsParameterBound(nameof(Comment))) + body.Comment = Comment; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Users[UserId].Events[EventId].Accept.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventAttachmentCreateUploadSession.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventAttachmentCreateUploadSession.g.cs new file mode 100644 index 00000000000..8787d8574db --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventAttachmentCreateUploadSession.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/events/{event-id}/attachments/createUploadSession")] + [Cmdlet(VerbsLifecycle.Invoke, "MgUserEventAttachmentCreateUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.UploadSession))] + public class InvokeMgUserEventAttachmentCreateUploadSessionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem? AttachmentItem { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); + + if (this.IsParameterBound(nameof(AttachmentItem))) + body.AttachmentItem = AttachmentItem; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.UploadSession? result; + try + { + result = client.Users[UserId].Events[EventId].Attachments.CreateUploadSession.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventCancel.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventCancel.g.cs new file mode 100644 index 00000000000..1178bd7eeba --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventCancel.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/events/{event-id}/cancel")] + [Cmdlet(VerbsLifecycle.Invoke, "MgUserEventCancel", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgUserEventCancelCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Comment { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Cancel.CancelPostRequestBody(); + + if (this.IsParameterBound(nameof(Comment))) + body.Comment = Comment; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Users[UserId].Events[EventId].Cancel.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventDecline.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventDecline.g.cs new file mode 100644 index 00000000000..321e4c3f873 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventDecline.g.cs @@ -0,0 +1,77 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/events/{event-id}/decline")] + [Cmdlet(VerbsLifecycle.Invoke, "MgUserEventDecline", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgUserEventDeclineCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public bool? SendResponse { get; set; } + + [Parameter(Mandatory = false)] + public string? Comment { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot? ProposedNewTime { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Decline.DeclinePostRequestBody(); + + if (this.IsParameterBound(nameof(SendResponse))) + body.SendResponse = SendResponse; + + if (this.IsParameterBound(nameof(Comment))) + body.Comment = Comment; + if (this.IsParameterBound(nameof(ProposedNewTime))) + body.ProposedNewTime = ProposedNewTime; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Users[UserId].Events[EventId].Decline.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventDismissReminder.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventDismissReminder.g.cs new file mode 100644 index 00000000000..69671118764 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventDismissReminder.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/events/{event-id}/dismissReminder")] + [Cmdlet(VerbsLifecycle.Invoke, "MgUserEventDismissReminder", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgUserEventDismissReminderCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Users[UserId].Events[EventId].DismissReminder.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventForward.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventForward.g.cs new file mode 100644 index 00000000000..03cc95f5d1e --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventForward.g.cs @@ -0,0 +1,71 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/events/{event-id}/forward")] + [Cmdlet(VerbsLifecycle.Invoke, "MgUserEventForward", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgUserEventForwardCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Comment { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient[]? ToRecipients { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.Forward.ForwardPostRequestBody(); + + if (this.IsParameterBound(nameof(Comment))) + body.Comment = Comment; + if (this.IsParameterBound(nameof(ToRecipients))) + body.ToRecipients = ToRecipients!.ToList(); + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Users[UserId].Events[EventId].Forward.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventPermanentDelete.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventPermanentDelete.g.cs new file mode 100644 index 00000000000..f16dd5de966 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventPermanentDelete.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/events/{event-id}/permanentDelete")] + [Cmdlet(VerbsLifecycle.Invoke, "MgUserEventPermanentDelete", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgUserEventPermanentDeleteCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Users[UserId].Events[EventId].PermanentDelete.PostAsync(requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventSnoozeReminder.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventSnoozeReminder.g.cs new file mode 100644 index 00000000000..f6747c03c23 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventSnoozeReminder.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/events/{event-id}/snoozeReminder")] + [Cmdlet(VerbsLifecycle.Invoke, "MgUserEventSnoozeReminder", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgUserEventSnoozeReminderCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? NewReminderTime { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody(); + + if (this.IsParameterBound(nameof(NewReminderTime))) + body.NewReminderTime = NewReminderTime; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Users[UserId].Events[EventId].SnoozeReminder.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventTentativelyAccept.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventTentativelyAccept.g.cs new file mode 100644 index 00000000000..74ad99a2a80 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventTentativelyAccept.g.cs @@ -0,0 +1,77 @@ +#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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/events/{event-id}/tentativelyAccept")] + [Cmdlet(VerbsLifecycle.Invoke, "MgUserEventTentativelyAccept", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + + public class InvokeMgUserEventTentativelyAcceptCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public bool? SendResponse { get; set; } + + [Parameter(Mandatory = false)] + public string? Comment { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot? ProposedNewTime { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Invoke")) + return; + + var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody(); + + if (this.IsParameterBound(nameof(SendResponse))) + body.SendResponse = SendResponse; + + if (this.IsParameterBound(nameof(Comment))) + body.Comment = Comment; + if (this.IsParameterBound(nameof(ProposedNewTime))) + body.ProposedNewTime = ProposedNewTime; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + + try + { + client.Users[UserId].Events[EventId].TentativelyAccept.PostAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }) + .GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEvent.g.cs new file mode 100644 index 00000000000..1fb1a56cc9b --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEvent.g.cs @@ -0,0 +1,315 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/groups/{group-id}/calendar/events")] + [Cmdlet(VerbsCommon.New, "MgGroupCalendarEvent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class NewMgGroupCalendarEventCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string[]? Categories { get; set; } + + [Parameter(Mandatory = false)] + public string? ChangeKey { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? AllowNewTimeProposals { get; set; } + + [Parameter(Mandatory = false)] + public string? BodyPreview { get; set; } + + [Parameter(Mandatory = false)] + public string[]? CancelledOccurrences { get; set; } + + [Parameter(Mandatory = false)] + public bool? HasAttachments { get; set; } + + [Parameter(Mandatory = false)] + public bool? HideAttendees { get; set; } + + [Parameter(Mandatory = false)] + public string? ICalUId { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsAllDay { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsCancelled { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsDraft { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsOnlineMeeting { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsOrganizer { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsReminderOn { get; set; } + + [Parameter(Mandatory = false)] + public string? OccurrenceId { get; set; } + + [Parameter(Mandatory = false)] + public string? OnlineMeetingUrl { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginalEndTimeZone { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? OriginalStart { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginalStartTimeZone { get; set; } + + [Parameter(Mandatory = false)] + public int? ReminderMinutesBeforeStart { get; set; } + + [Parameter(Mandatory = false)] + public bool? ResponseRequested { get; set; } + + [Parameter(Mandatory = false)] + public string? SeriesMasterId { get; set; } + + [Parameter(Mandatory = false)] + public string? Subject { get; set; } + + [Parameter(Mandatory = false)] + public string? TransactionId { get; set; } + + [Parameter(Mandatory = false)] + public string? Uid { get; set; } + + [Parameter(Mandatory = false)] + public string? WebLink { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Attendee[]? Attendees { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.ItemBody? Body { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? End { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Importance? Importance { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location? Location { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location[]? Locations { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingInfo? OnlineMeeting { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType? OnlineMeetingProvider { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient? Organizer { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.PatternedRecurrence? Recurrence { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.ResponseStatus? ResponseStatus { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Sensitivity? Sensitivity { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.FreeBusyStatus? ShowAs { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? Start { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.EventType? Type { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(GroupId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Event(); + + if (this.IsParameterBound(nameof(Categories))) + body.Categories = Categories!.ToList(); + + if (this.IsParameterBound(nameof(ChangeKey))) + body.ChangeKey = ChangeKey; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(LastModifiedDateTime))) + body.LastModifiedDateTime = LastModifiedDateTime; + + if (this.IsParameterBound(nameof(AllowNewTimeProposals))) + body.AllowNewTimeProposals = AllowNewTimeProposals; + + if (this.IsParameterBound(nameof(BodyPreview))) + body.BodyPreview = BodyPreview; + + if (this.IsParameterBound(nameof(CancelledOccurrences))) + body.CancelledOccurrences = CancelledOccurrences!.ToList(); + + if (this.IsParameterBound(nameof(HasAttachments))) + body.HasAttachments = HasAttachments; + + if (this.IsParameterBound(nameof(HideAttendees))) + body.HideAttendees = HideAttendees; + + if (this.IsParameterBound(nameof(ICalUId))) + body.ICalUId = ICalUId; + + if (this.IsParameterBound(nameof(IsAllDay))) + body.IsAllDay = IsAllDay; + + if (this.IsParameterBound(nameof(IsCancelled))) + body.IsCancelled = IsCancelled; + + if (this.IsParameterBound(nameof(IsDraft))) + body.IsDraft = IsDraft; + + if (this.IsParameterBound(nameof(IsOnlineMeeting))) + body.IsOnlineMeeting = IsOnlineMeeting; + + if (this.IsParameterBound(nameof(IsOrganizer))) + body.IsOrganizer = IsOrganizer; + + if (this.IsParameterBound(nameof(IsReminderOn))) + body.IsReminderOn = IsReminderOn; + + if (this.IsParameterBound(nameof(OccurrenceId))) + body.OccurrenceId = OccurrenceId; + + if (this.IsParameterBound(nameof(OnlineMeetingUrl))) + body.OnlineMeetingUrl = OnlineMeetingUrl; + + if (this.IsParameterBound(nameof(OriginalEndTimeZone))) + body.OriginalEndTimeZone = OriginalEndTimeZone; + + if (this.IsParameterBound(nameof(OriginalStart))) + body.OriginalStart = OriginalStart; + + if (this.IsParameterBound(nameof(OriginalStartTimeZone))) + body.OriginalStartTimeZone = OriginalStartTimeZone; + + if (this.IsParameterBound(nameof(ReminderMinutesBeforeStart))) + body.ReminderMinutesBeforeStart = ReminderMinutesBeforeStart; + + if (this.IsParameterBound(nameof(ResponseRequested))) + body.ResponseRequested = ResponseRequested; + + if (this.IsParameterBound(nameof(SeriesMasterId))) + body.SeriesMasterId = SeriesMasterId; + + if (this.IsParameterBound(nameof(Subject))) + body.Subject = Subject; + + if (this.IsParameterBound(nameof(TransactionId))) + body.TransactionId = TransactionId; + + if (this.IsParameterBound(nameof(Uid))) + body.Uid = Uid; + + if (this.IsParameterBound(nameof(WebLink))) + body.WebLink = WebLink; + + if (this.IsParameterBound(nameof(Attendees))) + body.Attendees = Attendees!.ToList(); + + if (this.IsParameterBound(nameof(Body))) + body.Body = Body; + + if (this.IsParameterBound(nameof(End))) + body.End = End; + + if (this.IsParameterBound(nameof(Importance))) + body.Importance = Importance; + + if (this.IsParameterBound(nameof(Location))) + body.Location = Location; + + if (this.IsParameterBound(nameof(Locations))) + body.Locations = Locations!.ToList(); + + if (this.IsParameterBound(nameof(OnlineMeeting))) + body.OnlineMeeting = OnlineMeeting; + + if (this.IsParameterBound(nameof(OnlineMeetingProvider))) + body.OnlineMeetingProvider = OnlineMeetingProvider; + + if (this.IsParameterBound(nameof(Organizer))) + body.Organizer = Organizer; + + if (this.IsParameterBound(nameof(Recurrence))) + body.Recurrence = Recurrence; + + if (this.IsParameterBound(nameof(ResponseStatus))) + body.ResponseStatus = ResponseStatus; + + if (this.IsParameterBound(nameof(Sensitivity))) + body.Sensitivity = Sensitivity; + + if (this.IsParameterBound(nameof(ShowAs))) + body.ShowAs = ShowAs; + + if (this.IsParameterBound(nameof(Start))) + body.Start = Start; + + if (this.IsParameterBound(nameof(Type))) + body.Type = Type; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; + try + { + result = client.Groups[GroupId].Calendar.Events.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/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEventAttachment.g.cs new file mode 100644 index 00000000000..81dbed43a20 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEventAttachment.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/groups/{group-id}/calendar/events/{event-id}/attachments")] + [Cmdlet(VerbsCommon.New, "MgGroupCalendarEventAttachment", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment))] + public class NewMgGroupCalendarEventAttachmentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? ContentType { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsInline { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Name { get; set; } + + [Parameter(Mandatory = false)] + public int? Size { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment(); + + if (this.IsParameterBound(nameof(ContentType))) + body.ContentType = ContentType; + + if (this.IsParameterBound(nameof(IsInline))) + body.IsInline = IsInline; + + if (this.IsParameterBound(nameof(LastModifiedDateTime))) + body.LastModifiedDateTime = LastModifiedDateTime; + + if (this.IsParameterBound(nameof(Name))) + body.Name = Name; + + if (this.IsParameterBound(nameof(Size))) + body.Size = Size; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment? result; + try + { + result = client.Groups[GroupId].Calendar.Events[EventId].Attachments.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/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEventExtension.g.cs new file mode 100644 index 00000000000..b41ca795075 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEventExtension.g.cs @@ -0,0 +1,63 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/groups/{group-id}/calendar/events/{event-id}/extensions")] + [Cmdlet(VerbsCommon.New, "MgGroupCalendarEventExtension", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] + public class NewMgGroupCalendarEventExtensionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension(); + + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; + try + { + result = client.Groups[GroupId].Calendar.Events[EventId].Extensions.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/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarPermission.g.cs new file mode 100644 index 00000000000..4a3037b828d --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarPermission.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/groups/{group-id}/calendar/calendarPermissions")] + [Cmdlet(VerbsCommon.New, "MgGroupCalendarPermission", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission))] + public class NewMgGroupCalendarPermissionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public bool? IsInsideOrganization { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsRemovable { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarRoleType?[]? AllowedRoles { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress? EmailAddress { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarRoleType? Role { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(GroupId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission(); + + if (this.IsParameterBound(nameof(IsInsideOrganization))) + body.IsInsideOrganization = IsInsideOrganization; + + if (this.IsParameterBound(nameof(IsRemovable))) + body.IsRemovable = IsRemovable; + + if (this.IsParameterBound(nameof(AllowedRoles))) + body.AllowedRoles = AllowedRoles!.ToList(); + + if (this.IsParameterBound(nameof(EmailAddress))) + body.EmailAddress = EmailAddress; + + if (this.IsParameterBound(nameof(Role))) + body.Role = Role; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission? result; + try + { + result = client.Groups[GroupId].Calendar.CalendarPermissions.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/Calendar/wrapper/beta/Cmdlets/NewMgGroupEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupEvent.g.cs new file mode 100644 index 00000000000..b72999ff4a2 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupEvent.g.cs @@ -0,0 +1,315 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/groups/{group-id}/events")] + [Cmdlet(VerbsCommon.New, "MgGroupEvent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class NewMgGroupEventCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string[]? Categories { get; set; } + + [Parameter(Mandatory = false)] + public string? ChangeKey { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? AllowNewTimeProposals { get; set; } + + [Parameter(Mandatory = false)] + public string? BodyPreview { get; set; } + + [Parameter(Mandatory = false)] + public string[]? CancelledOccurrences { get; set; } + + [Parameter(Mandatory = false)] + public bool? HasAttachments { get; set; } + + [Parameter(Mandatory = false)] + public bool? HideAttendees { get; set; } + + [Parameter(Mandatory = false)] + public string? ICalUId { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsAllDay { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsCancelled { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsDraft { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsOnlineMeeting { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsOrganizer { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsReminderOn { get; set; } + + [Parameter(Mandatory = false)] + public string? OccurrenceId { get; set; } + + [Parameter(Mandatory = false)] + public string? OnlineMeetingUrl { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginalEndTimeZone { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? OriginalStart { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginalStartTimeZone { get; set; } + + [Parameter(Mandatory = false)] + public int? ReminderMinutesBeforeStart { get; set; } + + [Parameter(Mandatory = false)] + public bool? ResponseRequested { get; set; } + + [Parameter(Mandatory = false)] + public string? SeriesMasterId { get; set; } + + [Parameter(Mandatory = false)] + public string? Subject { get; set; } + + [Parameter(Mandatory = false)] + public string? TransactionId { get; set; } + + [Parameter(Mandatory = false)] + public string? Uid { get; set; } + + [Parameter(Mandatory = false)] + public string? WebLink { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Attendee[]? Attendees { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.ItemBody? Body { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? End { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Importance? Importance { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location? Location { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location[]? Locations { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingInfo? OnlineMeeting { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType? OnlineMeetingProvider { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient? Organizer { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.PatternedRecurrence? Recurrence { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.ResponseStatus? ResponseStatus { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Sensitivity? Sensitivity { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.FreeBusyStatus? ShowAs { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? Start { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.EventType? Type { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(GroupId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Event(); + + if (this.IsParameterBound(nameof(Categories))) + body.Categories = Categories!.ToList(); + + if (this.IsParameterBound(nameof(ChangeKey))) + body.ChangeKey = ChangeKey; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(LastModifiedDateTime))) + body.LastModifiedDateTime = LastModifiedDateTime; + + if (this.IsParameterBound(nameof(AllowNewTimeProposals))) + body.AllowNewTimeProposals = AllowNewTimeProposals; + + if (this.IsParameterBound(nameof(BodyPreview))) + body.BodyPreview = BodyPreview; + + if (this.IsParameterBound(nameof(CancelledOccurrences))) + body.CancelledOccurrences = CancelledOccurrences!.ToList(); + + if (this.IsParameterBound(nameof(HasAttachments))) + body.HasAttachments = HasAttachments; + + if (this.IsParameterBound(nameof(HideAttendees))) + body.HideAttendees = HideAttendees; + + if (this.IsParameterBound(nameof(ICalUId))) + body.ICalUId = ICalUId; + + if (this.IsParameterBound(nameof(IsAllDay))) + body.IsAllDay = IsAllDay; + + if (this.IsParameterBound(nameof(IsCancelled))) + body.IsCancelled = IsCancelled; + + if (this.IsParameterBound(nameof(IsDraft))) + body.IsDraft = IsDraft; + + if (this.IsParameterBound(nameof(IsOnlineMeeting))) + body.IsOnlineMeeting = IsOnlineMeeting; + + if (this.IsParameterBound(nameof(IsOrganizer))) + body.IsOrganizer = IsOrganizer; + + if (this.IsParameterBound(nameof(IsReminderOn))) + body.IsReminderOn = IsReminderOn; + + if (this.IsParameterBound(nameof(OccurrenceId))) + body.OccurrenceId = OccurrenceId; + + if (this.IsParameterBound(nameof(OnlineMeetingUrl))) + body.OnlineMeetingUrl = OnlineMeetingUrl; + + if (this.IsParameterBound(nameof(OriginalEndTimeZone))) + body.OriginalEndTimeZone = OriginalEndTimeZone; + + if (this.IsParameterBound(nameof(OriginalStart))) + body.OriginalStart = OriginalStart; + + if (this.IsParameterBound(nameof(OriginalStartTimeZone))) + body.OriginalStartTimeZone = OriginalStartTimeZone; + + if (this.IsParameterBound(nameof(ReminderMinutesBeforeStart))) + body.ReminderMinutesBeforeStart = ReminderMinutesBeforeStart; + + if (this.IsParameterBound(nameof(ResponseRequested))) + body.ResponseRequested = ResponseRequested; + + if (this.IsParameterBound(nameof(SeriesMasterId))) + body.SeriesMasterId = SeriesMasterId; + + if (this.IsParameterBound(nameof(Subject))) + body.Subject = Subject; + + if (this.IsParameterBound(nameof(TransactionId))) + body.TransactionId = TransactionId; + + if (this.IsParameterBound(nameof(Uid))) + body.Uid = Uid; + + if (this.IsParameterBound(nameof(WebLink))) + body.WebLink = WebLink; + + if (this.IsParameterBound(nameof(Attendees))) + body.Attendees = Attendees!.ToList(); + + if (this.IsParameterBound(nameof(Body))) + body.Body = Body; + + if (this.IsParameterBound(nameof(End))) + body.End = End; + + if (this.IsParameterBound(nameof(Importance))) + body.Importance = Importance; + + if (this.IsParameterBound(nameof(Location))) + body.Location = Location; + + if (this.IsParameterBound(nameof(Locations))) + body.Locations = Locations!.ToList(); + + if (this.IsParameterBound(nameof(OnlineMeeting))) + body.OnlineMeeting = OnlineMeeting; + + if (this.IsParameterBound(nameof(OnlineMeetingProvider))) + body.OnlineMeetingProvider = OnlineMeetingProvider; + + if (this.IsParameterBound(nameof(Organizer))) + body.Organizer = Organizer; + + if (this.IsParameterBound(nameof(Recurrence))) + body.Recurrence = Recurrence; + + if (this.IsParameterBound(nameof(ResponseStatus))) + body.ResponseStatus = ResponseStatus; + + if (this.IsParameterBound(nameof(Sensitivity))) + body.Sensitivity = Sensitivity; + + if (this.IsParameterBound(nameof(ShowAs))) + body.ShowAs = ShowAs; + + if (this.IsParameterBound(nameof(Start))) + body.Start = Start; + + if (this.IsParameterBound(nameof(Type))) + body.Type = Type; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; + try + { + result = client.Groups[GroupId].Events.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/Calendar/wrapper/beta/Cmdlets/NewMgGroupEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupEventAttachment.g.cs new file mode 100644 index 00000000000..176db279d46 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupEventAttachment.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/groups/{group-id}/events/{event-id}/attachments")] + [Cmdlet(VerbsCommon.New, "MgGroupEventAttachment", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment))] + public class NewMgGroupEventAttachmentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? ContentType { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsInline { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Name { get; set; } + + [Parameter(Mandatory = false)] + public int? Size { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment(); + + if (this.IsParameterBound(nameof(ContentType))) + body.ContentType = ContentType; + + if (this.IsParameterBound(nameof(IsInline))) + body.IsInline = IsInline; + + if (this.IsParameterBound(nameof(LastModifiedDateTime))) + body.LastModifiedDateTime = LastModifiedDateTime; + + if (this.IsParameterBound(nameof(Name))) + body.Name = Name; + + if (this.IsParameterBound(nameof(Size))) + body.Size = Size; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment? result; + try + { + result = client.Groups[GroupId].Events[EventId].Attachments.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/Calendar/wrapper/beta/Cmdlets/NewMgGroupEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupEventExtension.g.cs new file mode 100644 index 00000000000..87c76b54a7f --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupEventExtension.g.cs @@ -0,0 +1,63 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/groups/{group-id}/events/{event-id}/extensions")] + [Cmdlet(VerbsCommon.New, "MgGroupEventExtension", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] + public class NewMgGroupEventExtensionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension(); + + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; + try + { + result = client.Groups[GroupId].Events[EventId].Extensions.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/Calendar/wrapper/beta/Cmdlets/NewMgPlace.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlace.g.cs new file mode 100644 index 00000000000..3730945318f --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlace.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/places")] + [Cmdlet(VerbsCommon.New, "MgPlace", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class NewMgPlaceCommand : GraphClientCmdlet + { + + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsWheelChairAccessible { get; set; } + + [Parameter(Mandatory = false)] + public string? Label { get; set; } + + [Parameter(Mandatory = false)] + public string? ParentId { get; set; } + + [Parameter(Mandatory = false)] + public string? Phone { get; set; } + + [Parameter(Mandatory = false)] + public string? PlaceId { get; set; } + + [Parameter(Mandatory = false)] + public string[]? Tags { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.PhysicalAddress? Address { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.StringDictionary? CustomProperties { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OutlookGeoCoordinates? GeoCoordinates { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(null, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Place(); + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(IsWheelChairAccessible))) + body.IsWheelChairAccessible = IsWheelChairAccessible; + + if (this.IsParameterBound(nameof(Label))) + body.Label = Label; + + if (this.IsParameterBound(nameof(ParentId))) + body.ParentId = ParentId; + + if (this.IsParameterBound(nameof(Phone))) + body.Phone = Phone; + + if (this.IsParameterBound(nameof(PlaceId))) + body.PlaceId = PlaceId; + + if (this.IsParameterBound(nameof(Tags))) + body.Tags = Tags!.ToList(); + + if (this.IsParameterBound(nameof(Address))) + body.Address = Address; + + if (this.IsParameterBound(nameof(CustomProperties))) + body.CustomProperties = CustomProperties; + + if (this.IsParameterBound(nameof(GeoCoordinates))) + body.GeoCoordinates = GeoCoordinates; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Place? result; + try + { + result = client.Places.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/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingCheckIn.g.cs new file mode 100644 index 00000000000..f7794c4d341 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingCheckIn.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/places/{place-id}/graph.building/checkIns")] + [Cmdlet(VerbsCommon.New, "MgPlaceAsBuildingCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class NewMgPlaceAsBuildingCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarEventId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInMethod? CheckInMethod { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(PlaceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim(); + + if (this.IsParameterBound(nameof(CalendarEventId))) + body.CalendarEventId = CalendarEventId; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(CheckInMethod))) + body.CheckInMethod = CheckInMethod; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphBuilding.CheckIns.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/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapFootprint.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapFootprint.g.cs new file mode 100644 index 00000000000..53274d42ce9 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapFootprint.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/places/{place-id}/graph.building/map/footprints")] + [Cmdlet(VerbsCommon.New, "MgPlaceAsBuildingMapFootprint", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap))] + public class NewMgPlaceAsBuildingMapFootprintCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Properties { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(PlaceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap(); + + if (this.IsParameterBound(nameof(Properties))) + body.Properties = Properties; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Footprints.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/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevel.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevel.g.cs new file mode 100644 index 00000000000..a3b39cf43d4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevel.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/places/{place-id}/graph.building/map/levels")] + [Cmdlet(VerbsCommon.New, "MgPlaceAsBuildingMapLevel", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap))] + public class NewMgPlaceAsBuildingMapLevelCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Properties { get; set; } + + [Parameter(Mandatory = false)] + public string? PlaceId1 { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(PlaceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap(); + + if (this.IsParameterBound(nameof(Properties))) + body.Properties = Properties; + + if (this.IsParameterBound(nameof(PlaceId1))) + body.PlaceId = PlaceId1; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Levels.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/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelFixture.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelFixture.g.cs new file mode 100644 index 00000000000..969f04dc598 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelFixture.g.cs @@ -0,0 +1,73 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/places/{place-id}/graph.building/map/levels/{levelMap-id}/fixtures")] + [Cmdlet(VerbsCommon.New, "MgPlaceAsBuildingMapLevelFixture", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap))] + public class NewMgPlaceAsBuildingMapLevelFixtureCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Properties { get; set; } + + [Parameter(Mandatory = false)] + public string? PlaceId1 { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(LevelMapId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap(); + + if (this.IsParameterBound(nameof(Properties))) + body.Properties = Properties; + + if (this.IsParameterBound(nameof(PlaceId1))) + body.PlaceId = PlaceId1; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Fixtures.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/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelSection.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelSection.g.cs new file mode 100644 index 00000000000..9ceffd11462 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelSection.g.cs @@ -0,0 +1,73 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/places/{place-id}/graph.building/map/levels/{levelMap-id}/sections")] + [Cmdlet(VerbsCommon.New, "MgPlaceAsBuildingMapLevelSection", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap))] + public class NewMgPlaceAsBuildingMapLevelSectionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Properties { get; set; } + + [Parameter(Mandatory = false)] + public string? PlaceId1 { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(LevelMapId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap(); + + if (this.IsParameterBound(nameof(Properties))) + body.Properties = Properties; + + if (this.IsParameterBound(nameof(PlaceId1))) + body.PlaceId = PlaceId1; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Sections.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/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelUnit.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelUnit.g.cs new file mode 100644 index 00000000000..8a9b652d364 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelUnit.g.cs @@ -0,0 +1,73 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/places/{place-id}/graph.building/map/levels/{levelMap-id}/units")] + [Cmdlet(VerbsCommon.New, "MgPlaceAsBuildingMapLevelUnit", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap))] + public class NewMgPlaceAsBuildingMapLevelUnitCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Properties { get; set; } + + [Parameter(Mandatory = false)] + public string? PlaceId1 { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(LevelMapId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap(); + + if (this.IsParameterBound(nameof(Properties))) + body.Properties = Properties; + + if (this.IsParameterBound(nameof(PlaceId1))) + body.PlaceId = PlaceId1; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Units.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/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsDeskCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsDeskCheckIn.g.cs new file mode 100644 index 00000000000..49ee8a3e35f --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsDeskCheckIn.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/places/{place-id}/graph.desk/checkIns")] + [Cmdlet(VerbsCommon.New, "MgPlaceAsDeskCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class NewMgPlaceAsDeskCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarEventId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInMethod? CheckInMethod { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(PlaceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim(); + + if (this.IsParameterBound(nameof(CalendarEventId))) + body.CalendarEventId = CalendarEventId; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(CheckInMethod))) + body.CheckInMethod = CheckInMethod; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphDesk.CheckIns.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/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsFloorCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsFloorCheckIn.g.cs new file mode 100644 index 00000000000..0bc4bb67049 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsFloorCheckIn.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/places/{place-id}/graph.floor/checkIns")] + [Cmdlet(VerbsCommon.New, "MgPlaceAsFloorCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class NewMgPlaceAsFloorCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarEventId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInMethod? CheckInMethod { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(PlaceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim(); + + if (this.IsParameterBound(nameof(CalendarEventId))) + body.CalendarEventId = CalendarEventId; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(CheckInMethod))) + body.CheckInMethod = CheckInMethod; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphFloor.CheckIns.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/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomCheckIn.g.cs new file mode 100644 index 00000000000..29979b916ef --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomCheckIn.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/places/{place-id}/graph.room/checkIns")] + [Cmdlet(VerbsCommon.New, "MgPlaceAsRoomCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class NewMgPlaceAsRoomCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarEventId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInMethod? CheckInMethod { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(PlaceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim(); + + if (this.IsParameterBound(nameof(CalendarEventId))) + body.CalendarEventId = CalendarEventId; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(CheckInMethod))) + body.CheckInMethod = CheckInMethod; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphRoom.CheckIns.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/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListCheckIn.g.cs new file mode 100644 index 00000000000..edd77e53719 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListCheckIn.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/places/{place-id}/graph.roomList/checkIns")] + [Cmdlet(VerbsCommon.New, "MgPlaceAsRoomListCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class NewMgPlaceAsRoomListCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarEventId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInMethod? CheckInMethod { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(PlaceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim(); + + if (this.IsParameterBound(nameof(CalendarEventId))) + body.CalendarEventId = CalendarEventId; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(CheckInMethod))) + body.CheckInMethod = CheckInMethod; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphRoomList.CheckIns.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/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListRoom.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListRoom.g.cs new file mode 100644 index 00000000000..c598b89e296 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListRoom.g.cs @@ -0,0 +1,189 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/places/{place-id}/graph.roomList/rooms")] + [Cmdlet(VerbsCommon.New, "MgPlaceAsRoomListRoom", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Room))] + public class NewMgPlaceAsRoomListRoomCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsWheelChairAccessible { get; set; } + + [Parameter(Mandatory = false)] + public string? Label { get; set; } + + [Parameter(Mandatory = false)] + public string? ParentId { get; set; } + + [Parameter(Mandatory = false)] + public string? Phone { get; set; } + + [Parameter(Mandatory = false)] + public string? PlaceId1 { get; set; } + + [Parameter(Mandatory = false)] + public string[]? Tags { get; set; } + + [Parameter(Mandatory = false)] + public string? AudioDeviceName { get; set; } + + [Parameter(Mandatory = false)] + public string? Building { get; set; } + + [Parameter(Mandatory = false)] + public int? Capacity { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayDeviceName { get; set; } + + [Parameter(Mandatory = false)] + public string? EmailAddress { get; set; } + + [Parameter(Mandatory = false)] + public string? FloorLabel { get; set; } + + [Parameter(Mandatory = false)] + public int? FloorNumber { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsTeamsEnabled { get; set; } + + [Parameter(Mandatory = false)] + public string? Nickname { get; set; } + + [Parameter(Mandatory = false)] + public string? VideoDeviceName { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.PhysicalAddress? Address { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.StringDictionary? CustomProperties { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OutlookGeoCoordinates? GeoCoordinates { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.BookingType? BookingType { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceFeatureEnablement? TeamsEnabledState { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(PlaceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Room(); + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(IsWheelChairAccessible))) + body.IsWheelChairAccessible = IsWheelChairAccessible; + + if (this.IsParameterBound(nameof(Label))) + body.Label = Label; + + if (this.IsParameterBound(nameof(ParentId))) + body.ParentId = ParentId; + + if (this.IsParameterBound(nameof(Phone))) + body.Phone = Phone; + + if (this.IsParameterBound(nameof(PlaceId1))) + body.PlaceId = PlaceId1; + + if (this.IsParameterBound(nameof(Tags))) + body.Tags = Tags!.ToList(); + + if (this.IsParameterBound(nameof(AudioDeviceName))) + body.AudioDeviceName = AudioDeviceName; + + if (this.IsParameterBound(nameof(Building))) + body.Building = Building; + + if (this.IsParameterBound(nameof(Capacity))) + body.Capacity = Capacity; + + if (this.IsParameterBound(nameof(DisplayDeviceName))) + body.DisplayDeviceName = DisplayDeviceName; + + if (this.IsParameterBound(nameof(EmailAddress))) + body.EmailAddress = EmailAddress; + + if (this.IsParameterBound(nameof(FloorLabel))) + body.FloorLabel = FloorLabel; + + if (this.IsParameterBound(nameof(FloorNumber))) + body.FloorNumber = FloorNumber; + + if (this.IsParameterBound(nameof(IsTeamsEnabled))) + body.IsTeamsEnabled = IsTeamsEnabled; + + if (this.IsParameterBound(nameof(Nickname))) + body.Nickname = Nickname; + + if (this.IsParameterBound(nameof(VideoDeviceName))) + body.VideoDeviceName = VideoDeviceName; + + if (this.IsParameterBound(nameof(Address))) + body.Address = Address; + + if (this.IsParameterBound(nameof(CustomProperties))) + body.CustomProperties = CustomProperties; + + if (this.IsParameterBound(nameof(GeoCoordinates))) + body.GeoCoordinates = GeoCoordinates; + + if (this.IsParameterBound(nameof(BookingType))) + body.BookingType = BookingType; + + if (this.IsParameterBound(nameof(TeamsEnabledState))) + body.TeamsEnabledState = TeamsEnabledState; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Room? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Rooms.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/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListRoomCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListRoomCheckIn.g.cs new file mode 100644 index 00000000000..f5d01c6236e --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListRoomCheckIn.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/places/{place-id}/graph.roomList/rooms/{room-id}/checkIns")] + [Cmdlet(VerbsCommon.New, "MgPlaceAsRoomListRoomCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class NewMgPlaceAsRoomListRoomCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RoomId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarEventId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInMethod? CheckInMethod { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(RoomId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim(); + + if (this.IsParameterBound(nameof(CalendarEventId))) + body.CalendarEventId = CalendarEventId; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(CheckInMethod))) + body.CheckInMethod = CheckInMethod; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Rooms[RoomId].CheckIns.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/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListWorkspace.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListWorkspace.g.cs new file mode 100644 index 00000000000..5c5eb4b83d5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListWorkspace.g.cs @@ -0,0 +1,165 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/places/{place-id}/graph.roomList/workspaces")] + [Cmdlet(VerbsCommon.New, "MgPlaceAsRoomListWorkspace", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace))] + public class NewMgPlaceAsRoomListWorkspaceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsWheelChairAccessible { get; set; } + + [Parameter(Mandatory = false)] + public string? Label { get; set; } + + [Parameter(Mandatory = false)] + public string? ParentId { get; set; } + + [Parameter(Mandatory = false)] + public string? Phone { get; set; } + + [Parameter(Mandatory = false)] + public string? PlaceId1 { get; set; } + + [Parameter(Mandatory = false)] + public string[]? Tags { get; set; } + + [Parameter(Mandatory = false)] + public string? Building { get; set; } + + [Parameter(Mandatory = false)] + public int? Capacity { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayDeviceName { get; set; } + + [Parameter(Mandatory = false)] + public string? EmailAddress { get; set; } + + [Parameter(Mandatory = false)] + public string? FloorLabel { get; set; } + + [Parameter(Mandatory = false)] + public int? FloorNumber { get; set; } + + [Parameter(Mandatory = false)] + public string? Nickname { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.PhysicalAddress? Address { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.StringDictionary? CustomProperties { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OutlookGeoCoordinates? GeoCoordinates { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceMode? Mode { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(PlaceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace(); + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(IsWheelChairAccessible))) + body.IsWheelChairAccessible = IsWheelChairAccessible; + + if (this.IsParameterBound(nameof(Label))) + body.Label = Label; + + if (this.IsParameterBound(nameof(ParentId))) + body.ParentId = ParentId; + + if (this.IsParameterBound(nameof(Phone))) + body.Phone = Phone; + + if (this.IsParameterBound(nameof(PlaceId1))) + body.PlaceId = PlaceId1; + + if (this.IsParameterBound(nameof(Tags))) + body.Tags = Tags!.ToList(); + + if (this.IsParameterBound(nameof(Building))) + body.Building = Building; + + if (this.IsParameterBound(nameof(Capacity))) + body.Capacity = Capacity; + + if (this.IsParameterBound(nameof(DisplayDeviceName))) + body.DisplayDeviceName = DisplayDeviceName; + + if (this.IsParameterBound(nameof(EmailAddress))) + body.EmailAddress = EmailAddress; + + if (this.IsParameterBound(nameof(FloorLabel))) + body.FloorLabel = FloorLabel; + + if (this.IsParameterBound(nameof(FloorNumber))) + body.FloorNumber = FloorNumber; + + if (this.IsParameterBound(nameof(Nickname))) + body.Nickname = Nickname; + + if (this.IsParameterBound(nameof(Address))) + body.Address = Address; + + if (this.IsParameterBound(nameof(CustomProperties))) + body.CustomProperties = CustomProperties; + + if (this.IsParameterBound(nameof(GeoCoordinates))) + body.GeoCoordinates = GeoCoordinates; + + if (this.IsParameterBound(nameof(Mode))) + body.Mode = Mode; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Workspaces.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/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListWorkspaceCheckIn.g.cs new file mode 100644 index 00000000000..e87e3791337 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListWorkspaceCheckIn.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/places/{place-id}/graph.roomList/workspaces/{workspace-id}/checkIns")] + [Cmdlet(VerbsCommon.New, "MgPlaceAsRoomListWorkspaceCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class NewMgPlaceAsRoomListWorkspaceCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string WorkspaceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarEventId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInMethod? CheckInMethod { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(WorkspaceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim(); + + if (this.IsParameterBound(nameof(CalendarEventId))) + body.CalendarEventId = CalendarEventId; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(CheckInMethod))) + body.CheckInMethod = CheckInMethod; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].CheckIns.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/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsSectionCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsSectionCheckIn.g.cs new file mode 100644 index 00000000000..df40f4428a1 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsSectionCheckIn.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/places/{place-id}/graph.section/checkIns")] + [Cmdlet(VerbsCommon.New, "MgPlaceAsSectionCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class NewMgPlaceAsSectionCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarEventId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInMethod? CheckInMethod { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(PlaceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim(); + + if (this.IsParameterBound(nameof(CalendarEventId))) + body.CalendarEventId = CalendarEventId; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(CheckInMethod))) + body.CheckInMethod = CheckInMethod; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphSection.CheckIns.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/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsWorkspaceCheckIn.g.cs new file mode 100644 index 00000000000..761ea75b9d7 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsWorkspaceCheckIn.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/places/{place-id}/graph.workspace/checkIns")] + [Cmdlet(VerbsCommon.New, "MgPlaceAsWorkspaceCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class NewMgPlaceAsWorkspaceCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarEventId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInMethod? CheckInMethod { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(PlaceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim(); + + if (this.IsParameterBound(nameof(CalendarEventId))) + body.CalendarEventId = CalendarEventId; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(CheckInMethod))) + body.CheckInMethod = CheckInMethod; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphWorkspace.CheckIns.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/Calendar/wrapper/beta/Cmdlets/NewMgPlaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceCheckIn.g.cs new file mode 100644 index 00000000000..9a31e2619cb --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceCheckIn.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/places/{place-id}/checkIns")] + [Cmdlet(VerbsCommon.New, "MgPlaceCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class NewMgPlaceCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarEventId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInMethod? CheckInMethod { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(PlaceId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim(); + + if (this.IsParameterBound(nameof(CalendarEventId))) + body.CalendarEventId = CalendarEventId; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(CheckInMethod))) + body.CheckInMethod = CheckInMethod; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].CheckIns.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/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendar.g.cs new file mode 100644 index 00000000000..7c9b3f42851 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendar.g.cs @@ -0,0 +1,153 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendars")] + [Cmdlet(VerbsCommon.New, "MgUserCalendar", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] + public class NewMgUserCalendarCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarGroupId { get; set; } + + [Parameter(Mandatory = false)] + public bool? CanEdit { get; set; } + + [Parameter(Mandatory = false)] + public bool? CanShare { get; set; } + + [Parameter(Mandatory = false)] + public bool? CanViewPrivateItems { get; set; } + + [Parameter(Mandatory = false)] + public string? ChangeKey { get; set; } + + [Parameter(Mandatory = false)] + public string? HexColor { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsDefaultCalendar { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsRemovable { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsShared { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsSharedWithMe { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsTallyingResponses { get; set; } + + [Parameter(Mandatory = false)] + public string? Name { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType?[]? AllowedOnlineMeetingProviders { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarColor? Color { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType? DefaultOnlineMeetingProvider { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress? Owner { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(UserId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar(); + + if (this.IsParameterBound(nameof(CalendarGroupId))) + body.CalendarGroupId = CalendarGroupId; + + if (this.IsParameterBound(nameof(CanEdit))) + body.CanEdit = CanEdit; + + if (this.IsParameterBound(nameof(CanShare))) + body.CanShare = CanShare; + + if (this.IsParameterBound(nameof(CanViewPrivateItems))) + body.CanViewPrivateItems = CanViewPrivateItems; + + if (this.IsParameterBound(nameof(ChangeKey))) + body.ChangeKey = ChangeKey; + + if (this.IsParameterBound(nameof(HexColor))) + body.HexColor = HexColor; + + if (this.IsParameterBound(nameof(IsDefaultCalendar))) + body.IsDefaultCalendar = IsDefaultCalendar; + + if (this.IsParameterBound(nameof(IsRemovable))) + body.IsRemovable = IsRemovable; + + if (this.IsParameterBound(nameof(IsShared))) + body.IsShared = IsShared; + + if (this.IsParameterBound(nameof(IsSharedWithMe))) + body.IsSharedWithMe = IsSharedWithMe; + + if (this.IsParameterBound(nameof(IsTallyingResponses))) + body.IsTallyingResponses = IsTallyingResponses; + + if (this.IsParameterBound(nameof(Name))) + body.Name = Name; + + if (this.IsParameterBound(nameof(AllowedOnlineMeetingProviders))) + body.AllowedOnlineMeetingProviders = AllowedOnlineMeetingProviders!.ToList(); + + if (this.IsParameterBound(nameof(Color))) + body.Color = Color; + + if (this.IsParameterBound(nameof(DefaultOnlineMeetingProvider))) + body.DefaultOnlineMeetingProvider = DefaultOnlineMeetingProvider; + + if (this.IsParameterBound(nameof(Owner))) + body.Owner = Owner; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar? result; + try + { + result = client.Users[UserId].Calendars.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/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarEvent.g.cs new file mode 100644 index 00000000000..b7d5d9a9556 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarEvent.g.cs @@ -0,0 +1,317 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendars/{calendar-id}/events")] + [Cmdlet(VerbsCommon.New, "MgUserCalendarEvent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class NewMgUserCalendarEventCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string[]? Categories { get; set; } + + [Parameter(Mandatory = false)] + public string? ChangeKey { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? AllowNewTimeProposals { get; set; } + + [Parameter(Mandatory = false)] + public string? BodyPreview { get; set; } + + [Parameter(Mandatory = false)] + public string[]? CancelledOccurrences { get; set; } + + [Parameter(Mandatory = false)] + public bool? HasAttachments { get; set; } + + [Parameter(Mandatory = false)] + public bool? HideAttendees { get; set; } + + [Parameter(Mandatory = false)] + public string? ICalUId { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsAllDay { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsCancelled { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsDraft { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsOnlineMeeting { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsOrganizer { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsReminderOn { get; set; } + + [Parameter(Mandatory = false)] + public string? OccurrenceId { get; set; } + + [Parameter(Mandatory = false)] + public string? OnlineMeetingUrl { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginalEndTimeZone { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? OriginalStart { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginalStartTimeZone { get; set; } + + [Parameter(Mandatory = false)] + public int? ReminderMinutesBeforeStart { get; set; } + + [Parameter(Mandatory = false)] + public bool? ResponseRequested { get; set; } + + [Parameter(Mandatory = false)] + public string? SeriesMasterId { get; set; } + + [Parameter(Mandatory = false)] + public string? Subject { get; set; } + + [Parameter(Mandatory = false)] + public string? TransactionId { get; set; } + + [Parameter(Mandatory = false)] + public string? Uid { get; set; } + + [Parameter(Mandatory = false)] + public string? WebLink { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Attendee[]? Attendees { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.ItemBody? Body { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? End { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Importance? Importance { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location? Location { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location[]? Locations { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingInfo? OnlineMeeting { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType? OnlineMeetingProvider { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient? Organizer { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.PatternedRecurrence? Recurrence { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.ResponseStatus? ResponseStatus { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Sensitivity? Sensitivity { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.FreeBusyStatus? ShowAs { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? Start { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.EventType? Type { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CalendarId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Event(); + + if (this.IsParameterBound(nameof(Categories))) + body.Categories = Categories!.ToList(); + + if (this.IsParameterBound(nameof(ChangeKey))) + body.ChangeKey = ChangeKey; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(LastModifiedDateTime))) + body.LastModifiedDateTime = LastModifiedDateTime; + + if (this.IsParameterBound(nameof(AllowNewTimeProposals))) + body.AllowNewTimeProposals = AllowNewTimeProposals; + + if (this.IsParameterBound(nameof(BodyPreview))) + body.BodyPreview = BodyPreview; + + if (this.IsParameterBound(nameof(CancelledOccurrences))) + body.CancelledOccurrences = CancelledOccurrences!.ToList(); + + if (this.IsParameterBound(nameof(HasAttachments))) + body.HasAttachments = HasAttachments; + + if (this.IsParameterBound(nameof(HideAttendees))) + body.HideAttendees = HideAttendees; + + if (this.IsParameterBound(nameof(ICalUId))) + body.ICalUId = ICalUId; + + if (this.IsParameterBound(nameof(IsAllDay))) + body.IsAllDay = IsAllDay; + + if (this.IsParameterBound(nameof(IsCancelled))) + body.IsCancelled = IsCancelled; + + if (this.IsParameterBound(nameof(IsDraft))) + body.IsDraft = IsDraft; + + if (this.IsParameterBound(nameof(IsOnlineMeeting))) + body.IsOnlineMeeting = IsOnlineMeeting; + + if (this.IsParameterBound(nameof(IsOrganizer))) + body.IsOrganizer = IsOrganizer; + + if (this.IsParameterBound(nameof(IsReminderOn))) + body.IsReminderOn = IsReminderOn; + + if (this.IsParameterBound(nameof(OccurrenceId))) + body.OccurrenceId = OccurrenceId; + + if (this.IsParameterBound(nameof(OnlineMeetingUrl))) + body.OnlineMeetingUrl = OnlineMeetingUrl; + + if (this.IsParameterBound(nameof(OriginalEndTimeZone))) + body.OriginalEndTimeZone = OriginalEndTimeZone; + + if (this.IsParameterBound(nameof(OriginalStart))) + body.OriginalStart = OriginalStart; + + if (this.IsParameterBound(nameof(OriginalStartTimeZone))) + body.OriginalStartTimeZone = OriginalStartTimeZone; + + if (this.IsParameterBound(nameof(ReminderMinutesBeforeStart))) + body.ReminderMinutesBeforeStart = ReminderMinutesBeforeStart; + + if (this.IsParameterBound(nameof(ResponseRequested))) + body.ResponseRequested = ResponseRequested; + + if (this.IsParameterBound(nameof(SeriesMasterId))) + body.SeriesMasterId = SeriesMasterId; + + if (this.IsParameterBound(nameof(Subject))) + body.Subject = Subject; + + if (this.IsParameterBound(nameof(TransactionId))) + body.TransactionId = TransactionId; + + if (this.IsParameterBound(nameof(Uid))) + body.Uid = Uid; + + if (this.IsParameterBound(nameof(WebLink))) + body.WebLink = WebLink; + + if (this.IsParameterBound(nameof(Attendees))) + body.Attendees = Attendees!.ToList(); + + if (this.IsParameterBound(nameof(Body))) + body.Body = Body; + + if (this.IsParameterBound(nameof(End))) + body.End = End; + + if (this.IsParameterBound(nameof(Importance))) + body.Importance = Importance; + + if (this.IsParameterBound(nameof(Location))) + body.Location = Location; + + if (this.IsParameterBound(nameof(Locations))) + body.Locations = Locations!.ToList(); + + if (this.IsParameterBound(nameof(OnlineMeeting))) + body.OnlineMeeting = OnlineMeeting; + + if (this.IsParameterBound(nameof(OnlineMeetingProvider))) + body.OnlineMeetingProvider = OnlineMeetingProvider; + + if (this.IsParameterBound(nameof(Organizer))) + body.Organizer = Organizer; + + if (this.IsParameterBound(nameof(Recurrence))) + body.Recurrence = Recurrence; + + if (this.IsParameterBound(nameof(ResponseStatus))) + body.ResponseStatus = ResponseStatus; + + if (this.IsParameterBound(nameof(Sensitivity))) + body.Sensitivity = Sensitivity; + + if (this.IsParameterBound(nameof(ShowAs))) + body.ShowAs = ShowAs; + + if (this.IsParameterBound(nameof(Start))) + body.Start = Start; + + if (this.IsParameterBound(nameof(Type))) + body.Type = Type; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; + try + { + result = client.Users[UserId].Calendars[CalendarId].Events.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/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroup.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroup.g.cs new file mode 100644 index 00000000000..3852ab39d46 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroup.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendarGroups")] + [Cmdlet(VerbsCommon.New, "MgUserCalendarGroup", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup))] + public class NewMgUserCalendarGroupCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? ChangeKey { get; set; } + + [Parameter(Mandatory = false)] + public global::System.Guid? ClassId { get; set; } + + [Parameter(Mandatory = false)] + public string? Name { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(UserId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup(); + + if (this.IsParameterBound(nameof(ChangeKey))) + body.ChangeKey = ChangeKey; + + if (this.IsParameterBound(nameof(ClassId))) + body.ClassId = ClassId; + + if (this.IsParameterBound(nameof(Name))) + body.Name = Name; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup? result; + try + { + result = client.Users[UserId].CalendarGroups.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/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendar.g.cs new file mode 100644 index 00000000000..99586a8343b --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendar.g.cs @@ -0,0 +1,155 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars")] + [Cmdlet(VerbsCommon.New, "MgUserCalendarGroupCalendar", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] + public class NewMgUserCalendarGroupCalendarCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarGroupId1 { get; set; } + + [Parameter(Mandatory = false)] + public bool? CanEdit { get; set; } + + [Parameter(Mandatory = false)] + public bool? CanShare { get; set; } + + [Parameter(Mandatory = false)] + public bool? CanViewPrivateItems { get; set; } + + [Parameter(Mandatory = false)] + public string? ChangeKey { get; set; } + + [Parameter(Mandatory = false)] + public string? HexColor { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsDefaultCalendar { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsRemovable { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsShared { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsSharedWithMe { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsTallyingResponses { get; set; } + + [Parameter(Mandatory = false)] + public string? Name { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType?[]? AllowedOnlineMeetingProviders { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarColor? Color { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType? DefaultOnlineMeetingProvider { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress? Owner { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CalendarGroupId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar(); + + if (this.IsParameterBound(nameof(CalendarGroupId1))) + body.CalendarGroupId = CalendarGroupId1; + + if (this.IsParameterBound(nameof(CanEdit))) + body.CanEdit = CanEdit; + + if (this.IsParameterBound(nameof(CanShare))) + body.CanShare = CanShare; + + if (this.IsParameterBound(nameof(CanViewPrivateItems))) + body.CanViewPrivateItems = CanViewPrivateItems; + + if (this.IsParameterBound(nameof(ChangeKey))) + body.ChangeKey = ChangeKey; + + if (this.IsParameterBound(nameof(HexColor))) + body.HexColor = HexColor; + + if (this.IsParameterBound(nameof(IsDefaultCalendar))) + body.IsDefaultCalendar = IsDefaultCalendar; + + if (this.IsParameterBound(nameof(IsRemovable))) + body.IsRemovable = IsRemovable; + + if (this.IsParameterBound(nameof(IsShared))) + body.IsShared = IsShared; + + if (this.IsParameterBound(nameof(IsSharedWithMe))) + body.IsSharedWithMe = IsSharedWithMe; + + if (this.IsParameterBound(nameof(IsTallyingResponses))) + body.IsTallyingResponses = IsTallyingResponses; + + if (this.IsParameterBound(nameof(Name))) + body.Name = Name; + + if (this.IsParameterBound(nameof(AllowedOnlineMeetingProviders))) + body.AllowedOnlineMeetingProviders = AllowedOnlineMeetingProviders!.ToList(); + + if (this.IsParameterBound(nameof(Color))) + body.Color = Color; + + if (this.IsParameterBound(nameof(DefaultOnlineMeetingProvider))) + body.DefaultOnlineMeetingProvider = DefaultOnlineMeetingProvider; + + if (this.IsParameterBound(nameof(Owner))) + body.Owner = Owner; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars.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/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEvent.g.cs new file mode 100644 index 00000000000..a637c4d0c44 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEvent.g.cs @@ -0,0 +1,319 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events")] + [Cmdlet(VerbsCommon.New, "MgUserCalendarGroupCalendarEvent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class NewMgUserCalendarGroupCalendarEventCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string[]? Categories { get; set; } + + [Parameter(Mandatory = false)] + public string? ChangeKey { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? AllowNewTimeProposals { get; set; } + + [Parameter(Mandatory = false)] + public string? BodyPreview { get; set; } + + [Parameter(Mandatory = false)] + public string[]? CancelledOccurrences { get; set; } + + [Parameter(Mandatory = false)] + public bool? HasAttachments { get; set; } + + [Parameter(Mandatory = false)] + public bool? HideAttendees { get; set; } + + [Parameter(Mandatory = false)] + public string? ICalUId { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsAllDay { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsCancelled { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsDraft { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsOnlineMeeting { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsOrganizer { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsReminderOn { get; set; } + + [Parameter(Mandatory = false)] + public string? OccurrenceId { get; set; } + + [Parameter(Mandatory = false)] + public string? OnlineMeetingUrl { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginalEndTimeZone { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? OriginalStart { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginalStartTimeZone { get; set; } + + [Parameter(Mandatory = false)] + public int? ReminderMinutesBeforeStart { get; set; } + + [Parameter(Mandatory = false)] + public bool? ResponseRequested { get; set; } + + [Parameter(Mandatory = false)] + public string? SeriesMasterId { get; set; } + + [Parameter(Mandatory = false)] + public string? Subject { get; set; } + + [Parameter(Mandatory = false)] + public string? TransactionId { get; set; } + + [Parameter(Mandatory = false)] + public string? Uid { get; set; } + + [Parameter(Mandatory = false)] + public string? WebLink { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Attendee[]? Attendees { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.ItemBody? Body { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? End { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Importance? Importance { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location? Location { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location[]? Locations { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingInfo? OnlineMeeting { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType? OnlineMeetingProvider { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient? Organizer { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.PatternedRecurrence? Recurrence { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.ResponseStatus? ResponseStatus { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Sensitivity? Sensitivity { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.FreeBusyStatus? ShowAs { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? Start { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.EventType? Type { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CalendarId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Event(); + + if (this.IsParameterBound(nameof(Categories))) + body.Categories = Categories!.ToList(); + + if (this.IsParameterBound(nameof(ChangeKey))) + body.ChangeKey = ChangeKey; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(LastModifiedDateTime))) + body.LastModifiedDateTime = LastModifiedDateTime; + + if (this.IsParameterBound(nameof(AllowNewTimeProposals))) + body.AllowNewTimeProposals = AllowNewTimeProposals; + + if (this.IsParameterBound(nameof(BodyPreview))) + body.BodyPreview = BodyPreview; + + if (this.IsParameterBound(nameof(CancelledOccurrences))) + body.CancelledOccurrences = CancelledOccurrences!.ToList(); + + if (this.IsParameterBound(nameof(HasAttachments))) + body.HasAttachments = HasAttachments; + + if (this.IsParameterBound(nameof(HideAttendees))) + body.HideAttendees = HideAttendees; + + if (this.IsParameterBound(nameof(ICalUId))) + body.ICalUId = ICalUId; + + if (this.IsParameterBound(nameof(IsAllDay))) + body.IsAllDay = IsAllDay; + + if (this.IsParameterBound(nameof(IsCancelled))) + body.IsCancelled = IsCancelled; + + if (this.IsParameterBound(nameof(IsDraft))) + body.IsDraft = IsDraft; + + if (this.IsParameterBound(nameof(IsOnlineMeeting))) + body.IsOnlineMeeting = IsOnlineMeeting; + + if (this.IsParameterBound(nameof(IsOrganizer))) + body.IsOrganizer = IsOrganizer; + + if (this.IsParameterBound(nameof(IsReminderOn))) + body.IsReminderOn = IsReminderOn; + + if (this.IsParameterBound(nameof(OccurrenceId))) + body.OccurrenceId = OccurrenceId; + + if (this.IsParameterBound(nameof(OnlineMeetingUrl))) + body.OnlineMeetingUrl = OnlineMeetingUrl; + + if (this.IsParameterBound(nameof(OriginalEndTimeZone))) + body.OriginalEndTimeZone = OriginalEndTimeZone; + + if (this.IsParameterBound(nameof(OriginalStart))) + body.OriginalStart = OriginalStart; + + if (this.IsParameterBound(nameof(OriginalStartTimeZone))) + body.OriginalStartTimeZone = OriginalStartTimeZone; + + if (this.IsParameterBound(nameof(ReminderMinutesBeforeStart))) + body.ReminderMinutesBeforeStart = ReminderMinutesBeforeStart; + + if (this.IsParameterBound(nameof(ResponseRequested))) + body.ResponseRequested = ResponseRequested; + + if (this.IsParameterBound(nameof(SeriesMasterId))) + body.SeriesMasterId = SeriesMasterId; + + if (this.IsParameterBound(nameof(Subject))) + body.Subject = Subject; + + if (this.IsParameterBound(nameof(TransactionId))) + body.TransactionId = TransactionId; + + if (this.IsParameterBound(nameof(Uid))) + body.Uid = Uid; + + if (this.IsParameterBound(nameof(WebLink))) + body.WebLink = WebLink; + + if (this.IsParameterBound(nameof(Attendees))) + body.Attendees = Attendees!.ToList(); + + if (this.IsParameterBound(nameof(Body))) + body.Body = Body; + + if (this.IsParameterBound(nameof(End))) + body.End = End; + + if (this.IsParameterBound(nameof(Importance))) + body.Importance = Importance; + + if (this.IsParameterBound(nameof(Location))) + body.Location = Location; + + if (this.IsParameterBound(nameof(Locations))) + body.Locations = Locations!.ToList(); + + if (this.IsParameterBound(nameof(OnlineMeeting))) + body.OnlineMeeting = OnlineMeeting; + + if (this.IsParameterBound(nameof(OnlineMeetingProvider))) + body.OnlineMeetingProvider = OnlineMeetingProvider; + + if (this.IsParameterBound(nameof(Organizer))) + body.Organizer = Organizer; + + if (this.IsParameterBound(nameof(Recurrence))) + body.Recurrence = Recurrence; + + if (this.IsParameterBound(nameof(ResponseStatus))) + body.ResponseStatus = ResponseStatus; + + if (this.IsParameterBound(nameof(Sensitivity))) + body.Sensitivity = Sensitivity; + + if (this.IsParameterBound(nameof(ShowAs))) + body.ShowAs = ShowAs; + + if (this.IsParameterBound(nameof(Start))) + body.Start = Start; + + if (this.IsParameterBound(nameof(Type))) + body.Type = Type; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events.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/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEventAttachment.g.cs new file mode 100644 index 00000000000..01a83d9de9e --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEventAttachment.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments")] + [Cmdlet(VerbsCommon.New, "MgUserCalendarGroupCalendarEventAttachment", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment))] + public class NewMgUserCalendarGroupCalendarEventAttachmentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? ContentType { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsInline { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Name { get; set; } + + [Parameter(Mandatory = false)] + public int? Size { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment(); + + if (this.IsParameterBound(nameof(ContentType))) + body.ContentType = ContentType; + + if (this.IsParameterBound(nameof(IsInline))) + body.IsInline = IsInline; + + if (this.IsParameterBound(nameof(LastModifiedDateTime))) + body.LastModifiedDateTime = LastModifiedDateTime; + + if (this.IsParameterBound(nameof(Name))) + body.Name = Name; + + if (this.IsParameterBound(nameof(Size))) + body.Size = Size; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Attachments.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/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEventExtension.g.cs new file mode 100644 index 00000000000..86ba1caa460 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEventExtension.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions")] + [Cmdlet(VerbsCommon.New, "MgUserCalendarGroupCalendarEventExtension", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] + public class NewMgUserCalendarGroupCalendarEventExtensionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension(); + + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Extensions.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/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarPermission.g.cs new file mode 100644 index 00000000000..70dbcf1b84f --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarPermission.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions")] + [Cmdlet(VerbsCommon.New, "MgUserCalendarGroupCalendarPermission", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission))] + public class NewMgUserCalendarGroupCalendarPermissionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public bool? IsInsideOrganization { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsRemovable { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarRoleType?[]? AllowedRoles { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress? EmailAddress { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarRoleType? Role { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CalendarId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission(); + + if (this.IsParameterBound(nameof(IsInsideOrganization))) + body.IsInsideOrganization = IsInsideOrganization; + + if (this.IsParameterBound(nameof(IsRemovable))) + body.IsRemovable = IsRemovable; + + if (this.IsParameterBound(nameof(AllowedRoles))) + body.AllowedRoles = AllowedRoles!.ToList(); + + if (this.IsParameterBound(nameof(EmailAddress))) + body.EmailAddress = EmailAddress; + + if (this.IsParameterBound(nameof(Role))) + body.Role = Role; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarPermissions.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/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarPermission.g.cs new file mode 100644 index 00000000000..3121c516ae7 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarPermission.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendar/calendarPermissions")] + [Cmdlet(VerbsCommon.New, "MgUserCalendarPermission", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission))] + public class NewMgUserCalendarPermissionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public bool? IsInsideOrganization { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsRemovable { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarRoleType?[]? AllowedRoles { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress? EmailAddress { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarRoleType? Role { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(UserId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission(); + + if (this.IsParameterBound(nameof(IsInsideOrganization))) + body.IsInsideOrganization = IsInsideOrganization; + + if (this.IsParameterBound(nameof(IsRemovable))) + body.IsRemovable = IsRemovable; + + if (this.IsParameterBound(nameof(AllowedRoles))) + body.AllowedRoles = AllowedRoles!.ToList(); + + if (this.IsParameterBound(nameof(EmailAddress))) + body.EmailAddress = EmailAddress; + + if (this.IsParameterBound(nameof(Role))) + body.Role = Role; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission? result; + try + { + result = client.Users[UserId].Calendar.CalendarPermissions.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/Calendar/wrapper/beta/Cmdlets/NewMgUserDefaultCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserDefaultCalendarEvent.g.cs new file mode 100644 index 00000000000..0afd28e8621 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserDefaultCalendarEvent.g.cs @@ -0,0 +1,315 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/calendar/events")] + [Cmdlet(VerbsCommon.New, "MgUserDefaultCalendarEvent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class NewMgUserDefaultCalendarEventCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string[]? Categories { get; set; } + + [Parameter(Mandatory = false)] + public string? ChangeKey { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? AllowNewTimeProposals { get; set; } + + [Parameter(Mandatory = false)] + public string? BodyPreview { get; set; } + + [Parameter(Mandatory = false)] + public string[]? CancelledOccurrences { get; set; } + + [Parameter(Mandatory = false)] + public bool? HasAttachments { get; set; } + + [Parameter(Mandatory = false)] + public bool? HideAttendees { get; set; } + + [Parameter(Mandatory = false)] + public string? ICalUId { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsAllDay { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsCancelled { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsDraft { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsOnlineMeeting { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsOrganizer { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsReminderOn { get; set; } + + [Parameter(Mandatory = false)] + public string? OccurrenceId { get; set; } + + [Parameter(Mandatory = false)] + public string? OnlineMeetingUrl { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginalEndTimeZone { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? OriginalStart { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginalStartTimeZone { get; set; } + + [Parameter(Mandatory = false)] + public int? ReminderMinutesBeforeStart { get; set; } + + [Parameter(Mandatory = false)] + public bool? ResponseRequested { get; set; } + + [Parameter(Mandatory = false)] + public string? SeriesMasterId { get; set; } + + [Parameter(Mandatory = false)] + public string? Subject { get; set; } + + [Parameter(Mandatory = false)] + public string? TransactionId { get; set; } + + [Parameter(Mandatory = false)] + public string? Uid { get; set; } + + [Parameter(Mandatory = false)] + public string? WebLink { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Attendee[]? Attendees { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.ItemBody? Body { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? End { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Importance? Importance { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location? Location { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location[]? Locations { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingInfo? OnlineMeeting { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType? OnlineMeetingProvider { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient? Organizer { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.PatternedRecurrence? Recurrence { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.ResponseStatus? ResponseStatus { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Sensitivity? Sensitivity { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.FreeBusyStatus? ShowAs { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? Start { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.EventType? Type { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(UserId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Event(); + + if (this.IsParameterBound(nameof(Categories))) + body.Categories = Categories!.ToList(); + + if (this.IsParameterBound(nameof(ChangeKey))) + body.ChangeKey = ChangeKey; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(LastModifiedDateTime))) + body.LastModifiedDateTime = LastModifiedDateTime; + + if (this.IsParameterBound(nameof(AllowNewTimeProposals))) + body.AllowNewTimeProposals = AllowNewTimeProposals; + + if (this.IsParameterBound(nameof(BodyPreview))) + body.BodyPreview = BodyPreview; + + if (this.IsParameterBound(nameof(CancelledOccurrences))) + body.CancelledOccurrences = CancelledOccurrences!.ToList(); + + if (this.IsParameterBound(nameof(HasAttachments))) + body.HasAttachments = HasAttachments; + + if (this.IsParameterBound(nameof(HideAttendees))) + body.HideAttendees = HideAttendees; + + if (this.IsParameterBound(nameof(ICalUId))) + body.ICalUId = ICalUId; + + if (this.IsParameterBound(nameof(IsAllDay))) + body.IsAllDay = IsAllDay; + + if (this.IsParameterBound(nameof(IsCancelled))) + body.IsCancelled = IsCancelled; + + if (this.IsParameterBound(nameof(IsDraft))) + body.IsDraft = IsDraft; + + if (this.IsParameterBound(nameof(IsOnlineMeeting))) + body.IsOnlineMeeting = IsOnlineMeeting; + + if (this.IsParameterBound(nameof(IsOrganizer))) + body.IsOrganizer = IsOrganizer; + + if (this.IsParameterBound(nameof(IsReminderOn))) + body.IsReminderOn = IsReminderOn; + + if (this.IsParameterBound(nameof(OccurrenceId))) + body.OccurrenceId = OccurrenceId; + + if (this.IsParameterBound(nameof(OnlineMeetingUrl))) + body.OnlineMeetingUrl = OnlineMeetingUrl; + + if (this.IsParameterBound(nameof(OriginalEndTimeZone))) + body.OriginalEndTimeZone = OriginalEndTimeZone; + + if (this.IsParameterBound(nameof(OriginalStart))) + body.OriginalStart = OriginalStart; + + if (this.IsParameterBound(nameof(OriginalStartTimeZone))) + body.OriginalStartTimeZone = OriginalStartTimeZone; + + if (this.IsParameterBound(nameof(ReminderMinutesBeforeStart))) + body.ReminderMinutesBeforeStart = ReminderMinutesBeforeStart; + + if (this.IsParameterBound(nameof(ResponseRequested))) + body.ResponseRequested = ResponseRequested; + + if (this.IsParameterBound(nameof(SeriesMasterId))) + body.SeriesMasterId = SeriesMasterId; + + if (this.IsParameterBound(nameof(Subject))) + body.Subject = Subject; + + if (this.IsParameterBound(nameof(TransactionId))) + body.TransactionId = TransactionId; + + if (this.IsParameterBound(nameof(Uid))) + body.Uid = Uid; + + if (this.IsParameterBound(nameof(WebLink))) + body.WebLink = WebLink; + + if (this.IsParameterBound(nameof(Attendees))) + body.Attendees = Attendees!.ToList(); + + if (this.IsParameterBound(nameof(Body))) + body.Body = Body; + + if (this.IsParameterBound(nameof(End))) + body.End = End; + + if (this.IsParameterBound(nameof(Importance))) + body.Importance = Importance; + + if (this.IsParameterBound(nameof(Location))) + body.Location = Location; + + if (this.IsParameterBound(nameof(Locations))) + body.Locations = Locations!.ToList(); + + if (this.IsParameterBound(nameof(OnlineMeeting))) + body.OnlineMeeting = OnlineMeeting; + + if (this.IsParameterBound(nameof(OnlineMeetingProvider))) + body.OnlineMeetingProvider = OnlineMeetingProvider; + + if (this.IsParameterBound(nameof(Organizer))) + body.Organizer = Organizer; + + if (this.IsParameterBound(nameof(Recurrence))) + body.Recurrence = Recurrence; + + if (this.IsParameterBound(nameof(ResponseStatus))) + body.ResponseStatus = ResponseStatus; + + if (this.IsParameterBound(nameof(Sensitivity))) + body.Sensitivity = Sensitivity; + + if (this.IsParameterBound(nameof(ShowAs))) + body.ShowAs = ShowAs; + + if (this.IsParameterBound(nameof(Start))) + body.Start = Start; + + if (this.IsParameterBound(nameof(Type))) + body.Type = Type; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; + try + { + result = client.Users[UserId].Calendar.Events.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/Calendar/wrapper/beta/Cmdlets/NewMgUserEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserEvent.g.cs new file mode 100644 index 00000000000..8c14d657dd1 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserEvent.g.cs @@ -0,0 +1,315 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/events")] + [Cmdlet(VerbsCommon.New, "MgUserEvent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class NewMgUserEventCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string[]? Categories { get; set; } + + [Parameter(Mandatory = false)] + public string? ChangeKey { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? AllowNewTimeProposals { get; set; } + + [Parameter(Mandatory = false)] + public string? BodyPreview { get; set; } + + [Parameter(Mandatory = false)] + public string[]? CancelledOccurrences { get; set; } + + [Parameter(Mandatory = false)] + public bool? HasAttachments { get; set; } + + [Parameter(Mandatory = false)] + public bool? HideAttendees { get; set; } + + [Parameter(Mandatory = false)] + public string? ICalUId { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsAllDay { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsCancelled { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsDraft { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsOnlineMeeting { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsOrganizer { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsReminderOn { get; set; } + + [Parameter(Mandatory = false)] + public string? OccurrenceId { get; set; } + + [Parameter(Mandatory = false)] + public string? OnlineMeetingUrl { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginalEndTimeZone { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? OriginalStart { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginalStartTimeZone { get; set; } + + [Parameter(Mandatory = false)] + public int? ReminderMinutesBeforeStart { get; set; } + + [Parameter(Mandatory = false)] + public bool? ResponseRequested { get; set; } + + [Parameter(Mandatory = false)] + public string? SeriesMasterId { get; set; } + + [Parameter(Mandatory = false)] + public string? Subject { get; set; } + + [Parameter(Mandatory = false)] + public string? TransactionId { get; set; } + + [Parameter(Mandatory = false)] + public string? Uid { get; set; } + + [Parameter(Mandatory = false)] + public string? WebLink { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Attendee[]? Attendees { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.ItemBody? Body { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? End { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Importance? Importance { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location? Location { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location[]? Locations { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingInfo? OnlineMeeting { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType? OnlineMeetingProvider { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient? Organizer { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.PatternedRecurrence? Recurrence { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.ResponseStatus? ResponseStatus { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Sensitivity? Sensitivity { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.FreeBusyStatus? ShowAs { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? Start { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.EventType? Type { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(UserId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Event(); + + if (this.IsParameterBound(nameof(Categories))) + body.Categories = Categories!.ToList(); + + if (this.IsParameterBound(nameof(ChangeKey))) + body.ChangeKey = ChangeKey; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(LastModifiedDateTime))) + body.LastModifiedDateTime = LastModifiedDateTime; + + if (this.IsParameterBound(nameof(AllowNewTimeProposals))) + body.AllowNewTimeProposals = AllowNewTimeProposals; + + if (this.IsParameterBound(nameof(BodyPreview))) + body.BodyPreview = BodyPreview; + + if (this.IsParameterBound(nameof(CancelledOccurrences))) + body.CancelledOccurrences = CancelledOccurrences!.ToList(); + + if (this.IsParameterBound(nameof(HasAttachments))) + body.HasAttachments = HasAttachments; + + if (this.IsParameterBound(nameof(HideAttendees))) + body.HideAttendees = HideAttendees; + + if (this.IsParameterBound(nameof(ICalUId))) + body.ICalUId = ICalUId; + + if (this.IsParameterBound(nameof(IsAllDay))) + body.IsAllDay = IsAllDay; + + if (this.IsParameterBound(nameof(IsCancelled))) + body.IsCancelled = IsCancelled; + + if (this.IsParameterBound(nameof(IsDraft))) + body.IsDraft = IsDraft; + + if (this.IsParameterBound(nameof(IsOnlineMeeting))) + body.IsOnlineMeeting = IsOnlineMeeting; + + if (this.IsParameterBound(nameof(IsOrganizer))) + body.IsOrganizer = IsOrganizer; + + if (this.IsParameterBound(nameof(IsReminderOn))) + body.IsReminderOn = IsReminderOn; + + if (this.IsParameterBound(nameof(OccurrenceId))) + body.OccurrenceId = OccurrenceId; + + if (this.IsParameterBound(nameof(OnlineMeetingUrl))) + body.OnlineMeetingUrl = OnlineMeetingUrl; + + if (this.IsParameterBound(nameof(OriginalEndTimeZone))) + body.OriginalEndTimeZone = OriginalEndTimeZone; + + if (this.IsParameterBound(nameof(OriginalStart))) + body.OriginalStart = OriginalStart; + + if (this.IsParameterBound(nameof(OriginalStartTimeZone))) + body.OriginalStartTimeZone = OriginalStartTimeZone; + + if (this.IsParameterBound(nameof(ReminderMinutesBeforeStart))) + body.ReminderMinutesBeforeStart = ReminderMinutesBeforeStart; + + if (this.IsParameterBound(nameof(ResponseRequested))) + body.ResponseRequested = ResponseRequested; + + if (this.IsParameterBound(nameof(SeriesMasterId))) + body.SeriesMasterId = SeriesMasterId; + + if (this.IsParameterBound(nameof(Subject))) + body.Subject = Subject; + + if (this.IsParameterBound(nameof(TransactionId))) + body.TransactionId = TransactionId; + + if (this.IsParameterBound(nameof(Uid))) + body.Uid = Uid; + + if (this.IsParameterBound(nameof(WebLink))) + body.WebLink = WebLink; + + if (this.IsParameterBound(nameof(Attendees))) + body.Attendees = Attendees!.ToList(); + + if (this.IsParameterBound(nameof(Body))) + body.Body = Body; + + if (this.IsParameterBound(nameof(End))) + body.End = End; + + if (this.IsParameterBound(nameof(Importance))) + body.Importance = Importance; + + if (this.IsParameterBound(nameof(Location))) + body.Location = Location; + + if (this.IsParameterBound(nameof(Locations))) + body.Locations = Locations!.ToList(); + + if (this.IsParameterBound(nameof(OnlineMeeting))) + body.OnlineMeeting = OnlineMeeting; + + if (this.IsParameterBound(nameof(OnlineMeetingProvider))) + body.OnlineMeetingProvider = OnlineMeetingProvider; + + if (this.IsParameterBound(nameof(Organizer))) + body.Organizer = Organizer; + + if (this.IsParameterBound(nameof(Recurrence))) + body.Recurrence = Recurrence; + + if (this.IsParameterBound(nameof(ResponseStatus))) + body.ResponseStatus = ResponseStatus; + + if (this.IsParameterBound(nameof(Sensitivity))) + body.Sensitivity = Sensitivity; + + if (this.IsParameterBound(nameof(ShowAs))) + body.ShowAs = ShowAs; + + if (this.IsParameterBound(nameof(Start))) + body.Start = Start; + + if (this.IsParameterBound(nameof(Type))) + body.Type = Type; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; + try + { + result = client.Users[UserId].Events.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/Calendar/wrapper/beta/Cmdlets/NewMgUserEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserEventAttachment.g.cs new file mode 100644 index 00000000000..4434c19f248 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserEventAttachment.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/events/{event-id}/attachments")] + [Cmdlet(VerbsCommon.New, "MgUserEventAttachment", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment))] + public class NewMgUserEventAttachmentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? ContentType { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsInline { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public string? Name { get; set; } + + [Parameter(Mandatory = false)] + public int? Size { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment(); + + if (this.IsParameterBound(nameof(ContentType))) + body.ContentType = ContentType; + + if (this.IsParameterBound(nameof(IsInline))) + body.IsInline = IsInline; + + if (this.IsParameterBound(nameof(LastModifiedDateTime))) + body.LastModifiedDateTime = LastModifiedDateTime; + + if (this.IsParameterBound(nameof(Name))) + body.Name = Name; + + if (this.IsParameterBound(nameof(Size))) + body.Size = Size; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment? result; + try + { + result = client.Users[UserId].Events[EventId].Attachments.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/Calendar/wrapper/beta/Cmdlets/NewMgUserEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserEventExtension.g.cs new file mode 100644 index 00000000000..a29a2b3cac8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserEventExtension.g.cs @@ -0,0 +1,63 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("POST", "/users/{user-id}/events/{event-id}/extensions")] + [Cmdlet(VerbsCommon.New, "MgUserEventExtension", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] + public class NewMgUserEventExtensionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "New")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension(); + + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; + try + { + result = client.Users[UserId].Events[EventId].Extensions.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/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEvent.g.cs new file mode 100644 index 00000000000..ca15145135c --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEvent.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/groups/{group-id}/calendar/events/{event-id}")] + [Cmdlet(VerbsCommon.Remove, "MgGroupCalendarEvent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgGroupCalendarEventCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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(EventId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Groups[GroupId].Calendar.Events[EventId].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, EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEventAttachment.g.cs new file mode 100644 index 00000000000..4c42baa4f9b --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEventAttachment.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/groups/{group-id}/calendar/events/{event-id}/attachments/{attachment-id}")] + [Cmdlet(VerbsCommon.Remove, "MgGroupCalendarEventAttachment", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgGroupCalendarEventAttachmentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AttachmentId { 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(AttachmentId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Groups[GroupId].Calendar.Events[EventId].Attachments[AttachmentId].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, AttachmentId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEventExtension.g.cs new file mode 100644 index 00000000000..ffb0c6a630b --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEventExtension.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}")] + [Cmdlet(VerbsCommon.Remove, "MgGroupCalendarEventExtension", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgGroupCalendarEventExtensionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string ExtensionId { 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(ExtensionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Groups[GroupId].Calendar.Events[EventId].Extensions[ExtensionId].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, ExtensionId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarPermission.g.cs new file mode 100644 index 00000000000..ed2f9774480 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarPermission.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/groups/{group-id}/calendar/calendarPermissions/{calendarPermission-id}")] + [Cmdlet(VerbsCommon.Remove, "MgGroupCalendarPermission", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgGroupCalendarPermissionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarPermissionId { 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(CalendarPermissionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Groups[GroupId].Calendar.CalendarPermissions[CalendarPermissionId].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, CalendarPermissionId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEvent.g.cs new file mode 100644 index 00000000000..45b5c6a7373 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEvent.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/groups/{group-id}/events/{event-id}")] + [Cmdlet(VerbsCommon.Remove, "MgGroupEvent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgGroupEventCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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(EventId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Groups[GroupId].Events[EventId].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, EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEventAttachment.g.cs new file mode 100644 index 00000000000..a83b9ae5fef --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEventAttachment.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/groups/{group-id}/events/{event-id}/attachments/{attachment-id}")] + [Cmdlet(VerbsCommon.Remove, "MgGroupEventAttachment", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgGroupEventAttachmentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AttachmentId { 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(AttachmentId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Groups[GroupId].Events[EventId].Attachments[AttachmentId].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, AttachmentId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEventExtension.g.cs new file mode 100644 index 00000000000..a8b772c7d8a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEventExtension.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/groups/{group-id}/events/{event-id}/extensions/{extension-id}")] + [Cmdlet(VerbsCommon.Remove, "MgGroupEventExtension", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgGroupEventExtensionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string ExtensionId { 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(ExtensionId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Groups[GroupId].Events[EventId].Extensions[ExtensionId].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, ExtensionId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlace.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlace.g.cs new file mode 100644 index 00000000000..5620c6e8302 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlace.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/places/{place-id}")] + [Cmdlet(VerbsCommon.Remove, "MgPlace", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPlaceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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(PlaceId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Places[PlaceId].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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingCheckIn.g.cs new file mode 100644 index 00000000000..82ecc79b37c --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingCheckIn.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/places/{place-id}/graph.building/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsCommon.Remove, "MgPlaceAsBuildingCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPlaceAsBuildingCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { 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(CheckInClaimCalendarEventId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Places[PlaceId].GraphBuilding.CheckIns[CheckInClaimCalendarEventId].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, CheckInClaimCalendarEventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMap.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMap.g.cs new file mode 100644 index 00000000000..85fc2be9c98 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMap.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/places/{place-id}/graph.building/map")] + [Cmdlet(VerbsCommon.Remove, "MgPlaceAsBuildingMap", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPlaceAsBuildingMapCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { 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(PlaceId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Places[PlaceId].GraphBuilding.Map.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, PlaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapFootprint.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapFootprint.g.cs new file mode 100644 index 00000000000..0b548a14282 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapFootprint.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/places/{place-id}/graph.building/map/footprints/{footprintMap-id}")] + [Cmdlet(VerbsCommon.Remove, "MgPlaceAsBuildingMapFootprint", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPlaceAsBuildingMapFootprintCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string FootprintMapId { 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(FootprintMapId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Places[PlaceId].GraphBuilding.Map.Footprints[FootprintMapId].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, FootprintMapId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevel.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevel.g.cs new file mode 100644 index 00000000000..306fbe19859 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevel.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/places/{place-id}/graph.building/map/levels/{levelMap-id}")] + [Cmdlet(VerbsCommon.Remove, "MgPlaceAsBuildingMapLevel", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPlaceAsBuildingMapLevelCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { 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(LevelMapId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].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, LevelMapId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelFixture.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelFixture.g.cs new file mode 100644 index 00000000000..e447726cb2a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelFixture.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/places/{place-id}/graph.building/map/levels/{levelMap-id}/fixtures/{fixtureMap-id}")] + [Cmdlet(VerbsCommon.Remove, "MgPlaceAsBuildingMapLevelFixture", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPlaceAsBuildingMapLevelFixtureCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string FixtureMapId { 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(FixtureMapId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Fixtures[FixtureMapId].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, FixtureMapId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelSection.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelSection.g.cs new file mode 100644 index 00000000000..a7a3f8d7497 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelSection.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/places/{place-id}/graph.building/map/levels/{levelMap-id}/sections/{sectionMap-id}")] + [Cmdlet(VerbsCommon.Remove, "MgPlaceAsBuildingMapLevelSection", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPlaceAsBuildingMapLevelSectionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SectionMapId { 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(SectionMapId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Sections[SectionMapId].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, SectionMapId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelUnit.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelUnit.g.cs new file mode 100644 index 00000000000..bde8a2158dd --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelUnit.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/places/{place-id}/graph.building/map/levels/{levelMap-id}/units/{unitMap-id}")] + [Cmdlet(VerbsCommon.Remove, "MgPlaceAsBuildingMapLevelUnit", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPlaceAsBuildingMapLevelUnitCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string UnitMapId { 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(UnitMapId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Units[UnitMapId].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, UnitMapId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsDeskCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsDeskCheckIn.g.cs new file mode 100644 index 00000000000..524921eb43a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsDeskCheckIn.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/places/{place-id}/graph.desk/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsCommon.Remove, "MgPlaceAsDeskCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPlaceAsDeskCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { 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(CheckInClaimCalendarEventId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Places[PlaceId].GraphDesk.CheckIns[CheckInClaimCalendarEventId].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, CheckInClaimCalendarEventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsFloorCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsFloorCheckIn.g.cs new file mode 100644 index 00000000000..50a2f2f4f95 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsFloorCheckIn.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/places/{place-id}/graph.floor/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsCommon.Remove, "MgPlaceAsFloorCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPlaceAsFloorCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { 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(CheckInClaimCalendarEventId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Places[PlaceId].GraphFloor.CheckIns[CheckInClaimCalendarEventId].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, CheckInClaimCalendarEventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomCheckIn.g.cs new file mode 100644 index 00000000000..d4b534e4809 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomCheckIn.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/places/{place-id}/graph.room/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsCommon.Remove, "MgPlaceAsRoomCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPlaceAsRoomCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { 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(CheckInClaimCalendarEventId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Places[PlaceId].GraphRoom.CheckIns[CheckInClaimCalendarEventId].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, CheckInClaimCalendarEventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListCheckIn.g.cs new file mode 100644 index 00000000000..312597a9010 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListCheckIn.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/places/{place-id}/graph.roomList/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsCommon.Remove, "MgPlaceAsRoomListCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPlaceAsRoomListCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { 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(CheckInClaimCalendarEventId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Places[PlaceId].GraphRoomList.CheckIns[CheckInClaimCalendarEventId].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, CheckInClaimCalendarEventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListRoom.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListRoom.g.cs new file mode 100644 index 00000000000..e98b844812a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListRoom.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/places/{place-id}/graph.roomList/rooms/{room-id}")] + [Cmdlet(VerbsCommon.Remove, "MgPlaceAsRoomListRoom", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPlaceAsRoomListRoomCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RoomId { 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(RoomId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Places[PlaceId].GraphRoomList.Rooms[RoomId].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, RoomId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListRoomCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListRoomCheckIn.g.cs new file mode 100644 index 00000000000..cb76fed0a9a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListRoomCheckIn.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/places/{place-id}/graph.roomList/rooms/{room-id}/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsCommon.Remove, "MgPlaceAsRoomListRoomCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPlaceAsRoomListRoomCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RoomId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CheckInClaimCalendarEventId { 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(CheckInClaimCalendarEventId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Places[PlaceId].GraphRoomList.Rooms[RoomId].CheckIns[CheckInClaimCalendarEventId].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, CheckInClaimCalendarEventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListWorkspace.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListWorkspace.g.cs new file mode 100644 index 00000000000..8b8eebc9513 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListWorkspace.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/places/{place-id}/graph.roomList/workspaces/{workspace-id}")] + [Cmdlet(VerbsCommon.Remove, "MgPlaceAsRoomListWorkspace", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPlaceAsRoomListWorkspaceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string WorkspaceId { 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(WorkspaceId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].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, WorkspaceId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListWorkspaceCheckIn.g.cs new file mode 100644 index 00000000000..b8c617cdcfa --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListWorkspaceCheckIn.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/places/{place-id}/graph.roomList/workspaces/{workspace-id}/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsCommon.Remove, "MgPlaceAsRoomListWorkspaceCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPlaceAsRoomListWorkspaceCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string WorkspaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CheckInClaimCalendarEventId { 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(CheckInClaimCalendarEventId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].CheckIns[CheckInClaimCalendarEventId].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, CheckInClaimCalendarEventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsSectionCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsSectionCheckIn.g.cs new file mode 100644 index 00000000000..9923b69cbcb --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsSectionCheckIn.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/places/{place-id}/graph.section/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsCommon.Remove, "MgPlaceAsSectionCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPlaceAsSectionCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { 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(CheckInClaimCalendarEventId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Places[PlaceId].GraphSection.CheckIns[CheckInClaimCalendarEventId].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, CheckInClaimCalendarEventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsWorkspaceCheckIn.g.cs new file mode 100644 index 00000000000..8cabdb12c3b --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsWorkspaceCheckIn.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/places/{place-id}/graph.workspace/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsCommon.Remove, "MgPlaceAsWorkspaceCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPlaceAsWorkspaceCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { 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(CheckInClaimCalendarEventId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Places[PlaceId].GraphWorkspace.CheckIns[CheckInClaimCalendarEventId].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, CheckInClaimCalendarEventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceCheckIn.g.cs new file mode 100644 index 00000000000..049b4b8f8e5 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceCheckIn.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/places/{place-id}/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsCommon.Remove, "MgPlaceCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgPlaceCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { 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(CheckInClaimCalendarEventId, "Remove")) + return; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + // DeleteAsync returns a plain Task: a standard delete response has no body. + try + { + client.Places[PlaceId].CheckIns[CheckInClaimCalendarEventId].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, CheckInClaimCalendarEventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendar.g.cs new file mode 100644 index 00000000000..ce2f332d6a3 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendar.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/users/{user-id}/calendars/{calendar-id}")] + [Cmdlet(VerbsCommon.Remove, "MgUserCalendar", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgUserCalendarCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarId { 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(CalendarId, "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].Calendars[CalendarId].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, CalendarId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroup.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroup.g.cs new file mode 100644 index 00000000000..70cbbcf59a8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroup.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/users/{user-id}/calendarGroups/{calendarGroup-id}")] + [Cmdlet(VerbsCommon.Remove, "MgUserCalendarGroup", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgUserCalendarGroupCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { 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(CalendarGroupId, "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].CalendarGroups[CalendarGroupId].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, CalendarGroupId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendar.g.cs new file mode 100644 index 00000000000..e3cd402601f --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendar.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}")] + [Cmdlet(VerbsCommon.Remove, "MgUserCalendarGroupCalendar", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgUserCalendarGroupCalendarCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { 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(CalendarId, "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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].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, CalendarId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEvent.g.cs new file mode 100644 index 00000000000..bd1591c78cc --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEvent.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}")] + [Cmdlet(VerbsCommon.Remove, "MgUserCalendarGroupCalendarEvent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgUserCalendarGroupCalendarEventCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { 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(EventId, "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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].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, EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEventAttachment.g.cs new file mode 100644 index 00000000000..9cd1b9a9706 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEventAttachment.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}")] + [Cmdlet(VerbsCommon.Remove, "MgUserCalendarGroupCalendarEventAttachment", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgUserCalendarGroupCalendarEventAttachmentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string AttachmentId { 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(AttachmentId, "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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Attachments[AttachmentId].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, AttachmentId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEventExtension.g.cs new file mode 100644 index 00000000000..8d26033fb62 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEventExtension.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}")] + [Cmdlet(VerbsCommon.Remove, "MgUserCalendarGroupCalendarEventExtension", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgUserCalendarGroupCalendarEventExtensionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string ExtensionId { 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(ExtensionId, "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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Extensions[ExtensionId].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, ExtensionId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarPermission.g.cs new file mode 100644 index 00000000000..1a2077833a3 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarPermission.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}")] + [Cmdlet(VerbsCommon.Remove, "MgUserCalendarGroupCalendarPermission", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgUserCalendarGroupCalendarPermissionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CalendarPermissionId { 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(CalendarPermissionId, "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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarPermissions[CalendarPermissionId].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, CalendarPermissionId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarPermission.g.cs new file mode 100644 index 00000000000..ac41a11617c --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarPermission.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/users/{user-id}/calendar/calendarPermissions/{calendarPermission-id}")] + [Cmdlet(VerbsCommon.Remove, "MgUserCalendarPermission", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgUserCalendarPermissionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarPermissionId { 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(CalendarPermissionId, "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].Calendar.CalendarPermissions[CalendarPermissionId].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, CalendarPermissionId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEvent.g.cs new file mode 100644 index 00000000000..28d0c079c95 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEvent.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/users/{user-id}/events/{event-id}")] + [Cmdlet(VerbsCommon.Remove, "MgUserEvent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgUserEventCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { 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(EventId, "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].Events[EventId].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, EventId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEventAttachment.g.cs new file mode 100644 index 00000000000..560c2d03cd7 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEventAttachment.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/users/{user-id}/events/{event-id}/attachments/{attachment-id}")] + [Cmdlet(VerbsCommon.Remove, "MgUserEventAttachment", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgUserEventAttachmentCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string AttachmentId { 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(AttachmentId, "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].Events[EventId].Attachments[AttachmentId].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, AttachmentId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEventExtension.g.cs new file mode 100644 index 00000000000..7f00d0b791f --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEventExtension.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.Calendar.Client; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("DELETE", "/users/{user-id}/events/{event-id}/extensions/{extension-id}")] + [Cmdlet(VerbsCommon.Remove, "MgUserEventExtension", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] + public class RemoveMgUserEventExtensionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string ExtensionId { 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(ExtensionId, "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].Events[EventId].Extensions[ExtensionId].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, ExtensionId); + return; + } + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarEvent.g.cs new file mode 100644 index 00000000000..2ba78c736a1 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarEvent.g.cs @@ -0,0 +1,332 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/groups/{group-id}/calendar/events/{event-id}")] + [Cmdlet(VerbsData.Update, "MgGroupCalendarEvent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class UpdateMgGroupCalendarEventCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string[]? Categories { get; set; } + + [Parameter(Mandatory = false)] + public string? ChangeKey { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? AllowNewTimeProposals { get; set; } + + [Parameter(Mandatory = false)] + public string? BodyPreview { get; set; } + + [Parameter(Mandatory = false)] + public string[]? CancelledOccurrences { get; set; } + + [Parameter(Mandatory = false)] + public bool? HasAttachments { get; set; } + + [Parameter(Mandatory = false)] + public bool? HideAttendees { get; set; } + + [Parameter(Mandatory = false)] + public string? ICalUId { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsAllDay { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsCancelled { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsDraft { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsOnlineMeeting { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsOrganizer { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsReminderOn { get; set; } + + [Parameter(Mandatory = false)] + public string? OccurrenceId { get; set; } + + [Parameter(Mandatory = false)] + public string? OnlineMeetingUrl { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginalEndTimeZone { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? OriginalStart { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginalStartTimeZone { get; set; } + + [Parameter(Mandatory = false)] + public int? ReminderMinutesBeforeStart { get; set; } + + [Parameter(Mandatory = false)] + public bool? ResponseRequested { get; set; } + + [Parameter(Mandatory = false)] + public string? SeriesMasterId { get; set; } + + [Parameter(Mandatory = false)] + public string? Subject { get; set; } + + [Parameter(Mandatory = false)] + public string? TransactionId { get; set; } + + [Parameter(Mandatory = false)] + public string? Uid { get; set; } + + [Parameter(Mandatory = false)] + public string? WebLink { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Attendee[]? Attendees { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.ItemBody? Body { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? End { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Importance? Importance { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location? Location { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location[]? Locations { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingInfo? OnlineMeeting { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType? OnlineMeetingProvider { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient? Organizer { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.PatternedRecurrence? Recurrence { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.ResponseStatus? ResponseStatus { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Sensitivity? Sensitivity { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.FreeBusyStatus? ShowAs { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? Start { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.EventType? Type { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Event(); + + if (this.IsParameterBound(nameof(Categories))) + body.Categories = Categories!.ToList(); + + if (this.IsParameterBound(nameof(ChangeKey))) + body.ChangeKey = ChangeKey; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(LastModifiedDateTime))) + body.LastModifiedDateTime = LastModifiedDateTime; + + if (this.IsParameterBound(nameof(AllowNewTimeProposals))) + body.AllowNewTimeProposals = AllowNewTimeProposals; + + if (this.IsParameterBound(nameof(BodyPreview))) + body.BodyPreview = BodyPreview; + + if (this.IsParameterBound(nameof(CancelledOccurrences))) + body.CancelledOccurrences = CancelledOccurrences!.ToList(); + + if (this.IsParameterBound(nameof(HasAttachments))) + body.HasAttachments = HasAttachments; + + if (this.IsParameterBound(nameof(HideAttendees))) + body.HideAttendees = HideAttendees; + + if (this.IsParameterBound(nameof(ICalUId))) + body.ICalUId = ICalUId; + + if (this.IsParameterBound(nameof(IsAllDay))) + body.IsAllDay = IsAllDay; + + if (this.IsParameterBound(nameof(IsCancelled))) + body.IsCancelled = IsCancelled; + + if (this.IsParameterBound(nameof(IsDraft))) + body.IsDraft = IsDraft; + + if (this.IsParameterBound(nameof(IsOnlineMeeting))) + body.IsOnlineMeeting = IsOnlineMeeting; + + if (this.IsParameterBound(nameof(IsOrganizer))) + body.IsOrganizer = IsOrganizer; + + if (this.IsParameterBound(nameof(IsReminderOn))) + body.IsReminderOn = IsReminderOn; + + if (this.IsParameterBound(nameof(OccurrenceId))) + body.OccurrenceId = OccurrenceId; + + if (this.IsParameterBound(nameof(OnlineMeetingUrl))) + body.OnlineMeetingUrl = OnlineMeetingUrl; + + if (this.IsParameterBound(nameof(OriginalEndTimeZone))) + body.OriginalEndTimeZone = OriginalEndTimeZone; + + if (this.IsParameterBound(nameof(OriginalStart))) + body.OriginalStart = OriginalStart; + + if (this.IsParameterBound(nameof(OriginalStartTimeZone))) + body.OriginalStartTimeZone = OriginalStartTimeZone; + + if (this.IsParameterBound(nameof(ReminderMinutesBeforeStart))) + body.ReminderMinutesBeforeStart = ReminderMinutesBeforeStart; + + if (this.IsParameterBound(nameof(ResponseRequested))) + body.ResponseRequested = ResponseRequested; + + if (this.IsParameterBound(nameof(SeriesMasterId))) + body.SeriesMasterId = SeriesMasterId; + + if (this.IsParameterBound(nameof(Subject))) + body.Subject = Subject; + + if (this.IsParameterBound(nameof(TransactionId))) + body.TransactionId = TransactionId; + + if (this.IsParameterBound(nameof(Uid))) + body.Uid = Uid; + + if (this.IsParameterBound(nameof(WebLink))) + body.WebLink = WebLink; + + if (this.IsParameterBound(nameof(Attendees))) + body.Attendees = Attendees!.ToList(); + + if (this.IsParameterBound(nameof(Body))) + body.Body = Body; + + if (this.IsParameterBound(nameof(End))) + body.End = End; + + if (this.IsParameterBound(nameof(Importance))) + body.Importance = Importance; + + if (this.IsParameterBound(nameof(Location))) + body.Location = Location; + + if (this.IsParameterBound(nameof(Locations))) + body.Locations = Locations!.ToList(); + + if (this.IsParameterBound(nameof(OnlineMeeting))) + body.OnlineMeeting = OnlineMeeting; + + if (this.IsParameterBound(nameof(OnlineMeetingProvider))) + body.OnlineMeetingProvider = OnlineMeetingProvider; + + if (this.IsParameterBound(nameof(Organizer))) + body.Organizer = Organizer; + + if (this.IsParameterBound(nameof(Recurrence))) + body.Recurrence = Recurrence; + + if (this.IsParameterBound(nameof(ResponseStatus))) + body.ResponseStatus = ResponseStatus; + + if (this.IsParameterBound(nameof(Sensitivity))) + body.Sensitivity = Sensitivity; + + if (this.IsParameterBound(nameof(ShowAs))) + body.ShowAs = ShowAs; + + if (this.IsParameterBound(nameof(Start))) + body.Start = Start; + + if (this.IsParameterBound(nameof(Type))) + body.Type = Type; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; + try + { + result = client.Groups[GroupId].Calendar.Events[EventId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Groups[GroupId].Calendar.Events[EventId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarEventExtension.g.cs new file mode 100644 index 00000000000..45b08b1584d --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarEventExtension.g.cs @@ -0,0 +1,80 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}")] + [Cmdlet(VerbsData.Update, "MgGroupCalendarEventExtension", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] + public class UpdateMgGroupCalendarEventExtensionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string ExtensionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(ExtensionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension(); + + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; + try + { + result = client.Groups[GroupId].Calendar.Events[EventId].Extensions[ExtensionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ExtensionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Groups[GroupId].Calendar.Events[EventId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ExtensionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarPermission.g.cs new file mode 100644 index 00000000000..3ad73837a98 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarPermission.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/groups/{group-id}/calendar/calendarPermissions/{calendarPermission-id}")] + [Cmdlet(VerbsData.Update, "MgGroupCalendarPermission", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission))] + public class UpdateMgGroupCalendarPermissionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarPermissionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public bool? IsInsideOrganization { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsRemovable { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarRoleType?[]? AllowedRoles { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress? EmailAddress { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarRoleType? Role { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CalendarPermissionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission(); + + if (this.IsParameterBound(nameof(IsInsideOrganization))) + body.IsInsideOrganization = IsInsideOrganization; + + if (this.IsParameterBound(nameof(IsRemovable))) + body.IsRemovable = IsRemovable; + + if (this.IsParameterBound(nameof(AllowedRoles))) + body.AllowedRoles = AllowedRoles!.ToList(); + + if (this.IsParameterBound(nameof(EmailAddress))) + body.EmailAddress = EmailAddress; + + if (this.IsParameterBound(nameof(Role))) + body.Role = Role; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission? result; + try + { + result = client.Groups[GroupId].Calendar.CalendarPermissions[CalendarPermissionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CalendarPermissionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Groups[GroupId].Calendar.CalendarPermissions[CalendarPermissionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CalendarPermissionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEvent.g.cs new file mode 100644 index 00000000000..f8142a72946 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEvent.g.cs @@ -0,0 +1,332 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/groups/{group-id}/events/{event-id}")] + [Cmdlet(VerbsData.Update, "MgGroupEvent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class UpdateMgGroupEventCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string[]? Categories { get; set; } + + [Parameter(Mandatory = false)] + public string? ChangeKey { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? AllowNewTimeProposals { get; set; } + + [Parameter(Mandatory = false)] + public string? BodyPreview { get; set; } + + [Parameter(Mandatory = false)] + public string[]? CancelledOccurrences { get; set; } + + [Parameter(Mandatory = false)] + public bool? HasAttachments { get; set; } + + [Parameter(Mandatory = false)] + public bool? HideAttendees { get; set; } + + [Parameter(Mandatory = false)] + public string? ICalUId { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsAllDay { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsCancelled { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsDraft { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsOnlineMeeting { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsOrganizer { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsReminderOn { get; set; } + + [Parameter(Mandatory = false)] + public string? OccurrenceId { get; set; } + + [Parameter(Mandatory = false)] + public string? OnlineMeetingUrl { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginalEndTimeZone { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? OriginalStart { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginalStartTimeZone { get; set; } + + [Parameter(Mandatory = false)] + public int? ReminderMinutesBeforeStart { get; set; } + + [Parameter(Mandatory = false)] + public bool? ResponseRequested { get; set; } + + [Parameter(Mandatory = false)] + public string? SeriesMasterId { get; set; } + + [Parameter(Mandatory = false)] + public string? Subject { get; set; } + + [Parameter(Mandatory = false)] + public string? TransactionId { get; set; } + + [Parameter(Mandatory = false)] + public string? Uid { get; set; } + + [Parameter(Mandatory = false)] + public string? WebLink { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Attendee[]? Attendees { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.ItemBody? Body { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? End { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Importance? Importance { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location? Location { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location[]? Locations { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingInfo? OnlineMeeting { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType? OnlineMeetingProvider { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient? Organizer { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.PatternedRecurrence? Recurrence { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.ResponseStatus? ResponseStatus { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Sensitivity? Sensitivity { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.FreeBusyStatus? ShowAs { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? Start { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.EventType? Type { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Event(); + + if (this.IsParameterBound(nameof(Categories))) + body.Categories = Categories!.ToList(); + + if (this.IsParameterBound(nameof(ChangeKey))) + body.ChangeKey = ChangeKey; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(LastModifiedDateTime))) + body.LastModifiedDateTime = LastModifiedDateTime; + + if (this.IsParameterBound(nameof(AllowNewTimeProposals))) + body.AllowNewTimeProposals = AllowNewTimeProposals; + + if (this.IsParameterBound(nameof(BodyPreview))) + body.BodyPreview = BodyPreview; + + if (this.IsParameterBound(nameof(CancelledOccurrences))) + body.CancelledOccurrences = CancelledOccurrences!.ToList(); + + if (this.IsParameterBound(nameof(HasAttachments))) + body.HasAttachments = HasAttachments; + + if (this.IsParameterBound(nameof(HideAttendees))) + body.HideAttendees = HideAttendees; + + if (this.IsParameterBound(nameof(ICalUId))) + body.ICalUId = ICalUId; + + if (this.IsParameterBound(nameof(IsAllDay))) + body.IsAllDay = IsAllDay; + + if (this.IsParameterBound(nameof(IsCancelled))) + body.IsCancelled = IsCancelled; + + if (this.IsParameterBound(nameof(IsDraft))) + body.IsDraft = IsDraft; + + if (this.IsParameterBound(nameof(IsOnlineMeeting))) + body.IsOnlineMeeting = IsOnlineMeeting; + + if (this.IsParameterBound(nameof(IsOrganizer))) + body.IsOrganizer = IsOrganizer; + + if (this.IsParameterBound(nameof(IsReminderOn))) + body.IsReminderOn = IsReminderOn; + + if (this.IsParameterBound(nameof(OccurrenceId))) + body.OccurrenceId = OccurrenceId; + + if (this.IsParameterBound(nameof(OnlineMeetingUrl))) + body.OnlineMeetingUrl = OnlineMeetingUrl; + + if (this.IsParameterBound(nameof(OriginalEndTimeZone))) + body.OriginalEndTimeZone = OriginalEndTimeZone; + + if (this.IsParameterBound(nameof(OriginalStart))) + body.OriginalStart = OriginalStart; + + if (this.IsParameterBound(nameof(OriginalStartTimeZone))) + body.OriginalStartTimeZone = OriginalStartTimeZone; + + if (this.IsParameterBound(nameof(ReminderMinutesBeforeStart))) + body.ReminderMinutesBeforeStart = ReminderMinutesBeforeStart; + + if (this.IsParameterBound(nameof(ResponseRequested))) + body.ResponseRequested = ResponseRequested; + + if (this.IsParameterBound(nameof(SeriesMasterId))) + body.SeriesMasterId = SeriesMasterId; + + if (this.IsParameterBound(nameof(Subject))) + body.Subject = Subject; + + if (this.IsParameterBound(nameof(TransactionId))) + body.TransactionId = TransactionId; + + if (this.IsParameterBound(nameof(Uid))) + body.Uid = Uid; + + if (this.IsParameterBound(nameof(WebLink))) + body.WebLink = WebLink; + + if (this.IsParameterBound(nameof(Attendees))) + body.Attendees = Attendees!.ToList(); + + if (this.IsParameterBound(nameof(Body))) + body.Body = Body; + + if (this.IsParameterBound(nameof(End))) + body.End = End; + + if (this.IsParameterBound(nameof(Importance))) + body.Importance = Importance; + + if (this.IsParameterBound(nameof(Location))) + body.Location = Location; + + if (this.IsParameterBound(nameof(Locations))) + body.Locations = Locations!.ToList(); + + if (this.IsParameterBound(nameof(OnlineMeeting))) + body.OnlineMeeting = OnlineMeeting; + + if (this.IsParameterBound(nameof(OnlineMeetingProvider))) + body.OnlineMeetingProvider = OnlineMeetingProvider; + + if (this.IsParameterBound(nameof(Organizer))) + body.Organizer = Organizer; + + if (this.IsParameterBound(nameof(Recurrence))) + body.Recurrence = Recurrence; + + if (this.IsParameterBound(nameof(ResponseStatus))) + body.ResponseStatus = ResponseStatus; + + if (this.IsParameterBound(nameof(Sensitivity))) + body.Sensitivity = Sensitivity; + + if (this.IsParameterBound(nameof(ShowAs))) + body.ShowAs = ShowAs; + + if (this.IsParameterBound(nameof(Start))) + body.Start = Start; + + if (this.IsParameterBound(nameof(Type))) + body.Type = Type; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; + try + { + result = client.Groups[GroupId].Events[EventId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Groups[GroupId].Events[EventId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEventExtension.g.cs new file mode 100644 index 00000000000..635032eae3b --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEventExtension.g.cs @@ -0,0 +1,80 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/groups/{group-id}/events/{event-id}/extensions/{extension-id}")] + [Cmdlet(VerbsData.Update, "MgGroupEventExtension", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] + public class UpdateMgGroupEventExtensionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string ExtensionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(ExtensionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension(); + + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; + try + { + result = client.Groups[GroupId].Events[EventId].Extensions[ExtensionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ExtensionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Groups[GroupId].Events[EventId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ExtensionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlace.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlace.g.cs new file mode 100644 index 00000000000..1ab2f95b78d --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlace.g.cs @@ -0,0 +1,119 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/places/{place-id}")] + [Cmdlet(VerbsData.Update, "MgPlace", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Place))] + public class UpdateMgPlaceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsWheelChairAccessible { get; set; } + + [Parameter(Mandatory = false)] + public string? Label { get; set; } + + [Parameter(Mandatory = false)] + public string? ParentId { get; set; } + + [Parameter(Mandatory = false)] + public string? Phone { get; set; } + + [Parameter(Mandatory = false)] + public string? PlaceId1 { get; set; } + + [Parameter(Mandatory = false)] + public string[]? Tags { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.PhysicalAddress? Address { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.StringDictionary? CustomProperties { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OutlookGeoCoordinates? GeoCoordinates { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(PlaceId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Place(); + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(IsWheelChairAccessible))) + body.IsWheelChairAccessible = IsWheelChairAccessible; + + if (this.IsParameterBound(nameof(Label))) + body.Label = Label; + + if (this.IsParameterBound(nameof(ParentId))) + body.ParentId = ParentId; + + if (this.IsParameterBound(nameof(Phone))) + body.Phone = Phone; + + if (this.IsParameterBound(nameof(PlaceId1))) + body.PlaceId = PlaceId1; + + if (this.IsParameterBound(nameof(Tags))) + body.Tags = Tags!.ToList(); + + if (this.IsParameterBound(nameof(Address))) + body.Address = Address; + + if (this.IsParameterBound(nameof(CustomProperties))) + body.CustomProperties = CustomProperties; + + if (this.IsParameterBound(nameof(GeoCoordinates))) + body.GeoCoordinates = GeoCoordinates; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Place? result; + try + { + result = client.Places[PlaceId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, PlaceId); + return; + } + + + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs new file mode 100644 index 00000000000..822ffef7b0b --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/places/{place-id}/graph.building/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsData.Update, "MgPlaceAsBuildingCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class UpdateMgPlaceAsBuildingCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarEventId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInMethod? CheckInMethod { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CheckInClaimCalendarEventId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim(); + + if (this.IsParameterBound(nameof(CalendarEventId))) + body.CalendarEventId = CalendarEventId; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(CheckInMethod))) + body.CheckInMethod = CheckInMethod; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphBuilding.CheckIns[CheckInClaimCalendarEventId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Places[PlaceId].GraphBuilding.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs new file mode 100644 index 00000000000..5d9c4949a9c --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMap.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/places/{place-id}/graph.building/map")] + [Cmdlet(VerbsData.Update, "MgPlaceAsBuildingMap", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingMap))] + public class UpdateMgPlaceAsBuildingMapCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Properties { get; set; } + + [Parameter(Mandatory = false)] + public string? PlaceId1 { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(PlaceId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingMap(); + + if (this.IsParameterBound(nameof(Properties))) + body.Properties = Properties; + + if (this.IsParameterBound(nameof(PlaceId1))) + body.PlaceId = PlaceId1; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingMap? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, PlaceId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Places[PlaceId].GraphBuilding.Map.GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, PlaceId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs new file mode 100644 index 00000000000..6261e0b9f8c --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/places/{place-id}/graph.building/map/footprints/{footprintMap-id}")] + [Cmdlet(VerbsData.Update, "MgPlaceAsBuildingMapFootprint", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap))] + public class UpdateMgPlaceAsBuildingMapFootprintCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string FootprintMapId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Properties { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(FootprintMapId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap(); + + if (this.IsParameterBound(nameof(Properties))) + body.Properties = Properties; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Footprints[FootprintMapId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, FootprintMapId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Footprints[FootprintMapId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, FootprintMapId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs new file mode 100644 index 00000000000..5165cd20555 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/places/{place-id}/graph.building/map/levels/{levelMap-id}")] + [Cmdlet(VerbsData.Update, "MgPlaceAsBuildingMapLevel", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap))] + public class UpdateMgPlaceAsBuildingMapLevelCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Properties { get; set; } + + [Parameter(Mandatory = false)] + public string? PlaceId1 { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(LevelMapId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap(); + + if (this.IsParameterBound(nameof(Properties))) + body.Properties = Properties; + + if (this.IsParameterBound(nameof(PlaceId1))) + body.PlaceId = PlaceId1; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, LevelMapId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, LevelMapId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs new file mode 100644 index 00000000000..89ce63957f6 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/places/{place-id}/graph.building/map/levels/{levelMap-id}/fixtures/{fixtureMap-id}")] + [Cmdlet(VerbsData.Update, "MgPlaceAsBuildingMapLevelFixture", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap))] + public class UpdateMgPlaceAsBuildingMapLevelFixtureCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string FixtureMapId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Properties { get; set; } + + [Parameter(Mandatory = false)] + public string? PlaceId1 { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(FixtureMapId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap(); + + if (this.IsParameterBound(nameof(Properties))) + body.Properties = Properties; + + if (this.IsParameterBound(nameof(PlaceId1))) + body.PlaceId = PlaceId1; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Fixtures[FixtureMapId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, FixtureMapId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Fixtures[FixtureMapId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, FixtureMapId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs new file mode 100644 index 00000000000..fddfe786554 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/places/{place-id}/graph.building/map/levels/{levelMap-id}/sections/{sectionMap-id}")] + [Cmdlet(VerbsData.Update, "MgPlaceAsBuildingMapLevelSection", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap))] + public class UpdateMgPlaceAsBuildingMapLevelSectionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string SectionMapId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Properties { get; set; } + + [Parameter(Mandatory = false)] + public string? PlaceId1 { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(SectionMapId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap(); + + if (this.IsParameterBound(nameof(Properties))) + body.Properties = Properties; + + if (this.IsParameterBound(nameof(PlaceId1))) + body.PlaceId = PlaceId1; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Sections[SectionMapId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SectionMapId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Sections[SectionMapId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, SectionMapId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs new file mode 100644 index 00000000000..6f9c43ea217 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/places/{place-id}/graph.building/map/levels/{levelMap-id}/units/{unitMap-id}")] + [Cmdlet(VerbsData.Update, "MgPlaceAsBuildingMapLevelUnit", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap))] + public class UpdateMgPlaceAsBuildingMapLevelUnitCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string LevelMapId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string UnitMapId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? Properties { get; set; } + + [Parameter(Mandatory = false)] + public string? PlaceId1 { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(UnitMapId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap(); + + if (this.IsParameterBound(nameof(Properties))) + body.Properties = Properties; + + if (this.IsParameterBound(nameof(PlaceId1))) + body.PlaceId = PlaceId1; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap? result; + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Units[UnitMapId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, UnitMapId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Units[UnitMapId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, UnitMapId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs new file mode 100644 index 00000000000..df1c6ce8f48 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsDeskCheckIn.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/places/{place-id}/graph.desk/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsData.Update, "MgPlaceAsDeskCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class UpdateMgPlaceAsDeskCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarEventId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInMethod? CheckInMethod { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CheckInClaimCalendarEventId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim(); + + if (this.IsParameterBound(nameof(CalendarEventId))) + body.CalendarEventId = CalendarEventId; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(CheckInMethod))) + body.CheckInMethod = CheckInMethod; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphDesk.CheckIns[CheckInClaimCalendarEventId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Places[PlaceId].GraphDesk.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs new file mode 100644 index 00000000000..4f23c635b5a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsFloorCheckIn.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/places/{place-id}/graph.floor/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsData.Update, "MgPlaceAsFloorCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class UpdateMgPlaceAsFloorCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarEventId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInMethod? CheckInMethod { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CheckInClaimCalendarEventId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim(); + + if (this.IsParameterBound(nameof(CalendarEventId))) + body.CalendarEventId = CalendarEventId; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(CheckInMethod))) + body.CheckInMethod = CheckInMethod; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphFloor.CheckIns[CheckInClaimCalendarEventId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Places[PlaceId].GraphFloor.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs new file mode 100644 index 00000000000..c894a66dcb8 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomCheckIn.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/places/{place-id}/graph.room/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsData.Update, "MgPlaceAsRoomCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class UpdateMgPlaceAsRoomCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarEventId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInMethod? CheckInMethod { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CheckInClaimCalendarEventId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim(); + + if (this.IsParameterBound(nameof(CalendarEventId))) + body.CalendarEventId = CalendarEventId; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(CheckInMethod))) + body.CheckInMethod = CheckInMethod; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphRoom.CheckIns[CheckInClaimCalendarEventId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Places[PlaceId].GraphRoom.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs new file mode 100644 index 00000000000..de1cce28833 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/places/{place-id}/graph.roomList/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsData.Update, "MgPlaceAsRoomListCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class UpdateMgPlaceAsRoomListCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarEventId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInMethod? CheckInMethod { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CheckInClaimCalendarEventId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim(); + + if (this.IsParameterBound(nameof(CalendarEventId))) + body.CalendarEventId = CalendarEventId; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(CheckInMethod))) + body.CheckInMethod = CheckInMethod; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphRoomList.CheckIns[CheckInClaimCalendarEventId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Places[PlaceId].GraphRoomList.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs new file mode 100644 index 00000000000..5becb4a0f7b --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs @@ -0,0 +1,206 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/places/{place-id}/graph.roomList/rooms/{room-id}")] + [Cmdlet(VerbsData.Update, "MgPlaceAsRoomListRoom", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Room))] + public class UpdateMgPlaceAsRoomListRoomCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RoomId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsWheelChairAccessible { get; set; } + + [Parameter(Mandatory = false)] + public string? Label { get; set; } + + [Parameter(Mandatory = false)] + public string? ParentId { get; set; } + + [Parameter(Mandatory = false)] + public string? Phone { get; set; } + + [Parameter(Mandatory = false)] + public string? PlaceId1 { get; set; } + + [Parameter(Mandatory = false)] + public string[]? Tags { get; set; } + + [Parameter(Mandatory = false)] + public string? AudioDeviceName { get; set; } + + [Parameter(Mandatory = false)] + public string? Building { get; set; } + + [Parameter(Mandatory = false)] + public int? Capacity { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayDeviceName { get; set; } + + [Parameter(Mandatory = false)] + public string? EmailAddress { get; set; } + + [Parameter(Mandatory = false)] + public string? FloorLabel { get; set; } + + [Parameter(Mandatory = false)] + public int? FloorNumber { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsTeamsEnabled { get; set; } + + [Parameter(Mandatory = false)] + public string? Nickname { get; set; } + + [Parameter(Mandatory = false)] + public string? VideoDeviceName { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.PhysicalAddress? Address { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.StringDictionary? CustomProperties { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OutlookGeoCoordinates? GeoCoordinates { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.BookingType? BookingType { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceFeatureEnablement? TeamsEnabledState { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(RoomId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Room(); + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(IsWheelChairAccessible))) + body.IsWheelChairAccessible = IsWheelChairAccessible; + + if (this.IsParameterBound(nameof(Label))) + body.Label = Label; + + if (this.IsParameterBound(nameof(ParentId))) + body.ParentId = ParentId; + + if (this.IsParameterBound(nameof(Phone))) + body.Phone = Phone; + + if (this.IsParameterBound(nameof(PlaceId1))) + body.PlaceId = PlaceId1; + + if (this.IsParameterBound(nameof(Tags))) + body.Tags = Tags!.ToList(); + + if (this.IsParameterBound(nameof(AudioDeviceName))) + body.AudioDeviceName = AudioDeviceName; + + if (this.IsParameterBound(nameof(Building))) + body.Building = Building; + + if (this.IsParameterBound(nameof(Capacity))) + body.Capacity = Capacity; + + if (this.IsParameterBound(nameof(DisplayDeviceName))) + body.DisplayDeviceName = DisplayDeviceName; + + if (this.IsParameterBound(nameof(EmailAddress))) + body.EmailAddress = EmailAddress; + + if (this.IsParameterBound(nameof(FloorLabel))) + body.FloorLabel = FloorLabel; + + if (this.IsParameterBound(nameof(FloorNumber))) + body.FloorNumber = FloorNumber; + + if (this.IsParameterBound(nameof(IsTeamsEnabled))) + body.IsTeamsEnabled = IsTeamsEnabled; + + if (this.IsParameterBound(nameof(Nickname))) + body.Nickname = Nickname; + + if (this.IsParameterBound(nameof(VideoDeviceName))) + body.VideoDeviceName = VideoDeviceName; + + if (this.IsParameterBound(nameof(Address))) + body.Address = Address; + + if (this.IsParameterBound(nameof(CustomProperties))) + body.CustomProperties = CustomProperties; + + if (this.IsParameterBound(nameof(GeoCoordinates))) + body.GeoCoordinates = GeoCoordinates; + + if (this.IsParameterBound(nameof(BookingType))) + body.BookingType = BookingType; + + if (this.IsParameterBound(nameof(TeamsEnabledState))) + body.TeamsEnabledState = TeamsEnabledState; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Room? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Rooms[RoomId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, RoomId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Places[PlaceId].GraphRoomList.Rooms[RoomId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, RoomId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs new file mode 100644 index 00000000000..58458d00063 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/places/{place-id}/graph.roomList/rooms/{room-id}/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsData.Update, "MgPlaceAsRoomListRoomCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class UpdateMgPlaceAsRoomListRoomCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string RoomId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CheckInClaimCalendarEventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarEventId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInMethod? CheckInMethod { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CheckInClaimCalendarEventId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim(); + + if (this.IsParameterBound(nameof(CalendarEventId))) + body.CalendarEventId = CalendarEventId; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(CheckInMethod))) + body.CheckInMethod = CheckInMethod; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Rooms[RoomId].CheckIns[CheckInClaimCalendarEventId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Places[PlaceId].GraphRoomList.Rooms[RoomId].CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs new file mode 100644 index 00000000000..2660d67bd2e --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs @@ -0,0 +1,182 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/places/{place-id}/graph.roomList/workspaces/{workspace-id}")] + [Cmdlet(VerbsData.Update, "MgPlaceAsRoomListWorkspace", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace))] + public class UpdateMgPlaceAsRoomListWorkspaceCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string WorkspaceId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? DisplayName { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsWheelChairAccessible { get; set; } + + [Parameter(Mandatory = false)] + public string? Label { get; set; } + + [Parameter(Mandatory = false)] + public string? ParentId { get; set; } + + [Parameter(Mandatory = false)] + public string? Phone { get; set; } + + [Parameter(Mandatory = false)] + public string? PlaceId1 { get; set; } + + [Parameter(Mandatory = false)] + public string[]? Tags { get; set; } + + [Parameter(Mandatory = false)] + public string? Building { get; set; } + + [Parameter(Mandatory = false)] + public int? Capacity { get; set; } + + [Parameter(Mandatory = false)] + public string? DisplayDeviceName { get; set; } + + [Parameter(Mandatory = false)] + public string? EmailAddress { get; set; } + + [Parameter(Mandatory = false)] + public string? FloorLabel { get; set; } + + [Parameter(Mandatory = false)] + public int? FloorNumber { get; set; } + + [Parameter(Mandatory = false)] + public string? Nickname { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.PhysicalAddress? Address { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.StringDictionary? CustomProperties { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OutlookGeoCoordinates? GeoCoordinates { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceMode? Mode { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(WorkspaceId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace(); + + if (this.IsParameterBound(nameof(DisplayName))) + body.DisplayName = DisplayName; + + if (this.IsParameterBound(nameof(IsWheelChairAccessible))) + body.IsWheelChairAccessible = IsWheelChairAccessible; + + if (this.IsParameterBound(nameof(Label))) + body.Label = Label; + + if (this.IsParameterBound(nameof(ParentId))) + body.ParentId = ParentId; + + if (this.IsParameterBound(nameof(Phone))) + body.Phone = Phone; + + if (this.IsParameterBound(nameof(PlaceId1))) + body.PlaceId = PlaceId1; + + if (this.IsParameterBound(nameof(Tags))) + body.Tags = Tags!.ToList(); + + if (this.IsParameterBound(nameof(Building))) + body.Building = Building; + + if (this.IsParameterBound(nameof(Capacity))) + body.Capacity = Capacity; + + if (this.IsParameterBound(nameof(DisplayDeviceName))) + body.DisplayDeviceName = DisplayDeviceName; + + if (this.IsParameterBound(nameof(EmailAddress))) + body.EmailAddress = EmailAddress; + + if (this.IsParameterBound(nameof(FloorLabel))) + body.FloorLabel = FloorLabel; + + if (this.IsParameterBound(nameof(FloorNumber))) + body.FloorNumber = FloorNumber; + + if (this.IsParameterBound(nameof(Nickname))) + body.Nickname = Nickname; + + if (this.IsParameterBound(nameof(Address))) + body.Address = Address; + + if (this.IsParameterBound(nameof(CustomProperties))) + body.CustomProperties = CustomProperties; + + if (this.IsParameterBound(nameof(GeoCoordinates))) + body.GeoCoordinates = GeoCoordinates; + + if (this.IsParameterBound(nameof(Mode))) + body.Mode = Mode; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, WorkspaceId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, WorkspaceId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs new file mode 100644 index 00000000000..f54f700fe41 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/places/{place-id}/graph.roomList/workspaces/{workspace-id}/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsData.Update, "MgPlaceAsRoomListWorkspaceCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class UpdateMgPlaceAsRoomListWorkspaceCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string WorkspaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CheckInClaimCalendarEventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarEventId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInMethod? CheckInMethod { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CheckInClaimCalendarEventId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim(); + + if (this.IsParameterBound(nameof(CalendarEventId))) + body.CalendarEventId = CalendarEventId; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(CheckInMethod))) + body.CheckInMethod = CheckInMethod; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].CheckIns[CheckInClaimCalendarEventId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs new file mode 100644 index 00000000000..2b73a47de80 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsSectionCheckIn.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/places/{place-id}/graph.section/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsData.Update, "MgPlaceAsSectionCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class UpdateMgPlaceAsSectionCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarEventId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInMethod? CheckInMethod { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CheckInClaimCalendarEventId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim(); + + if (this.IsParameterBound(nameof(CalendarEventId))) + body.CalendarEventId = CalendarEventId; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(CheckInMethod))) + body.CheckInMethod = CheckInMethod; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphSection.CheckIns[CheckInClaimCalendarEventId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Places[PlaceId].GraphSection.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs new file mode 100644 index 00000000000..d2a21e087ef --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/places/{place-id}/graph.workspace/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsData.Update, "MgPlaceAsWorkspaceCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class UpdateMgPlaceAsWorkspaceCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarEventId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInMethod? CheckInMethod { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CheckInClaimCalendarEventId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim(); + + if (this.IsParameterBound(nameof(CalendarEventId))) + body.CalendarEventId = CalendarEventId; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(CheckInMethod))) + body.CheckInMethod = CheckInMethod; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].GraphWorkspace.CheckIns[CheckInClaimCalendarEventId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Places[PlaceId].GraphWorkspace.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceCheckIn.g.cs new file mode 100644 index 00000000000..ced8509caa9 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceCheckIn.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/places/{place-id}/checkIns/{checkInClaim-calendarEventId}")] + [Cmdlet(VerbsData.Update, "MgPlaceCheckIn", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim))] + public class UpdateMgPlaceCheckInCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string PlaceId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CheckInClaimCalendarEventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarEventId { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInMethod? CheckInMethod { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CheckInClaimCalendarEventId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim(); + + if (this.IsParameterBound(nameof(CalendarEventId))) + body.CalendarEventId = CalendarEventId; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(CheckInMethod))) + body.CheckInMethod = CheckInMethod; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; + try + { + result = client.Places[PlaceId].CheckIns[CheckInClaimCalendarEventId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Places[PlaceId].CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendar.g.cs new file mode 100644 index 00000000000..7dab606f196 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendar.g.cs @@ -0,0 +1,170 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/users/{user-id}/calendars/{calendar-id}")] + [Cmdlet(VerbsData.Update, "MgUserCalendar", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] + public class UpdateMgUserCalendarCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarGroupId { get; set; } + + [Parameter(Mandatory = false)] + public bool? CanEdit { get; set; } + + [Parameter(Mandatory = false)] + public bool? CanShare { get; set; } + + [Parameter(Mandatory = false)] + public bool? CanViewPrivateItems { get; set; } + + [Parameter(Mandatory = false)] + public string? ChangeKey { get; set; } + + [Parameter(Mandatory = false)] + public string? HexColor { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsDefaultCalendar { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsRemovable { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsShared { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsSharedWithMe { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsTallyingResponses { get; set; } + + [Parameter(Mandatory = false)] + public string? Name { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType?[]? AllowedOnlineMeetingProviders { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarColor? Color { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType? DefaultOnlineMeetingProvider { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress? Owner { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CalendarId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar(); + + if (this.IsParameterBound(nameof(CalendarGroupId))) + body.CalendarGroupId = CalendarGroupId; + + if (this.IsParameterBound(nameof(CanEdit))) + body.CanEdit = CanEdit; + + if (this.IsParameterBound(nameof(CanShare))) + body.CanShare = CanShare; + + if (this.IsParameterBound(nameof(CanViewPrivateItems))) + body.CanViewPrivateItems = CanViewPrivateItems; + + if (this.IsParameterBound(nameof(ChangeKey))) + body.ChangeKey = ChangeKey; + + if (this.IsParameterBound(nameof(HexColor))) + body.HexColor = HexColor; + + if (this.IsParameterBound(nameof(IsDefaultCalendar))) + body.IsDefaultCalendar = IsDefaultCalendar; + + if (this.IsParameterBound(nameof(IsRemovable))) + body.IsRemovable = IsRemovable; + + if (this.IsParameterBound(nameof(IsShared))) + body.IsShared = IsShared; + + if (this.IsParameterBound(nameof(IsSharedWithMe))) + body.IsSharedWithMe = IsSharedWithMe; + + if (this.IsParameterBound(nameof(IsTallyingResponses))) + body.IsTallyingResponses = IsTallyingResponses; + + if (this.IsParameterBound(nameof(Name))) + body.Name = Name; + + if (this.IsParameterBound(nameof(AllowedOnlineMeetingProviders))) + body.AllowedOnlineMeetingProviders = AllowedOnlineMeetingProviders!.ToList(); + + if (this.IsParameterBound(nameof(Color))) + body.Color = Color; + + if (this.IsParameterBound(nameof(DefaultOnlineMeetingProvider))) + body.DefaultOnlineMeetingProvider = DefaultOnlineMeetingProvider; + + if (this.IsParameterBound(nameof(Owner))) + body.Owner = Owner; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar? result; + try + { + result = client.Users[UserId].Calendars[CalendarId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CalendarId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Users[UserId].Calendars[CalendarId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CalendarId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroup.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroup.g.cs new file mode 100644 index 00000000000..95ee561f37a --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroup.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/users/{user-id}/calendarGroups/{calendarGroup-id}")] + [Cmdlet(VerbsData.Update, "MgUserCalendarGroup", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup))] + public class UpdateMgUserCalendarGroupCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? ChangeKey { get; set; } + + [Parameter(Mandatory = false)] + public global::System.Guid? ClassId { get; set; } + + [Parameter(Mandatory = false)] + public string? Name { get; set; } + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CalendarGroupId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup(); + + if (this.IsParameterBound(nameof(ChangeKey))) + body.ChangeKey = ChangeKey; + + if (this.IsParameterBound(nameof(ClassId))) + body.ClassId = ClassId; + + if (this.IsParameterBound(nameof(Name))) + body.Name = Name; + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CalendarGroupId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CalendarGroupId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendar.g.cs new file mode 100644 index 00000000000..500eb44c6f4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendar.g.cs @@ -0,0 +1,172 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}")] + [Cmdlet(VerbsData.Update, "MgUserCalendarGroupCalendar", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] + public class UpdateMgUserCalendarGroupCalendarCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string? CalendarGroupId1 { get; set; } + + [Parameter(Mandatory = false)] + public bool? CanEdit { get; set; } + + [Parameter(Mandatory = false)] + public bool? CanShare { get; set; } + + [Parameter(Mandatory = false)] + public bool? CanViewPrivateItems { get; set; } + + [Parameter(Mandatory = false)] + public string? ChangeKey { get; set; } + + [Parameter(Mandatory = false)] + public string? HexColor { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsDefaultCalendar { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsRemovable { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsShared { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsSharedWithMe { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsTallyingResponses { get; set; } + + [Parameter(Mandatory = false)] + public string? Name { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType?[]? AllowedOnlineMeetingProviders { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarColor? Color { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType? DefaultOnlineMeetingProvider { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress? Owner { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CalendarId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar(); + + if (this.IsParameterBound(nameof(CalendarGroupId1))) + body.CalendarGroupId = CalendarGroupId1; + + if (this.IsParameterBound(nameof(CanEdit))) + body.CanEdit = CanEdit; + + if (this.IsParameterBound(nameof(CanShare))) + body.CanShare = CanShare; + + if (this.IsParameterBound(nameof(CanViewPrivateItems))) + body.CanViewPrivateItems = CanViewPrivateItems; + + if (this.IsParameterBound(nameof(ChangeKey))) + body.ChangeKey = ChangeKey; + + if (this.IsParameterBound(nameof(HexColor))) + body.HexColor = HexColor; + + if (this.IsParameterBound(nameof(IsDefaultCalendar))) + body.IsDefaultCalendar = IsDefaultCalendar; + + if (this.IsParameterBound(nameof(IsRemovable))) + body.IsRemovable = IsRemovable; + + if (this.IsParameterBound(nameof(IsShared))) + body.IsShared = IsShared; + + if (this.IsParameterBound(nameof(IsSharedWithMe))) + body.IsSharedWithMe = IsSharedWithMe; + + if (this.IsParameterBound(nameof(IsTallyingResponses))) + body.IsTallyingResponses = IsTallyingResponses; + + if (this.IsParameterBound(nameof(Name))) + body.Name = Name; + + if (this.IsParameterBound(nameof(AllowedOnlineMeetingProviders))) + body.AllowedOnlineMeetingProviders = AllowedOnlineMeetingProviders!.ToList(); + + if (this.IsParameterBound(nameof(Color))) + body.Color = Color; + + if (this.IsParameterBound(nameof(DefaultOnlineMeetingProvider))) + body.DefaultOnlineMeetingProvider = DefaultOnlineMeetingProvider; + + if (this.IsParameterBound(nameof(Owner))) + body.Owner = Owner; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CalendarId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CalendarId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarEvent.g.cs new file mode 100644 index 00000000000..56f5a67ff8c --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarEvent.g.cs @@ -0,0 +1,336 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}")] + [Cmdlet(VerbsData.Update, "MgUserCalendarGroupCalendarEvent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class UpdateMgUserCalendarGroupCalendarEventCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string[]? Categories { get; set; } + + [Parameter(Mandatory = false)] + public string? ChangeKey { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? AllowNewTimeProposals { get; set; } + + [Parameter(Mandatory = false)] + public string? BodyPreview { get; set; } + + [Parameter(Mandatory = false)] + public string[]? CancelledOccurrences { get; set; } + + [Parameter(Mandatory = false)] + public bool? HasAttachments { get; set; } + + [Parameter(Mandatory = false)] + public bool? HideAttendees { get; set; } + + [Parameter(Mandatory = false)] + public string? ICalUId { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsAllDay { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsCancelled { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsDraft { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsOnlineMeeting { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsOrganizer { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsReminderOn { get; set; } + + [Parameter(Mandatory = false)] + public string? OccurrenceId { get; set; } + + [Parameter(Mandatory = false)] + public string? OnlineMeetingUrl { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginalEndTimeZone { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? OriginalStart { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginalStartTimeZone { get; set; } + + [Parameter(Mandatory = false)] + public int? ReminderMinutesBeforeStart { get; set; } + + [Parameter(Mandatory = false)] + public bool? ResponseRequested { get; set; } + + [Parameter(Mandatory = false)] + public string? SeriesMasterId { get; set; } + + [Parameter(Mandatory = false)] + public string? Subject { get; set; } + + [Parameter(Mandatory = false)] + public string? TransactionId { get; set; } + + [Parameter(Mandatory = false)] + public string? Uid { get; set; } + + [Parameter(Mandatory = false)] + public string? WebLink { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Attendee[]? Attendees { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.ItemBody? Body { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? End { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Importance? Importance { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location? Location { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location[]? Locations { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingInfo? OnlineMeeting { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType? OnlineMeetingProvider { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient? Organizer { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.PatternedRecurrence? Recurrence { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.ResponseStatus? ResponseStatus { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Sensitivity? Sensitivity { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.FreeBusyStatus? ShowAs { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? Start { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.EventType? Type { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Event(); + + if (this.IsParameterBound(nameof(Categories))) + body.Categories = Categories!.ToList(); + + if (this.IsParameterBound(nameof(ChangeKey))) + body.ChangeKey = ChangeKey; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(LastModifiedDateTime))) + body.LastModifiedDateTime = LastModifiedDateTime; + + if (this.IsParameterBound(nameof(AllowNewTimeProposals))) + body.AllowNewTimeProposals = AllowNewTimeProposals; + + if (this.IsParameterBound(nameof(BodyPreview))) + body.BodyPreview = BodyPreview; + + if (this.IsParameterBound(nameof(CancelledOccurrences))) + body.CancelledOccurrences = CancelledOccurrences!.ToList(); + + if (this.IsParameterBound(nameof(HasAttachments))) + body.HasAttachments = HasAttachments; + + if (this.IsParameterBound(nameof(HideAttendees))) + body.HideAttendees = HideAttendees; + + if (this.IsParameterBound(nameof(ICalUId))) + body.ICalUId = ICalUId; + + if (this.IsParameterBound(nameof(IsAllDay))) + body.IsAllDay = IsAllDay; + + if (this.IsParameterBound(nameof(IsCancelled))) + body.IsCancelled = IsCancelled; + + if (this.IsParameterBound(nameof(IsDraft))) + body.IsDraft = IsDraft; + + if (this.IsParameterBound(nameof(IsOnlineMeeting))) + body.IsOnlineMeeting = IsOnlineMeeting; + + if (this.IsParameterBound(nameof(IsOrganizer))) + body.IsOrganizer = IsOrganizer; + + if (this.IsParameterBound(nameof(IsReminderOn))) + body.IsReminderOn = IsReminderOn; + + if (this.IsParameterBound(nameof(OccurrenceId))) + body.OccurrenceId = OccurrenceId; + + if (this.IsParameterBound(nameof(OnlineMeetingUrl))) + body.OnlineMeetingUrl = OnlineMeetingUrl; + + if (this.IsParameterBound(nameof(OriginalEndTimeZone))) + body.OriginalEndTimeZone = OriginalEndTimeZone; + + if (this.IsParameterBound(nameof(OriginalStart))) + body.OriginalStart = OriginalStart; + + if (this.IsParameterBound(nameof(OriginalStartTimeZone))) + body.OriginalStartTimeZone = OriginalStartTimeZone; + + if (this.IsParameterBound(nameof(ReminderMinutesBeforeStart))) + body.ReminderMinutesBeforeStart = ReminderMinutesBeforeStart; + + if (this.IsParameterBound(nameof(ResponseRequested))) + body.ResponseRequested = ResponseRequested; + + if (this.IsParameterBound(nameof(SeriesMasterId))) + body.SeriesMasterId = SeriesMasterId; + + if (this.IsParameterBound(nameof(Subject))) + body.Subject = Subject; + + if (this.IsParameterBound(nameof(TransactionId))) + body.TransactionId = TransactionId; + + if (this.IsParameterBound(nameof(Uid))) + body.Uid = Uid; + + if (this.IsParameterBound(nameof(WebLink))) + body.WebLink = WebLink; + + if (this.IsParameterBound(nameof(Attendees))) + body.Attendees = Attendees!.ToList(); + + if (this.IsParameterBound(nameof(Body))) + body.Body = Body; + + if (this.IsParameterBound(nameof(End))) + body.End = End; + + if (this.IsParameterBound(nameof(Importance))) + body.Importance = Importance; + + if (this.IsParameterBound(nameof(Location))) + body.Location = Location; + + if (this.IsParameterBound(nameof(Locations))) + body.Locations = Locations!.ToList(); + + if (this.IsParameterBound(nameof(OnlineMeeting))) + body.OnlineMeeting = OnlineMeeting; + + if (this.IsParameterBound(nameof(OnlineMeetingProvider))) + body.OnlineMeetingProvider = OnlineMeetingProvider; + + if (this.IsParameterBound(nameof(Organizer))) + body.Organizer = Organizer; + + if (this.IsParameterBound(nameof(Recurrence))) + body.Recurrence = Recurrence; + + if (this.IsParameterBound(nameof(ResponseStatus))) + body.ResponseStatus = ResponseStatus; + + if (this.IsParameterBound(nameof(Sensitivity))) + body.Sensitivity = Sensitivity; + + if (this.IsParameterBound(nameof(ShowAs))) + body.ShowAs = ShowAs; + + if (this.IsParameterBound(nameof(Start))) + body.Start = Start; + + if (this.IsParameterBound(nameof(Type))) + body.Type = Type; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarEventExtension.g.cs new file mode 100644 index 00000000000..67f132a4f95 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarEventExtension.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}")] + [Cmdlet(VerbsData.Update, "MgUserCalendarGroupCalendarEventExtension", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] + public class UpdateMgUserCalendarGroupCalendarEventExtensionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 4)] + public string ExtensionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(ExtensionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension(); + + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Extensions[ExtensionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ExtensionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ExtensionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarPermission.g.cs new file mode 100644 index 00000000000..d17e08e225d --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarPermission.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}")] + [Cmdlet(VerbsData.Update, "MgUserCalendarGroupCalendarPermission", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission))] + public class UpdateMgUserCalendarGroupCalendarPermissionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarGroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3)] + public string CalendarPermissionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public bool? IsInsideOrganization { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsRemovable { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarRoleType?[]? AllowedRoles { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress? EmailAddress { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarRoleType? Role { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CalendarPermissionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission(); + + if (this.IsParameterBound(nameof(IsInsideOrganization))) + body.IsInsideOrganization = IsInsideOrganization; + + if (this.IsParameterBound(nameof(IsRemovable))) + body.IsRemovable = IsRemovable; + + if (this.IsParameterBound(nameof(AllowedRoles))) + body.AllowedRoles = AllowedRoles!.ToList(); + + if (this.IsParameterBound(nameof(EmailAddress))) + body.EmailAddress = EmailAddress; + + if (this.IsParameterBound(nameof(Role))) + body.Role = Role; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission? result; + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarPermissions[CalendarPermissionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CalendarPermissionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarPermissions[CalendarPermissionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CalendarPermissionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarPermission.g.cs new file mode 100644 index 00000000000..5c3e9567306 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarPermission.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.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/users/{user-id}/calendar/calendarPermissions/{calendarPermission-id}")] + [Cmdlet(VerbsData.Update, "MgUserCalendarPermission", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission))] + public class UpdateMgUserCalendarPermissionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string CalendarPermissionId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public bool? IsInsideOrganization { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsRemovable { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarRoleType?[]? AllowedRoles { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress? EmailAddress { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarRoleType? Role { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(CalendarPermissionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission(); + + if (this.IsParameterBound(nameof(IsInsideOrganization))) + body.IsInsideOrganization = IsInsideOrganization; + + if (this.IsParameterBound(nameof(IsRemovable))) + body.IsRemovable = IsRemovable; + + if (this.IsParameterBound(nameof(AllowedRoles))) + body.AllowedRoles = AllowedRoles!.ToList(); + + if (this.IsParameterBound(nameof(EmailAddress))) + body.EmailAddress = EmailAddress; + + if (this.IsParameterBound(nameof(Role))) + body.Role = Role; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission? result; + try + { + result = client.Users[UserId].Calendar.CalendarPermissions[CalendarPermissionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CalendarPermissionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Users[UserId].Calendar.CalendarPermissions[CalendarPermissionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, CalendarPermissionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEvent.g.cs new file mode 100644 index 00000000000..0b1afec8df4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEvent.g.cs @@ -0,0 +1,332 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/users/{user-id}/events/{event-id}")] + [Cmdlet(VerbsData.Update, "MgUserEvent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] + public class UpdateMgUserEventCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + + [Parameter(Mandatory = false)] + public string[]? Categories { get; set; } + + [Parameter(Mandatory = false)] + public string? ChangeKey { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? CreatedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } + + [Parameter(Mandatory = false)] + public bool? AllowNewTimeProposals { get; set; } + + [Parameter(Mandatory = false)] + public string? BodyPreview { get; set; } + + [Parameter(Mandatory = false)] + public string[]? CancelledOccurrences { get; set; } + + [Parameter(Mandatory = false)] + public bool? HasAttachments { get; set; } + + [Parameter(Mandatory = false)] + public bool? HideAttendees { get; set; } + + [Parameter(Mandatory = false)] + public string? ICalUId { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsAllDay { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsCancelled { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsDraft { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsOnlineMeeting { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsOrganizer { get; set; } + + [Parameter(Mandatory = false)] + public bool? IsReminderOn { get; set; } + + [Parameter(Mandatory = false)] + public string? OccurrenceId { get; set; } + + [Parameter(Mandatory = false)] + public string? OnlineMeetingUrl { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginalEndTimeZone { get; set; } + + [Parameter(Mandatory = false)] + public global::System.DateTimeOffset? OriginalStart { get; set; } + + [Parameter(Mandatory = false)] + public string? OriginalStartTimeZone { get; set; } + + [Parameter(Mandatory = false)] + public int? ReminderMinutesBeforeStart { get; set; } + + [Parameter(Mandatory = false)] + public bool? ResponseRequested { get; set; } + + [Parameter(Mandatory = false)] + public string? SeriesMasterId { get; set; } + + [Parameter(Mandatory = false)] + public string? Subject { get; set; } + + [Parameter(Mandatory = false)] + public string? TransactionId { get; set; } + + [Parameter(Mandatory = false)] + public string? Uid { get; set; } + + [Parameter(Mandatory = false)] + public string? WebLink { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Attendee[]? Attendees { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.ItemBody? Body { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? End { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Importance? Importance { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location? Location { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location[]? Locations { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingInfo? OnlineMeeting { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType? OnlineMeetingProvider { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient? Organizer { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.PatternedRecurrence? Recurrence { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.ResponseStatus? ResponseStatus { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.Sensitivity? Sensitivity { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.FreeBusyStatus? ShowAs { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? Start { get; set; } + + [Parameter(Mandatory = false)] + public Microsoft.Graph.PowerShell.Calendar.Client.Models.EventType? Type { get; set; } + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(EventId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Event(); + + if (this.IsParameterBound(nameof(Categories))) + body.Categories = Categories!.ToList(); + + if (this.IsParameterBound(nameof(ChangeKey))) + body.ChangeKey = ChangeKey; + + if (this.IsParameterBound(nameof(CreatedDateTime))) + body.CreatedDateTime = CreatedDateTime; + + if (this.IsParameterBound(nameof(LastModifiedDateTime))) + body.LastModifiedDateTime = LastModifiedDateTime; + + if (this.IsParameterBound(nameof(AllowNewTimeProposals))) + body.AllowNewTimeProposals = AllowNewTimeProposals; + + if (this.IsParameterBound(nameof(BodyPreview))) + body.BodyPreview = BodyPreview; + + if (this.IsParameterBound(nameof(CancelledOccurrences))) + body.CancelledOccurrences = CancelledOccurrences!.ToList(); + + if (this.IsParameterBound(nameof(HasAttachments))) + body.HasAttachments = HasAttachments; + + if (this.IsParameterBound(nameof(HideAttendees))) + body.HideAttendees = HideAttendees; + + if (this.IsParameterBound(nameof(ICalUId))) + body.ICalUId = ICalUId; + + if (this.IsParameterBound(nameof(IsAllDay))) + body.IsAllDay = IsAllDay; + + if (this.IsParameterBound(nameof(IsCancelled))) + body.IsCancelled = IsCancelled; + + if (this.IsParameterBound(nameof(IsDraft))) + body.IsDraft = IsDraft; + + if (this.IsParameterBound(nameof(IsOnlineMeeting))) + body.IsOnlineMeeting = IsOnlineMeeting; + + if (this.IsParameterBound(nameof(IsOrganizer))) + body.IsOrganizer = IsOrganizer; + + if (this.IsParameterBound(nameof(IsReminderOn))) + body.IsReminderOn = IsReminderOn; + + if (this.IsParameterBound(nameof(OccurrenceId))) + body.OccurrenceId = OccurrenceId; + + if (this.IsParameterBound(nameof(OnlineMeetingUrl))) + body.OnlineMeetingUrl = OnlineMeetingUrl; + + if (this.IsParameterBound(nameof(OriginalEndTimeZone))) + body.OriginalEndTimeZone = OriginalEndTimeZone; + + if (this.IsParameterBound(nameof(OriginalStart))) + body.OriginalStart = OriginalStart; + + if (this.IsParameterBound(nameof(OriginalStartTimeZone))) + body.OriginalStartTimeZone = OriginalStartTimeZone; + + if (this.IsParameterBound(nameof(ReminderMinutesBeforeStart))) + body.ReminderMinutesBeforeStart = ReminderMinutesBeforeStart; + + if (this.IsParameterBound(nameof(ResponseRequested))) + body.ResponseRequested = ResponseRequested; + + if (this.IsParameterBound(nameof(SeriesMasterId))) + body.SeriesMasterId = SeriesMasterId; + + if (this.IsParameterBound(nameof(Subject))) + body.Subject = Subject; + + if (this.IsParameterBound(nameof(TransactionId))) + body.TransactionId = TransactionId; + + if (this.IsParameterBound(nameof(Uid))) + body.Uid = Uid; + + if (this.IsParameterBound(nameof(WebLink))) + body.WebLink = WebLink; + + if (this.IsParameterBound(nameof(Attendees))) + body.Attendees = Attendees!.ToList(); + + if (this.IsParameterBound(nameof(Body))) + body.Body = Body; + + if (this.IsParameterBound(nameof(End))) + body.End = End; + + if (this.IsParameterBound(nameof(Importance))) + body.Importance = Importance; + + if (this.IsParameterBound(nameof(Location))) + body.Location = Location; + + if (this.IsParameterBound(nameof(Locations))) + body.Locations = Locations!.ToList(); + + if (this.IsParameterBound(nameof(OnlineMeeting))) + body.OnlineMeeting = OnlineMeeting; + + if (this.IsParameterBound(nameof(OnlineMeetingProvider))) + body.OnlineMeetingProvider = OnlineMeetingProvider; + + if (this.IsParameterBound(nameof(Organizer))) + body.Organizer = Organizer; + + if (this.IsParameterBound(nameof(Recurrence))) + body.Recurrence = Recurrence; + + if (this.IsParameterBound(nameof(ResponseStatus))) + body.ResponseStatus = ResponseStatus; + + if (this.IsParameterBound(nameof(Sensitivity))) + body.Sensitivity = Sensitivity; + + if (this.IsParameterBound(nameof(ShowAs))) + body.ShowAs = ShowAs; + + if (this.IsParameterBound(nameof(Start))) + body.Start = Start; + + if (this.IsParameterBound(nameof(Type))) + body.Type = Type; + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; + try + { + result = client.Users[UserId].Events[EventId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Users[UserId].Events[EventId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, EventId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEventExtension.g.cs new file mode 100644 index 00000000000..a9d3e700ef4 --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEventExtension.g.cs @@ -0,0 +1,80 @@ +#nullable enable + +using System; +using System.Linq; +using System.Management.Automation; +using System.Net.Http; +using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; +using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; + +namespace Microsoft.Graph.PowerShell.Calendar +{ + [GraphRoute("PATCH", "/users/{user-id}/events/{event-id}/extensions/{extension-id}")] + [Cmdlet(VerbsData.Update, "MgUserEventExtension", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] + public class UpdateMgUserEventExtensionCommand : GraphClientCmdlet + { + [Parameter(Mandatory = true, Position = 0)] + public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1)] + public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2)] + public string ExtensionId { get; set; } = string.Empty; + + + + + + + + + protected override void ProcessRecord() + { + if (!ShouldProcess(ExtensionId, "Update")) + return; + + var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension(); + + + + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; + try + { + result = client.Users[UserId].Events[EventId].Extensions[ExtensionId].PatchAsync(body, requestConfiguration => + { + + AddRequestHeaders(requestConfiguration.Headers); + }).GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ExtensionId); + return; + } + + + if (result is null) + { + WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); + try + { + result = client.Users[UserId].Events[EventId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); + } + catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) + { + ThrowGraphRequestFailed(ex, ExtensionId); + return; + } + } + if (result is not null) + WriteObject(result); + } + } +} diff --git a/src/Calendar/wrapper/beta/Cmdlets/kiota-lock.json b/src/Calendar/wrapper/beta/Cmdlets/kiota-lock.json new file mode 100644 index 00000000000..c8627d9e1cc --- /dev/null +++ b/src/Calendar/wrapper/beta/Cmdlets/kiota-lock.json @@ -0,0 +1,3 @@ +{ + "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/beta/Calendar.yml" +} \ No newline at end of file diff --git a/src/Calendar/wrapper/beta/Microsoft.Graph.Wrapper.Calendar.csproj b/src/Calendar/wrapper/beta/Microsoft.Graph.Wrapper.Calendar.csproj new file mode 100644 index 00000000000..3bd88b28b46 --- /dev/null +++ b/src/Calendar/wrapper/beta/Microsoft.Graph.Wrapper.Calendar.csproj @@ -0,0 +1,66 @@ + + + + + + netstandard2.0 + latest + enable + enable + false + Microsoft.Graph.Wrapper.Calendar + + true + + true + $(NoWarn);CS1591 + + + + + + + + + + + + + + + + + + + + + + + + + + From 7db0dd6607ad4f9e5f38119a56e65dc3826769b2 Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Wed, 21 Oct 2026 18:06:54 -0700 Subject: [PATCH 06/24] Preserve Calendar directives through legacy operation ID conversion Evaluate directive one against the actual same-profile legacy specs and record all 136 v1.0 and 137 beta surviving old/new operation identities. Add 63 missing exact curated suppressions, including renamed CRUD IDs and qualified OData call successors, without broadening the selector. Pin complete source coverage and matching operation-kind path translation in module tests. Central strict Legacy-source validation and both full profile regenerations remain pending; retain prior build evidence rather than claiming completion. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- src/Calendar/Calendar.md | 10 +- .../wrapper/Calendar_cmdletConfigurations.cs | 129 + .../Calendar_directiveMigrationMap.json | 2157 ++++++++++++++++- .../CalendarDirectiveMigrationTests.cs | 87 +- 4 files changed, 2283 insertions(+), 100 deletions(-) diff --git a/src/Calendar/Calendar.md b/src/Calendar/Calendar.md index 1efde6a4c5b..70301a7984a 100644 --- a/src/Calendar/Calendar.md +++ b/src/Calendar/Calendar.md @@ -18,10 +18,12 @@ require: ``` yaml directive: # Remove paths that are not valid. -# Wrapper migration: the adjacent Calendar_directiveMigrationMap.json records all -# 26 exact operation-ID matches per compatible profile, plus absent legacy CRUD -# selector branches. Calendar_cmdletConfigurations.cs covers both profiles without -# relying on v1.0-only derived data. Existing curated coverage is retained. +# Wrapper migration: evaluate this selector against the actual legacy profile. +# All 136 v1.0 and 137 beta matches survive in the compatible specs, including +# renamed CRUD IDs and qualified-to-bare action/function paths. The adjacent ledger +# records exact old/new method/path/ID evidence; 26 literal compatible-ID matches +# alone are incomplete. Exact module entries cover both profiles without relying +# on v1.0-only derived data. No surviving legacy match is classified as absent. # The ledger separately reconciles six existing derived collision suppressions # across both profiles; these are not counted as literal legacy-regex matches. - remove-path-by-operation: (user|group)_(Update|Delete)Calendar$|(user|group)..*_(Get|Create|Update|Delete)CalendarView$|(user|group).(calendar).calendarView.*$|user.calendar_(Get|Update|Delete)Event$|(user|group).(calendar).event.*$|(user|group)_.*CalendarView$|(user|group).calendarView.*$|user.calendarGroup_(Get|Update|Delete)Calendar$|user.calendarGroup.calendar.*$|(group|user).event_(Create|Update|Create)Calendar$|(user|group).event.calendar.*$|placeAsRoomList.room_(Get|Update|Delete)GraphBPrePlaceId$|placeAsRoomList.workspace_(Get|Update|Delete)GraphBPrePlaceId$ diff --git a/src/Calendar/wrapper/Calendar_cmdletConfigurations.cs b/src/Calendar/wrapper/Calendar_cmdletConfigurations.cs index 5f795586972..eb0db91c753 100644 --- a/src/Calendar/wrapper/Calendar_cmdletConfigurations.cs +++ b/src/Calendar/wrapper/Calendar_cmdletConfigurations.cs @@ -93,5 +93,134 @@ public static partial class CmdletConfigurator Reason: "existing collision suppression: no published named-calendar event count route"), new(OverrideKind.SuppressOperation, HttpMethod.Post, "/users/{}/calendars/{}/permanentdelete", Match: PathMatch.Exact, Value: null, Reason: "existing collision suppression: permanentDelete ships from the default calendar"), + + // Directive 1 is evaluated against the actual legacy specs. Renamed operation IDs + // and qualified OData calls still identify these surviving exact HTTP operations. + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/groups/{}/calendar/events/{}/attachments", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy group.calendar.event_ListAttachment"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/groups/{}/calendar/events/{}/attachments", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy group.calendar.event_CreateAttachment"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/groups/{}/calendar/events/{}/attachments/{}", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy group.calendar.event_GetAttachment"), + new(OverrideKind.SuppressOperation, HttpMethod.Delete, "/groups/{}/calendar/events/{}/attachments/{}", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy group.calendar.event_DeleteAttachment"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/groups/{}/calendar/events/{}/attachments/$count", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy group.calendar.event.attachment_GetCount"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/groups/{}/calendar/events/{}/calendar", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy group.calendar.event_GetCalendar"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/groups/{}/calendar/events/{}/extensions", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy group.calendar.event_ListExtension"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/groups/{}/calendar/events/{}/extensions", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy group.calendar.event_CreateExtension"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/groups/{}/calendar/events/{}/extensions/{}", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy group.calendar.event_GetExtension"), + new(OverrideKind.SuppressOperation, HttpMethod.Patch, "/groups/{}/calendar/events/{}/extensions/{}", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy group.calendar.event_UpdateExtension"), + new(OverrideKind.SuppressOperation, HttpMethod.Delete, "/groups/{}/calendar/events/{}/extensions/{}", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy group.calendar.event_DeleteExtension"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/groups/{}/calendar/events/{}/extensions/$count", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy group.calendar.event.extension_GetCount"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/groups/{}/calendar/events/{}/instances", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy group.calendar.event_ListInstance"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/groups/{}/calendar/events/$count", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy group.calendar.event_GetCount"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/{}", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup_GetCalendar"), + new(OverrideKind.SuppressOperation, HttpMethod.Patch, "/users/{}/calendargroups/{}/calendars/{}", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup_UpdateCalendar"), + new(OverrideKind.SuppressOperation, HttpMethod.Delete, "/users/{}/calendargroups/{}/calendars/{}", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup_DeleteCalendar"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/{}/calendarpermissions", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar_ListCalendarPermission"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/users/{}/calendargroups/{}/calendars/{}/calendarpermissions", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar_CreateCalendarPermission"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/{}/calendarpermissions/{}", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar_GetCalendarPermission"), + new(OverrideKind.SuppressOperation, HttpMethod.Patch, "/users/{}/calendargroups/{}/calendars/{}/calendarpermissions/{}", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar_UpdateCalendarPermission"), + new(OverrideKind.SuppressOperation, HttpMethod.Delete, "/users/{}/calendargroups/{}/calendars/{}/calendarpermissions/{}", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar_DeleteCalendarPermission"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/{}/calendarpermissions/$count", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.calendarPermission_GetCount"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/{}/calendarview", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar_ListCalendarView"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/{}/calendarview/delta", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.calendarView_delta"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/{}/events", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar_ListEvent"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/users/{}/calendargroups/{}/calendars/{}/events", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar_CreateEvent"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/{}/events/{}", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar_GetEvent"), + new(OverrideKind.SuppressOperation, HttpMethod.Patch, "/users/{}/calendargroups/{}/calendars/{}/events/{}", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar_UpdateEvent"), + new(OverrideKind.SuppressOperation, HttpMethod.Delete, "/users/{}/calendargroups/{}/calendars/{}/events/{}", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar_DeleteEvent"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/{}/events/{}/attachments", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event_ListAttachment"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/users/{}/calendargroups/{}/calendars/{}/events/{}/attachments", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event_CreateAttachment"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/{}/events/{}/attachments/{}", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event_GetAttachment"), + new(OverrideKind.SuppressOperation, HttpMethod.Delete, "/users/{}/calendargroups/{}/calendars/{}/events/{}/attachments/{}", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event_DeleteAttachment"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/{}/events/{}/attachments/$count", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event.attachment_GetCount"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/users/{}/calendargroups/{}/calendars/{}/events/{}/attachments/createuploadsession", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event.attachment_createUploadSession"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/{}/events/{}/calendar", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event_GetCalendar"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/{}/events/{}/extensions", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event_ListExtension"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/users/{}/calendargroups/{}/calendars/{}/events/{}/extensions", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event_CreateExtension"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/{}/events/{}/extensions/{}", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event_GetExtension"), + new(OverrideKind.SuppressOperation, HttpMethod.Patch, "/users/{}/calendargroups/{}/calendars/{}/events/{}/extensions/{}", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event_UpdateExtension"), + new(OverrideKind.SuppressOperation, HttpMethod.Delete, "/users/{}/calendargroups/{}/calendars/{}/events/{}/extensions/{}", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event_DeleteExtension"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/{}/events/{}/extensions/$count", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event.extension_GetCount"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/{}/events/{}/instances", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event_ListInstance"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/{}/events/{}/instances/delta", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event.instance_delta"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/users/{}/calendargroups/{}/calendars/{}/events/{}/accept", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event_accept"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/users/{}/calendargroups/{}/calendars/{}/events/{}/cancel", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event_cancel"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/users/{}/calendargroups/{}/calendars/{}/events/{}/decline", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event_decline"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/users/{}/calendargroups/{}/calendars/{}/events/{}/dismissreminder", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event_dismissReminder"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/users/{}/calendargroups/{}/calendars/{}/events/{}/forward", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event_forward"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/users/{}/calendargroups/{}/calendars/{}/events/{}/permanentdelete", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event_permanentDelete"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/users/{}/calendargroups/{}/calendars/{}/events/{}/snoozereminder", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event_snoozeReminder"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/users/{}/calendargroups/{}/calendars/{}/events/{}/tentativelyaccept", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event_tentativelyAccept"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/{}/events/$count", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event_GetCount"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/{}/events/delta", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar.event_delta"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/{}/allowedcalendarsharingroles(user='{}')", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar_allowedCalendarSharingRole"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/users/{}/calendargroups/{}/calendars/{}/getschedule", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar_getSchedule"), + new(OverrideKind.SuppressOperation, HttpMethod.Post, "/users/{}/calendargroups/{}/calendars/{}/permanentdelete", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar_permanentDelete"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/$count", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar_GetCount"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendargroups/{}/calendars/delta", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendarGroup.calendar_delta"), + new(OverrideKind.SuppressOperation, HttpMethod.Patch, "/users/{}/calendars/{}", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user_UpdateCalendar"), + new(OverrideKind.SuppressOperation, HttpMethod.Delete, "/users/{}/calendars/{}", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user_DeleteCalendar"), + new(OverrideKind.SuppressOperation, HttpMethod.Get, "/users/{}/calendars/{}/calendarview/delta", Match: PathMatch.Exact, Value: null, + Reason: "Calendar.md directive 1 legacy user.calendar.calendarView_delta"), ]; } diff --git a/src/Calendar/wrapper/Calendar_directiveMigrationMap.json b/src/Calendar/wrapper/Calendar_directiveMigrationMap.json index eeca6f61583..e0ba918fb94 100644 --- a/src/Calendar/wrapper/Calendar_directiveMigrationMap.json +++ b/src/Calendar/wrapper/Calendar_directiveMigrationMap.json @@ -1,6 +1,6 @@ { "scope": "Only src/Calendar/Calendar.md; global and profile-local directives are excluded. Parameter aliases/transforms and schema/response directives remain deferred.", - "prerequisite": "Reviewed inventory PR #3837 and shared-framework follow-up PR #3838 are merged into powershell-v3. The shared engine supplies curated OverrideKind.ReplaceVerb support and correctly parses YAML-quoted function paths; no module-local framework patches are required.", + "prerequisite": "Reviewed inventory PR #3837 and shared-framework follow-up PR #3838 are merged. Final directive-1 validation additionally requires centrally reviewed Legacy-source inventory support, including explicit qualified-to-bare final action/function translations. No module-local framework patches are introduced.", "specBlobs": { "v1.0": "f8cbbb7420cd4c881bae4662fd0a3ff5bcc3182b", "beta": "a1b424a75a626b3a390e1993de3cda01264a3959" @@ -11,22 +11,70 @@ "profiles": { "v1.0": { "operations": [ - { "method": "GET", "path": "/groups/{group-id}/calendarView", "operationId": "groups.ListCalendarView" }, - { "method": "GET", "path": "/users/{user-id}/calendarView", "operationId": "users.ListCalendarView" }, - { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/calendarView", "operationId": "users.calendars.ListCalendarView" }, - { "method": "GET", "path": "/users/{user-id}/calendar/events/$count", "operationId": "users.calendar.events.GetCount-1a22" }, - { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/$count", "operationId": "users.calendars.events.GetCount-efc7" }, - { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/permanentDelete", "operationId": "users.user.calendars.calendar.permanentDelete" } + { + "method": "GET", + "path": "/groups/{group-id}/calendarView", + "operationId": "groups.ListCalendarView" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarView", + "operationId": "users.ListCalendarView" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/calendarView", + "operationId": "users.calendars.ListCalendarView" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/$count", + "operationId": "users.calendar.events.GetCount-1a22" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/$count", + "operationId": "users.calendars.events.GetCount-efc7" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/permanentDelete", + "operationId": "users.user.calendars.calendar.permanentDelete" + } ] }, "beta": { "operations": [ - { "method": "GET", "path": "/groups/{group-id}/calendarView", "operationId": "groups.ListCalendarView" }, - { "method": "GET", "path": "/users/{user-id}/calendarView", "operationId": "users.ListCalendarView" }, - { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/calendarView", "operationId": "users.calendars.ListCalendarView" }, - { "method": "GET", "path": "/users/{user-id}/calendar/events/$count", "operationId": "users.calendar.events.GetCount-1a22" }, - { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/$count", "operationId": "users.calendars.events.GetCount-efc7" }, - { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/permanentDelete", "operationId": "users.user.calendars.calendar.permanentDelete" } + { + "method": "GET", + "path": "/groups/{group-id}/calendarView", + "operationId": "groups.ListCalendarView" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarView", + "operationId": "users.ListCalendarView" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/calendarView", + "operationId": "users.calendars.ListCalendarView" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/$count", + "operationId": "users.calendar.events.GetCount-1a22" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/$count", + "operationId": "users.calendars.events.GetCount-efc7" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/permanentDelete", + "operationId": "users.user.calendars.calendar.permanentDelete" + } ] } } @@ -38,68 +86,1931 @@ "classification": "OperationIdSuppression", "sourceContains": "remove-path-by-operation: (user|group)_(Update|Delete)Calendar$", "implementation": "CmdletConfigurator", - "notes": "The unmodified case-sensitive legacy regex matches exactly 26 operations per present compatible profile. Existing user default-calendar event-item prefix suppressions cover ten matches per profile; exact rules supply the remaining matches in beta as well as v1.0. v1.0 derived data already covers these routes but is not loaded for beta. Legacy underscore CRUD branches, singular calendarGroup branches and GraphBPrePlaceId branches have no literal matches in either present spec: modern CRUD IDs include users.UpdateCalendar, users.calendar.GetEvents and users.calendarGroups.calendars.GetEvents. Do not reinterpret plural/dotted IDs as regex matches or broaden this directive into subject-derived subtree pruning. Existing curated and derived suppression coverage outside the literal match set is retained.", + "notes": "Apply the unchanged case-sensitive selector to actual same-profile openApiDocs legacy IDs, not the converted ID spelling. All 136 v1.0 and 137 beta matches have compatible successors; none are removed. In each profile 83 bridge by identical method/normalized path; the remaining 53 v1.0 and 54 beta differ only by the final microsoft.graph.-qualified action/function segment, with matching actual operation types. The ledger preserves exact old/new IDs and paths for every successor. The 26 literal compatible-ID matches are only a subset. Earlier compiled output incorrectly retained two v1.0 and 63 beta operations; exact additional entries correct these leaks, retaining unrelated collection and event-item routes. No broad subject-derived regex or guessed absence is used.", "profiles": { "v1.0": { + "operationIdSource": "Legacy", + "notes": "All 136 actual legacy selector matches survive: 83 identical normalized routes plus 53 final qualified action/function translations with matching actual operation types. No removed legacy operations.", "absenceExpected": false, "operations": [ - { "method": "GET", "path": "/groups/{group-id}/calendar/calendarView/delta()", "operationId": "groups.group.calendar.calendarView.delta" }, - { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/createUploadSession", "operationId": "groups.group.calendar.events.event.attachments.createUploadSession" }, - { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/instances/delta()", "operationId": "groups.group.calendar.events.event.instances.delta" }, - { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/accept", "operationId": "groups.group.calendar.events.event.accept" }, - { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/cancel", "operationId": "groups.group.calendar.events.event.cancel" }, - { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/decline", "operationId": "groups.group.calendar.events.event.decline" }, - { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/dismissReminder", "operationId": "groups.group.calendar.events.event.dismissReminder" }, - { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/forward", "operationId": "groups.group.calendar.events.event.forward" }, - { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/permanentDelete", "operationId": "groups.group.calendar.events.event.permanentDelete" }, - { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/snoozeReminder", "operationId": "groups.group.calendar.events.event.snoozeReminder" }, - { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/tentativelyAccept", "operationId": "groups.group.calendar.events.event.tentativelyAccept" }, - { "method": "GET", "path": "/groups/{group-id}/calendar/events/delta()", "operationId": "groups.group.calendar.events.delta" }, - { "method": "GET", "path": "/groups/{group-id}/calendarView/delta()", "operationId": "groups.group.calendarView.delta" }, - { "method": "GET", "path": "/users/{user-id}/calendar/calendarView/delta()", "operationId": "users.user.calendar.calendarView.delta" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/attachments/createUploadSession", "operationId": "users.user.calendar.events.event.attachments.createUploadSession" }, - { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/instances/delta()", "operationId": "users.user.calendar.events.event.instances.delta" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/accept", "operationId": "users.user.calendar.events.event.accept" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/cancel", "operationId": "users.user.calendar.events.event.cancel" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/decline", "operationId": "users.user.calendar.events.event.decline" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/dismissReminder", "operationId": "users.user.calendar.events.event.dismissReminder" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/forward", "operationId": "users.user.calendar.events.event.forward" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/permanentDelete", "operationId": "users.user.calendar.events.event.permanentDelete" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/snoozeReminder", "operationId": "users.user.calendar.events.event.snoozeReminder" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/tentativelyAccept", "operationId": "users.user.calendar.events.event.tentativelyAccept" }, - { "method": "GET", "path": "/users/{user-id}/calendar/events/delta()", "operationId": "users.user.calendar.events.delta" }, - { "method": "GET", "path": "/users/{user-id}/calendarView/delta()", "operationId": "users.user.calendarView.delta" } + { + "method": "GET", + "path": "/groups/{group-id}/calendar/calendarView/delta()", + "operationId": "groups.group.calendar.calendarView.delta", + "legacyPath": "/groups/{group-id}/calendar/calendarView/microsoft.graph.delta()", + "legacyOperationId": "group.calendar.calendarView_delta" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/{event-id}/attachments", + "operationId": "groups.calendar.events.ListAttachments", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments", + "legacyOperationId": "group.calendar.event_ListAttachment" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/attachments", + "operationId": "groups.calendar.events.CreateAttachments", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments", + "legacyOperationId": "group.calendar.event_CreateAttachment" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/{attachment-id}", + "operationId": "groups.calendar.events.GetAttachments", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments/{attachment-id}", + "legacyOperationId": "group.calendar.event_GetAttachment" + }, + { + "method": "DELETE", + "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/{attachment-id}", + "operationId": "groups.calendar.events.DeleteAttachments", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments/{attachment-id}", + "legacyOperationId": "group.calendar.event_DeleteAttachment" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/$count", + "operationId": "groups.calendar.events.attachments.GetCount-a03a", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments/$count", + "legacyOperationId": "group.calendar.event.attachment_GetCount" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/createUploadSession", + "operationId": "groups.group.calendar.events.event.attachments.createUploadSession", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments/microsoft.graph.createUploadSession", + "legacyOperationId": "group.calendar.event.attachment_createUploadSession" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/{event-id}/calendar", + "operationId": "groups.calendar.events.GetCalendar", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/calendar", + "legacyOperationId": "group.calendar.event_GetCalendar" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/{event-id}/extensions", + "operationId": "groups.calendar.events.ListExtensions", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions", + "legacyOperationId": "group.calendar.event_ListExtension" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/extensions", + "operationId": "groups.calendar.events.CreateExtensions", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions", + "legacyOperationId": "group.calendar.event_CreateExtension" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", + "operationId": "groups.calendar.events.GetExtensions", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "group.calendar.event_GetExtension" + }, + { + "method": "PATCH", + "path": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", + "operationId": "groups.calendar.events.UpdateExtensions", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "group.calendar.event_UpdateExtension" + }, + { + "method": "DELETE", + "path": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", + "operationId": "groups.calendar.events.DeleteExtensions", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "group.calendar.event_DeleteExtension" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/{event-id}/extensions/$count", + "operationId": "groups.calendar.events.extensions.GetCount-d77e", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions/$count", + "legacyOperationId": "group.calendar.event.extension_GetCount" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/{event-id}/instances", + "operationId": "groups.calendar.events.ListInstances", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/instances", + "legacyOperationId": "group.calendar.event_ListInstance" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/{event-id}/instances/delta()", + "operationId": "groups.group.calendar.events.event.instances.delta", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/instances/microsoft.graph.delta()", + "legacyOperationId": "group.calendar.event.instance_delta" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/accept", + "operationId": "groups.group.calendar.events.event.accept", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.accept", + "legacyOperationId": "group.calendar.event_accept" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/cancel", + "operationId": "groups.group.calendar.events.event.cancel", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.cancel", + "legacyOperationId": "group.calendar.event_cancel" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/decline", + "operationId": "groups.group.calendar.events.event.decline", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.decline", + "legacyOperationId": "group.calendar.event_decline" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/dismissReminder", + "operationId": "groups.group.calendar.events.event.dismissReminder", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.dismissReminder", + "legacyOperationId": "group.calendar.event_dismissReminder" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/forward", + "operationId": "groups.group.calendar.events.event.forward", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.forward", + "legacyOperationId": "group.calendar.event_forward" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/permanentDelete", + "operationId": "groups.group.calendar.events.event.permanentDelete", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.permanentDelete", + "legacyOperationId": "group.calendar.event_permanentDelete" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/snoozeReminder", + "operationId": "groups.group.calendar.events.event.snoozeReminder", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.snoozeReminder", + "legacyOperationId": "group.calendar.event_snoozeReminder" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/tentativelyAccept", + "operationId": "groups.group.calendar.events.event.tentativelyAccept", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.tentativelyAccept", + "legacyOperationId": "group.calendar.event_tentativelyAccept" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/$count", + "operationId": "groups.calendar.events.GetCount-b856", + "legacyPath": "/groups/{group-id}/calendar/events/$count", + "legacyOperationId": "group.calendar.event_GetCount" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/delta()", + "operationId": "groups.group.calendar.events.delta", + "legacyPath": "/groups/{group-id}/calendar/events/microsoft.graph.delta()", + "legacyOperationId": "group.calendar.event_delta" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendarView", + "operationId": "groups.ListCalendarView", + "legacyPath": "/groups/{group-id}/calendarView", + "legacyOperationId": "group_ListCalendarView" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendarView/delta()", + "operationId": "groups.group.calendarView.delta", + "legacyPath": "/groups/{group-id}/calendarView/microsoft.graph.delta()", + "legacyOperationId": "group.calendarView_delta" + }, + { + "method": "PATCH", + "path": "/users/{user-id}/calendar", + "operationId": "users.UpdateCalendar", + "legacyPath": "/users/{user-id}/calendar", + "legacyOperationId": "user_UpdateCalendar" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/calendarView/delta()", + "operationId": "users.user.calendar.calendarView.delta", + "legacyPath": "/users/{user-id}/calendar/calendarView/microsoft.graph.delta()", + "legacyOperationId": "user.calendar.calendarView_delta" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/{event-id}", + "operationId": "users.calendar.GetEvents", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}", + "legacyOperationId": "user.calendar_GetEvent" + }, + { + "method": "PATCH", + "path": "/users/{user-id}/calendar/events/{event-id}", + "operationId": "users.calendar.UpdateEvents", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}", + "legacyOperationId": "user.calendar_UpdateEvent" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendar/events/{event-id}", + "operationId": "users.calendar.DeleteEvents", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}", + "legacyOperationId": "user.calendar_DeleteEvent" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/{event-id}/attachments", + "operationId": "users.calendar.events.ListAttachments", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments", + "legacyOperationId": "user.calendar.event_ListAttachment" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/attachments", + "operationId": "users.calendar.events.CreateAttachments", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments", + "legacyOperationId": "user.calendar.event_CreateAttachment" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/{event-id}/attachments/{attachment-id}", + "operationId": "users.calendar.events.GetAttachments", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments/{attachment-id}", + "legacyOperationId": "user.calendar.event_GetAttachment" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendar/events/{event-id}/attachments/{attachment-id}", + "operationId": "users.calendar.events.DeleteAttachments", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments/{attachment-id}", + "legacyOperationId": "user.calendar.event_DeleteAttachment" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/{event-id}/attachments/$count", + "operationId": "users.calendar.events.attachments.GetCount-114f", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments/$count", + "legacyOperationId": "user.calendar.event.attachment_GetCount" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/attachments/createUploadSession", + "operationId": "users.user.calendar.events.event.attachments.createUploadSession", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments/microsoft.graph.createUploadSession", + "legacyOperationId": "user.calendar.event.attachment_createUploadSession" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/{event-id}/calendar", + "operationId": "users.calendar.events.GetCalendar", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/calendar", + "legacyOperationId": "user.calendar.event_GetCalendar" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/{event-id}/extensions", + "operationId": "users.calendar.events.ListExtensions", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions", + "legacyOperationId": "user.calendar.event_ListExtension" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/extensions", + "operationId": "users.calendar.events.CreateExtensions", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions", + "legacyOperationId": "user.calendar.event_CreateExtension" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", + "operationId": "users.calendar.events.GetExtensions", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "user.calendar.event_GetExtension" + }, + { + "method": "PATCH", + "path": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", + "operationId": "users.calendar.events.UpdateExtensions", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "user.calendar.event_UpdateExtension" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", + "operationId": "users.calendar.events.DeleteExtensions", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "user.calendar.event_DeleteExtension" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/{event-id}/extensions/$count", + "operationId": "users.calendar.events.extensions.GetCount-15ec", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions/$count", + "legacyOperationId": "user.calendar.event.extension_GetCount" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/{event-id}/instances", + "operationId": "users.calendar.events.ListInstances", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/instances", + "legacyOperationId": "user.calendar.event_ListInstance" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/{event-id}/instances/delta()", + "operationId": "users.user.calendar.events.event.instances.delta", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/instances/microsoft.graph.delta()", + "legacyOperationId": "user.calendar.event.instance_delta" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/accept", + "operationId": "users.user.calendar.events.event.accept", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.accept", + "legacyOperationId": "user.calendar.event_accept" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/cancel", + "operationId": "users.user.calendar.events.event.cancel", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.cancel", + "legacyOperationId": "user.calendar.event_cancel" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/decline", + "operationId": "users.user.calendar.events.event.decline", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.decline", + "legacyOperationId": "user.calendar.event_decline" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/dismissReminder", + "operationId": "users.user.calendar.events.event.dismissReminder", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.dismissReminder", + "legacyOperationId": "user.calendar.event_dismissReminder" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/forward", + "operationId": "users.user.calendar.events.event.forward", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.forward", + "legacyOperationId": "user.calendar.event_forward" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/permanentDelete", + "operationId": "users.user.calendar.events.event.permanentDelete", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.permanentDelete", + "legacyOperationId": "user.calendar.event_permanentDelete" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/snoozeReminder", + "operationId": "users.user.calendar.events.event.snoozeReminder", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.snoozeReminder", + "legacyOperationId": "user.calendar.event_snoozeReminder" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/tentativelyAccept", + "operationId": "users.user.calendar.events.event.tentativelyAccept", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.tentativelyAccept", + "legacyOperationId": "user.calendar.event_tentativelyAccept" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/$count", + "operationId": "users.calendar.events.GetCount-1a22", + "legacyPath": "/users/{user-id}/calendar/events/$count", + "legacyOperationId": "user.calendar.event_GetCount" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/delta()", + "operationId": "users.user.calendar.events.delta", + "legacyPath": "/users/{user-id}/calendar/events/microsoft.graph.delta()", + "legacyOperationId": "user.calendar.event_delta" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", + "operationId": "users.calendarGroups.GetCalendars", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", + "legacyOperationId": "user.calendarGroup_GetCalendar" + }, + { + "method": "PATCH", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", + "operationId": "users.calendarGroups.UpdateCalendars", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", + "legacyOperationId": "user.calendarGroup_UpdateCalendar" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", + "operationId": "users.calendarGroups.DeleteCalendars", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", + "legacyOperationId": "user.calendarGroup_DeleteCalendar" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions", + "operationId": "users.calendarGroups.calendars.ListCalendarPermissions", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions", + "legacyOperationId": "user.calendarGroup.calendar_ListCalendarPermission" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions", + "operationId": "users.calendarGroups.calendars.CreateCalendarPermissions", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions", + "legacyOperationId": "user.calendarGroup.calendar_CreateCalendarPermission" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", + "operationId": "users.calendarGroups.calendars.GetCalendarPermissions", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", + "legacyOperationId": "user.calendarGroup.calendar_GetCalendarPermission" + }, + { + "method": "PATCH", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", + "operationId": "users.calendarGroups.calendars.UpdateCalendarPermissions", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", + "legacyOperationId": "user.calendarGroup.calendar_UpdateCalendarPermission" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", + "operationId": "users.calendarGroups.calendars.DeleteCalendarPermissions", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", + "legacyOperationId": "user.calendarGroup.calendar_DeleteCalendarPermission" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/$count", + "operationId": "users.calendarGroups.calendars.calendarPermissions.GetCount-98a8", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/$count", + "legacyOperationId": "user.calendarGroup.calendar.calendarPermission_GetCount" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView", + "operationId": "users.calendarGroups.calendars.ListCalendarView", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView", + "legacyOperationId": "user.calendarGroup.calendar_ListCalendarView" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/delta()", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.calendarView.delta", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/microsoft.graph.delta()", + "legacyOperationId": "user.calendarGroup.calendar.calendarView_delta" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events", + "operationId": "users.calendarGroups.calendars.ListEvents", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events", + "legacyOperationId": "user.calendarGroup.calendar_ListEvent" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events", + "operationId": "users.calendarGroups.calendars.CreateEvents", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events", + "legacyOperationId": "user.calendarGroup.calendar_CreateEvent" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", + "operationId": "users.calendarGroups.calendars.GetEvents", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", + "legacyOperationId": "user.calendarGroup.calendar_GetEvent" + }, + { + "method": "PATCH", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", + "operationId": "users.calendarGroups.calendars.UpdateEvents", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", + "legacyOperationId": "user.calendarGroup.calendar_UpdateEvent" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", + "operationId": "users.calendarGroups.calendars.DeleteEvents", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", + "legacyOperationId": "user.calendarGroup.calendar_DeleteEvent" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments", + "operationId": "users.calendarGroups.calendars.events.ListAttachments", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments", + "legacyOperationId": "user.calendarGroup.calendar.event_ListAttachment" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments", + "operationId": "users.calendarGroups.calendars.events.CreateAttachments", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments", + "legacyOperationId": "user.calendarGroup.calendar.event_CreateAttachment" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", + "operationId": "users.calendarGroups.calendars.events.GetAttachments", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", + "legacyOperationId": "user.calendarGroup.calendar.event_GetAttachment" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", + "operationId": "users.calendarGroups.calendars.events.DeleteAttachments", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", + "legacyOperationId": "user.calendarGroup.calendar.event_DeleteAttachment" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/$count", + "operationId": "users.calendarGroups.calendars.events.attachments.GetCount-e742", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/$count", + "legacyOperationId": "user.calendarGroup.calendar.event.attachment_GetCount" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/createUploadSession", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.attachments.createUploadSession", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/microsoft.graph.createUploadSession", + "legacyOperationId": "user.calendarGroup.calendar.event.attachment_createUploadSession" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/calendar", + "operationId": "users.calendarGroups.calendars.events.GetCalendar", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/calendar", + "legacyOperationId": "user.calendarGroup.calendar.event_GetCalendar" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions", + "operationId": "users.calendarGroups.calendars.events.ListExtensions", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions", + "legacyOperationId": "user.calendarGroup.calendar.event_ListExtension" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions", + "operationId": "users.calendarGroups.calendars.events.CreateExtensions", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions", + "legacyOperationId": "user.calendarGroup.calendar.event_CreateExtension" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "operationId": "users.calendarGroups.calendars.events.GetExtensions", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "user.calendarGroup.calendar.event_GetExtension" + }, + { + "method": "PATCH", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "operationId": "users.calendarGroups.calendars.events.UpdateExtensions", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "user.calendarGroup.calendar.event_UpdateExtension" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "operationId": "users.calendarGroups.calendars.events.DeleteExtensions", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "user.calendarGroup.calendar.event_DeleteExtension" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/$count", + "operationId": "users.calendarGroups.calendars.events.extensions.GetCount-4cca", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/$count", + "legacyOperationId": "user.calendarGroup.calendar.event.extension_GetCount" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances", + "operationId": "users.calendarGroups.calendars.events.ListInstances", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances", + "legacyOperationId": "user.calendarGroup.calendar.event_ListInstance" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances/delta()", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.instances.delta", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances/microsoft.graph.delta()", + "legacyOperationId": "user.calendarGroup.calendar.event.instance_delta" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/accept", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.accept", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.accept", + "legacyOperationId": "user.calendarGroup.calendar.event_accept" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/cancel", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.cancel", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.cancel", + "legacyOperationId": "user.calendarGroup.calendar.event_cancel" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/decline", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.decline", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.decline", + "legacyOperationId": "user.calendarGroup.calendar.event_decline" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/dismissReminder", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.dismissReminder", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.dismissReminder", + "legacyOperationId": "user.calendarGroup.calendar.event_dismissReminder" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/forward", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.forward", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.forward", + "legacyOperationId": "user.calendarGroup.calendar.event_forward" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/permanentDelete", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.permanentDelete", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.permanentDelete", + "legacyOperationId": "user.calendarGroup.calendar.event_permanentDelete" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/snoozeReminder", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.snoozeReminder", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.snoozeReminder", + "legacyOperationId": "user.calendarGroup.calendar.event_snoozeReminder" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/tentativelyAccept", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.tentativelyAccept", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.tentativelyAccept", + "legacyOperationId": "user.calendarGroup.calendar.event_tentativelyAccept" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/$count", + "operationId": "users.calendarGroups.calendars.events.GetCount-f3ad", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/$count", + "legacyOperationId": "user.calendarGroup.calendar.event_GetCount" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/delta()", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.delta", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/microsoft.graph.delta()", + "legacyOperationId": "user.calendarGroup.calendar.event_delta" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/allowedCalendarSharingRoles(User='{User}')", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.allowedCalendarSharingRoles", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/microsoft.graph.allowedCalendarSharingRoles(User='{User}')", + "legacyOperationId": "user.calendarGroup.calendar_allowedCalendarSharingRole" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/getSchedule", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.getSchedule", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/microsoft.graph.getSchedule", + "legacyOperationId": "user.calendarGroup.calendar_getSchedule" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/permanentDelete", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.permanentDelete", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/microsoft.graph.permanentDelete", + "legacyOperationId": "user.calendarGroup.calendar_permanentDelete" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/$count", + "operationId": "users.calendarGroups.calendars.GetCount-8e45", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/$count", + "legacyOperationId": "user.calendarGroup.calendar_GetCount" + }, + { + "method": "PATCH", + "path": "/users/{user-id}/calendars/{calendar-id}", + "operationId": "users.UpdateCalendars", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}", + "legacyOperationId": "user_UpdateCalendar" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendars/{calendar-id}", + "operationId": "users.DeleteCalendars", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}", + "legacyOperationId": "user_DeleteCalendar" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/calendarView/delta()", + "operationId": "users.user.calendars.calendar.calendarView.delta", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/calendarView/microsoft.graph.delta()", + "legacyOperationId": "user.calendar.calendarView_delta" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", + "operationId": "users.calendars.GetEvents", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", + "legacyOperationId": "user.calendar_GetEvent" + }, + { + "method": "PATCH", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", + "operationId": "users.calendars.UpdateEvents", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", + "legacyOperationId": "user.calendar_UpdateEvent" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", + "operationId": "users.calendars.DeleteEvents", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", + "legacyOperationId": "user.calendar_DeleteEvent" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments", + "operationId": "users.calendars.events.ListAttachments", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments", + "legacyOperationId": "user.calendar.event_ListAttachment" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments", + "operationId": "users.calendars.events.CreateAttachments", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments", + "legacyOperationId": "user.calendar.event_CreateAttachment" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", + "operationId": "users.calendars.events.GetAttachments", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", + "legacyOperationId": "user.calendar.event_GetAttachment" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", + "operationId": "users.calendars.events.DeleteAttachments", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", + "legacyOperationId": "user.calendar.event_DeleteAttachment" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/$count", + "operationId": "users.calendars.events.attachments.GetCount-8147", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/$count", + "legacyOperationId": "user.calendar.event.attachment_GetCount" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/createUploadSession", + "operationId": "users.user.calendars.calendar.events.event.attachments.createUploadSession", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/microsoft.graph.createUploadSession", + "legacyOperationId": "user.calendar.event.attachment_createUploadSession" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/calendar", + "operationId": "users.calendars.events.GetCalendar", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/calendar", + "legacyOperationId": "user.calendar.event_GetCalendar" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions", + "operationId": "users.calendars.events.ListExtensions", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions", + "legacyOperationId": "user.calendar.event_ListExtension" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions", + "operationId": "users.calendars.events.CreateExtensions", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions", + "legacyOperationId": "user.calendar.event_CreateExtension" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "operationId": "users.calendars.events.GetExtensions", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "user.calendar.event_GetExtension" + }, + { + "method": "PATCH", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "operationId": "users.calendars.events.UpdateExtensions", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "user.calendar.event_UpdateExtension" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "operationId": "users.calendars.events.DeleteExtensions", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "user.calendar.event_DeleteExtension" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/$count", + "operationId": "users.calendars.events.extensions.GetCount-b44d", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/$count", + "legacyOperationId": "user.calendar.event.extension_GetCount" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/instances", + "operationId": "users.calendars.events.ListInstances", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/instances", + "legacyOperationId": "user.calendar.event_ListInstance" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/instances/delta()", + "operationId": "users.user.calendars.calendar.events.event.instances.delta", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/instances/microsoft.graph.delta()", + "legacyOperationId": "user.calendar.event.instance_delta" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/accept", + "operationId": "users.user.calendars.calendar.events.event.accept", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.accept", + "legacyOperationId": "user.calendar.event_accept" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/cancel", + "operationId": "users.user.calendars.calendar.events.event.cancel", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.cancel", + "legacyOperationId": "user.calendar.event_cancel" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/decline", + "operationId": "users.user.calendars.calendar.events.event.decline", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.decline", + "legacyOperationId": "user.calendar.event_decline" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/dismissReminder", + "operationId": "users.user.calendars.calendar.events.event.dismissReminder", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.dismissReminder", + "legacyOperationId": "user.calendar.event_dismissReminder" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/forward", + "operationId": "users.user.calendars.calendar.events.event.forward", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.forward", + "legacyOperationId": "user.calendar.event_forward" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/permanentDelete", + "operationId": "users.user.calendars.calendar.events.event.permanentDelete", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.permanentDelete", + "legacyOperationId": "user.calendar.event_permanentDelete" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/snoozeReminder", + "operationId": "users.user.calendars.calendar.events.event.snoozeReminder", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.snoozeReminder", + "legacyOperationId": "user.calendar.event_snoozeReminder" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/tentativelyAccept", + "operationId": "users.user.calendars.calendar.events.event.tentativelyAccept", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.tentativelyAccept", + "legacyOperationId": "user.calendar.event_tentativelyAccept" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/$count", + "operationId": "users.calendars.events.GetCount-efc7", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/$count", + "legacyOperationId": "user.calendar.event_GetCount" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/delta()", + "operationId": "users.user.calendars.calendar.events.delta", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/microsoft.graph.delta()", + "legacyOperationId": "user.calendar.event_delta" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarView", + "operationId": "users.ListCalendarView", + "legacyPath": "/users/{user-id}/calendarView", + "legacyOperationId": "user_ListCalendarView" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarView/delta()", + "operationId": "users.user.calendarView.delta", + "legacyPath": "/users/{user-id}/calendarView/microsoft.graph.delta()", + "legacyOperationId": "user.calendarView_delta" + } ] }, "beta": { + "operationIdSource": "Legacy", + "notes": "All 137 actual legacy selector matches survive: 83 identical normalized routes plus 54 final qualified action/function translations with matching actual operation types. No removed legacy operations.", "absenceExpected": false, "operations": [ - { "method": "GET", "path": "/groups/{group-id}/calendar/calendarView/delta()", "operationId": "groups.group.calendar.calendarView.delta" }, - { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/createUploadSession", "operationId": "groups.group.calendar.events.event.attachments.createUploadSession" }, - { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/instances/delta()", "operationId": "groups.group.calendar.events.event.instances.delta" }, - { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/accept", "operationId": "groups.group.calendar.events.event.accept" }, - { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/cancel", "operationId": "groups.group.calendar.events.event.cancel" }, - { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/decline", "operationId": "groups.group.calendar.events.event.decline" }, - { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/dismissReminder", "operationId": "groups.group.calendar.events.event.dismissReminder" }, - { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/forward", "operationId": "groups.group.calendar.events.event.forward" }, - { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/permanentDelete", "operationId": "groups.group.calendar.events.event.permanentDelete" }, - { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/snoozeReminder", "operationId": "groups.group.calendar.events.event.snoozeReminder" }, - { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/tentativelyAccept", "operationId": "groups.group.calendar.events.event.tentativelyAccept" }, - { "method": "GET", "path": "/groups/{group-id}/calendar/events/delta()", "operationId": "groups.group.calendar.events.delta" }, - { "method": "GET", "path": "/groups/{group-id}/calendarView/delta()", "operationId": "groups.group.calendarView.delta" }, - { "method": "GET", "path": "/users/{user-id}/calendar/calendarView/delta()", "operationId": "users.user.calendar.calendarView.delta" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/attachments/createUploadSession", "operationId": "users.user.calendar.events.event.attachments.createUploadSession" }, - { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/instances/delta()", "operationId": "users.user.calendar.events.event.instances.delta" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/accept", "operationId": "users.user.calendar.events.event.accept" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/cancel", "operationId": "users.user.calendar.events.event.cancel" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/decline", "operationId": "users.user.calendar.events.event.decline" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/dismissReminder", "operationId": "users.user.calendar.events.event.dismissReminder" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/forward", "operationId": "users.user.calendar.events.event.forward" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/permanentDelete", "operationId": "users.user.calendar.events.event.permanentDelete" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/snoozeReminder", "operationId": "users.user.calendar.events.event.snoozeReminder" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/tentativelyAccept", "operationId": "users.user.calendar.events.event.tentativelyAccept" }, - { "method": "GET", "path": "/users/{user-id}/calendar/events/delta()", "operationId": "users.user.calendar.events.delta" }, - { "method": "GET", "path": "/users/{user-id}/calendarView/delta()", "operationId": "users.user.calendarView.delta" } + { + "method": "GET", + "path": "/groups/{group-id}/calendar/calendarView/delta()", + "operationId": "groups.group.calendar.calendarView.delta", + "legacyPath": "/groups/{group-id}/calendar/calendarView/microsoft.graph.delta()", + "legacyOperationId": "group.calendar.calendarView_delta" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/{event-id}/attachments", + "operationId": "groups.calendar.events.ListAttachments", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments", + "legacyOperationId": "group.calendar.event_ListAttachment" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/attachments", + "operationId": "groups.calendar.events.CreateAttachments", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments", + "legacyOperationId": "group.calendar.event_CreateAttachment" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/{attachment-id}", + "operationId": "groups.calendar.events.GetAttachments", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments/{attachment-id}", + "legacyOperationId": "group.calendar.event_GetAttachment" + }, + { + "method": "DELETE", + "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/{attachment-id}", + "operationId": "groups.calendar.events.DeleteAttachments", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments/{attachment-id}", + "legacyOperationId": "group.calendar.event_DeleteAttachment" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/$count", + "operationId": "groups.calendar.events.attachments.GetCount-a03a", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments/$count", + "legacyOperationId": "group.calendar.event.attachment_GetCount" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/createUploadSession", + "operationId": "groups.group.calendar.events.event.attachments.createUploadSession", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments/microsoft.graph.createUploadSession", + "legacyOperationId": "group.calendar.event.attachment_createUploadSession" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/{event-id}/calendar", + "operationId": "groups.calendar.events.GetCalendar", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/calendar", + "legacyOperationId": "group.calendar.event_GetCalendar" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/{event-id}/extensions", + "operationId": "groups.calendar.events.ListExtensions", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions", + "legacyOperationId": "group.calendar.event_ListExtension" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/extensions", + "operationId": "groups.calendar.events.CreateExtensions", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions", + "legacyOperationId": "group.calendar.event_CreateExtension" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", + "operationId": "groups.calendar.events.GetExtensions", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "group.calendar.event_GetExtension" + }, + { + "method": "PATCH", + "path": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", + "operationId": "groups.calendar.events.UpdateExtensions", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "group.calendar.event_UpdateExtension" + }, + { + "method": "DELETE", + "path": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", + "operationId": "groups.calendar.events.DeleteExtensions", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "group.calendar.event_DeleteExtension" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/{event-id}/extensions/$count", + "operationId": "groups.calendar.events.extensions.GetCount-d77e", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions/$count", + "legacyOperationId": "group.calendar.event.extension_GetCount" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/{event-id}/instances", + "operationId": "groups.calendar.events.ListInstances", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/instances", + "legacyOperationId": "group.calendar.event_ListInstance" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/{event-id}/instances/delta()", + "operationId": "groups.group.calendar.events.event.instances.delta", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/instances/microsoft.graph.delta()", + "legacyOperationId": "group.calendar.event.instance_delta" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/accept", + "operationId": "groups.group.calendar.events.event.accept", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.accept", + "legacyOperationId": "group.calendar.event_accept" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/cancel", + "operationId": "groups.group.calendar.events.event.cancel", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.cancel", + "legacyOperationId": "group.calendar.event_cancel" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/decline", + "operationId": "groups.group.calendar.events.event.decline", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.decline", + "legacyOperationId": "group.calendar.event_decline" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/dismissReminder", + "operationId": "groups.group.calendar.events.event.dismissReminder", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.dismissReminder", + "legacyOperationId": "group.calendar.event_dismissReminder" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/forward", + "operationId": "groups.group.calendar.events.event.forward", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.forward", + "legacyOperationId": "group.calendar.event_forward" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/permanentDelete", + "operationId": "groups.group.calendar.events.event.permanentDelete", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.permanentDelete", + "legacyOperationId": "group.calendar.event_permanentDelete" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/snoozeReminder", + "operationId": "groups.group.calendar.events.event.snoozeReminder", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.snoozeReminder", + "legacyOperationId": "group.calendar.event_snoozeReminder" + }, + { + "method": "POST", + "path": "/groups/{group-id}/calendar/events/{event-id}/tentativelyAccept", + "operationId": "groups.group.calendar.events.event.tentativelyAccept", + "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.tentativelyAccept", + "legacyOperationId": "group.calendar.event_tentativelyAccept" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/$count", + "operationId": "groups.calendar.events.GetCount-b856", + "legacyPath": "/groups/{group-id}/calendar/events/$count", + "legacyOperationId": "group.calendar.event_GetCount" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendar/events/delta()", + "operationId": "groups.group.calendar.events.delta", + "legacyPath": "/groups/{group-id}/calendar/events/microsoft.graph.delta()", + "legacyOperationId": "group.calendar.event_delta" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendarView", + "operationId": "groups.ListCalendarView", + "legacyPath": "/groups/{group-id}/calendarView", + "legacyOperationId": "group_ListCalendarView" + }, + { + "method": "GET", + "path": "/groups/{group-id}/calendarView/delta()", + "operationId": "groups.group.calendarView.delta", + "legacyPath": "/groups/{group-id}/calendarView/microsoft.graph.delta()", + "legacyOperationId": "group.calendarView_delta" + }, + { + "method": "PATCH", + "path": "/users/{user-id}/calendar", + "operationId": "users.UpdateCalendar", + "legacyPath": "/users/{user-id}/calendar", + "legacyOperationId": "user_UpdateCalendar" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/calendarView/delta()", + "operationId": "users.user.calendar.calendarView.delta", + "legacyPath": "/users/{user-id}/calendar/calendarView/microsoft.graph.delta()", + "legacyOperationId": "user.calendar.calendarView_delta" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/{event-id}", + "operationId": "users.calendar.GetEvents", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}", + "legacyOperationId": "user.calendar_GetEvent" + }, + { + "method": "PATCH", + "path": "/users/{user-id}/calendar/events/{event-id}", + "operationId": "users.calendar.UpdateEvents", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}", + "legacyOperationId": "user.calendar_UpdateEvent" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendar/events/{event-id}", + "operationId": "users.calendar.DeleteEvents", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}", + "legacyOperationId": "user.calendar_DeleteEvent" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/{event-id}/attachments", + "operationId": "users.calendar.events.ListAttachments", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments", + "legacyOperationId": "user.calendar.event_ListAttachment" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/attachments", + "operationId": "users.calendar.events.CreateAttachments", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments", + "legacyOperationId": "user.calendar.event_CreateAttachment" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/{event-id}/attachments/{attachment-id}", + "operationId": "users.calendar.events.GetAttachments", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments/{attachment-id}", + "legacyOperationId": "user.calendar.event_GetAttachment" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendar/events/{event-id}/attachments/{attachment-id}", + "operationId": "users.calendar.events.DeleteAttachments", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments/{attachment-id}", + "legacyOperationId": "user.calendar.event_DeleteAttachment" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/{event-id}/attachments/$count", + "operationId": "users.calendar.events.attachments.GetCount-114f", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments/$count", + "legacyOperationId": "user.calendar.event.attachment_GetCount" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/attachments/createUploadSession", + "operationId": "users.user.calendar.events.event.attachments.createUploadSession", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments/microsoft.graph.createUploadSession", + "legacyOperationId": "user.calendar.event.attachment_createUploadSession" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/{event-id}/calendar", + "operationId": "users.calendar.events.GetCalendar", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/calendar", + "legacyOperationId": "user.calendar.event_GetCalendar" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/{event-id}/extensions", + "operationId": "users.calendar.events.ListExtensions", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions", + "legacyOperationId": "user.calendar.event_ListExtension" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/extensions", + "operationId": "users.calendar.events.CreateExtensions", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions", + "legacyOperationId": "user.calendar.event_CreateExtension" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", + "operationId": "users.calendar.events.GetExtensions", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "user.calendar.event_GetExtension" + }, + { + "method": "PATCH", + "path": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", + "operationId": "users.calendar.events.UpdateExtensions", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "user.calendar.event_UpdateExtension" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", + "operationId": "users.calendar.events.DeleteExtensions", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "user.calendar.event_DeleteExtension" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/{event-id}/extensions/$count", + "operationId": "users.calendar.events.extensions.GetCount-15ec", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions/$count", + "legacyOperationId": "user.calendar.event.extension_GetCount" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/{event-id}/instances", + "operationId": "users.calendar.events.ListInstances", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/instances", + "legacyOperationId": "user.calendar.event_ListInstance" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/{event-id}/instances/delta()", + "operationId": "users.user.calendar.events.event.instances.delta", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/instances/microsoft.graph.delta()", + "legacyOperationId": "user.calendar.event.instance_delta" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/accept", + "operationId": "users.user.calendar.events.event.accept", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.accept", + "legacyOperationId": "user.calendar.event_accept" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/cancel", + "operationId": "users.user.calendar.events.event.cancel", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.cancel", + "legacyOperationId": "user.calendar.event_cancel" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/decline", + "operationId": "users.user.calendar.events.event.decline", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.decline", + "legacyOperationId": "user.calendar.event_decline" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/dismissReminder", + "operationId": "users.user.calendar.events.event.dismissReminder", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.dismissReminder", + "legacyOperationId": "user.calendar.event_dismissReminder" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/forward", + "operationId": "users.user.calendar.events.event.forward", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.forward", + "legacyOperationId": "user.calendar.event_forward" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/permanentDelete", + "operationId": "users.user.calendar.events.event.permanentDelete", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.permanentDelete", + "legacyOperationId": "user.calendar.event_permanentDelete" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/snoozeReminder", + "operationId": "users.user.calendar.events.event.snoozeReminder", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.snoozeReminder", + "legacyOperationId": "user.calendar.event_snoozeReminder" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/tentativelyAccept", + "operationId": "users.user.calendar.events.event.tentativelyAccept", + "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.tentativelyAccept", + "legacyOperationId": "user.calendar.event_tentativelyAccept" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/$count", + "operationId": "users.calendar.events.GetCount-1a22", + "legacyPath": "/users/{user-id}/calendar/events/$count", + "legacyOperationId": "user.calendar.event_GetCount" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/delta()", + "operationId": "users.user.calendar.events.delta", + "legacyPath": "/users/{user-id}/calendar/events/microsoft.graph.delta()", + "legacyOperationId": "user.calendar.event_delta" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", + "operationId": "users.calendarGroups.GetCalendars", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", + "legacyOperationId": "user.calendarGroup_GetCalendar" + }, + { + "method": "PATCH", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", + "operationId": "users.calendarGroups.UpdateCalendars", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", + "legacyOperationId": "user.calendarGroup_UpdateCalendar" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", + "operationId": "users.calendarGroups.DeleteCalendars", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", + "legacyOperationId": "user.calendarGroup_DeleteCalendar" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions", + "operationId": "users.calendarGroups.calendars.ListCalendarPermissions", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions", + "legacyOperationId": "user.calendarGroup.calendar_ListCalendarPermission" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions", + "operationId": "users.calendarGroups.calendars.CreateCalendarPermissions", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions", + "legacyOperationId": "user.calendarGroup.calendar_CreateCalendarPermission" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", + "operationId": "users.calendarGroups.calendars.GetCalendarPermissions", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", + "legacyOperationId": "user.calendarGroup.calendar_GetCalendarPermission" + }, + { + "method": "PATCH", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", + "operationId": "users.calendarGroups.calendars.UpdateCalendarPermissions", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", + "legacyOperationId": "user.calendarGroup.calendar_UpdateCalendarPermission" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", + "operationId": "users.calendarGroups.calendars.DeleteCalendarPermissions", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", + "legacyOperationId": "user.calendarGroup.calendar_DeleteCalendarPermission" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/$count", + "operationId": "users.calendarGroups.calendars.calendarPermissions.GetCount-98a8", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/$count", + "legacyOperationId": "user.calendarGroup.calendar.calendarPermission_GetCount" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView", + "operationId": "users.calendarGroups.calendars.ListCalendarView", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView", + "legacyOperationId": "user.calendarGroup.calendar_ListCalendarView" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/delta()", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.calendarView.delta", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/microsoft.graph.delta()", + "legacyOperationId": "user.calendarGroup.calendar.calendarView_delta" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events", + "operationId": "users.calendarGroups.calendars.ListEvents", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events", + "legacyOperationId": "user.calendarGroup.calendar_ListEvent" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events", + "operationId": "users.calendarGroups.calendars.CreateEvents", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events", + "legacyOperationId": "user.calendarGroup.calendar_CreateEvent" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", + "operationId": "users.calendarGroups.calendars.GetEvents", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", + "legacyOperationId": "user.calendarGroup.calendar_GetEvent" + }, + { + "method": "PATCH", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", + "operationId": "users.calendarGroups.calendars.UpdateEvents", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", + "legacyOperationId": "user.calendarGroup.calendar_UpdateEvent" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", + "operationId": "users.calendarGroups.calendars.DeleteEvents", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", + "legacyOperationId": "user.calendarGroup.calendar_DeleteEvent" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments", + "operationId": "users.calendarGroups.calendars.events.ListAttachments", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments", + "legacyOperationId": "user.calendarGroup.calendar.event_ListAttachment" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments", + "operationId": "users.calendarGroups.calendars.events.CreateAttachments", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments", + "legacyOperationId": "user.calendarGroup.calendar.event_CreateAttachment" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", + "operationId": "users.calendarGroups.calendars.events.GetAttachments", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", + "legacyOperationId": "user.calendarGroup.calendar.event_GetAttachment" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", + "operationId": "users.calendarGroups.calendars.events.DeleteAttachments", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", + "legacyOperationId": "user.calendarGroup.calendar.event_DeleteAttachment" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/$count", + "operationId": "users.calendarGroups.calendars.events.attachments.GetCount-e742", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/$count", + "legacyOperationId": "user.calendarGroup.calendar.event.attachment_GetCount" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/createUploadSession", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.attachments.createUploadSession", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/microsoft.graph.createUploadSession", + "legacyOperationId": "user.calendarGroup.calendar.event.attachment_createUploadSession" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/calendar", + "operationId": "users.calendarGroups.calendars.events.GetCalendar", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/calendar", + "legacyOperationId": "user.calendarGroup.calendar.event_GetCalendar" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions", + "operationId": "users.calendarGroups.calendars.events.ListExtensions", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions", + "legacyOperationId": "user.calendarGroup.calendar.event_ListExtension" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions", + "operationId": "users.calendarGroups.calendars.events.CreateExtensions", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions", + "legacyOperationId": "user.calendarGroup.calendar.event_CreateExtension" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "operationId": "users.calendarGroups.calendars.events.GetExtensions", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "user.calendarGroup.calendar.event_GetExtension" + }, + { + "method": "PATCH", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "operationId": "users.calendarGroups.calendars.events.UpdateExtensions", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "user.calendarGroup.calendar.event_UpdateExtension" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "operationId": "users.calendarGroups.calendars.events.DeleteExtensions", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "user.calendarGroup.calendar.event_DeleteExtension" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/$count", + "operationId": "users.calendarGroups.calendars.events.extensions.GetCount-4cca", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/$count", + "legacyOperationId": "user.calendarGroup.calendar.event.extension_GetCount" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances", + "operationId": "users.calendarGroups.calendars.events.ListInstances", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances", + "legacyOperationId": "user.calendarGroup.calendar.event_ListInstance" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances/delta()", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.instances.delta", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances/microsoft.graph.delta()", + "legacyOperationId": "user.calendarGroup.calendar.event.instance_delta" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/accept", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.accept", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.accept", + "legacyOperationId": "user.calendarGroup.calendar.event_accept" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/cancel", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.cancel", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.cancel", + "legacyOperationId": "user.calendarGroup.calendar.event_cancel" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/decline", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.decline", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.decline", + "legacyOperationId": "user.calendarGroup.calendar.event_decline" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/dismissReminder", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.dismissReminder", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.dismissReminder", + "legacyOperationId": "user.calendarGroup.calendar.event_dismissReminder" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/forward", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.forward", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.forward", + "legacyOperationId": "user.calendarGroup.calendar.event_forward" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/permanentDelete", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.permanentDelete", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.permanentDelete", + "legacyOperationId": "user.calendarGroup.calendar.event_permanentDelete" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/snoozeReminder", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.snoozeReminder", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.snoozeReminder", + "legacyOperationId": "user.calendarGroup.calendar.event_snoozeReminder" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/tentativelyAccept", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.tentativelyAccept", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.tentativelyAccept", + "legacyOperationId": "user.calendarGroup.calendar.event_tentativelyAccept" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/$count", + "operationId": "users.calendarGroups.calendars.events.GetCount-f3ad", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/$count", + "legacyOperationId": "user.calendarGroup.calendar.event_GetCount" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/delta()", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.delta", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/microsoft.graph.delta()", + "legacyOperationId": "user.calendarGroup.calendar.event_delta" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/allowedCalendarSharingRoles(User='{User}')", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.allowedCalendarSharingRoles", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/microsoft.graph.allowedCalendarSharingRoles(User='{User}')", + "legacyOperationId": "user.calendarGroup.calendar_allowedCalendarSharingRole" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/getSchedule", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.getSchedule", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/microsoft.graph.getSchedule", + "legacyOperationId": "user.calendarGroup.calendar_getSchedule" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/permanentDelete", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.permanentDelete", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/microsoft.graph.permanentDelete", + "legacyOperationId": "user.calendarGroup.calendar_permanentDelete" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/$count", + "operationId": "users.calendarGroups.calendars.GetCount-8e45", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/$count", + "legacyOperationId": "user.calendarGroup.calendar_GetCount" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/delta()", + "operationId": "users.user.calendarGroups.calendarGroup.calendars.delta", + "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/microsoft.graph.delta()", + "legacyOperationId": "user.calendarGroup.calendar_delta" + }, + { + "method": "PATCH", + "path": "/users/{user-id}/calendars/{calendar-id}", + "operationId": "users.UpdateCalendars", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}", + "legacyOperationId": "user_UpdateCalendar" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendars/{calendar-id}", + "operationId": "users.DeleteCalendars", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}", + "legacyOperationId": "user_DeleteCalendar" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/calendarView/delta()", + "operationId": "users.user.calendars.calendar.calendarView.delta", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/calendarView/microsoft.graph.delta()", + "legacyOperationId": "user.calendar.calendarView_delta" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", + "operationId": "users.calendars.GetEvents", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", + "legacyOperationId": "user.calendar_GetEvent" + }, + { + "method": "PATCH", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", + "operationId": "users.calendars.UpdateEvents", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", + "legacyOperationId": "user.calendar_UpdateEvent" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", + "operationId": "users.calendars.DeleteEvents", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", + "legacyOperationId": "user.calendar_DeleteEvent" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments", + "operationId": "users.calendars.events.ListAttachments", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments", + "legacyOperationId": "user.calendar.event_ListAttachment" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments", + "operationId": "users.calendars.events.CreateAttachments", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments", + "legacyOperationId": "user.calendar.event_CreateAttachment" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", + "operationId": "users.calendars.events.GetAttachments", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", + "legacyOperationId": "user.calendar.event_GetAttachment" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", + "operationId": "users.calendars.events.DeleteAttachments", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", + "legacyOperationId": "user.calendar.event_DeleteAttachment" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/$count", + "operationId": "users.calendars.events.attachments.GetCount-8147", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/$count", + "legacyOperationId": "user.calendar.event.attachment_GetCount" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/createUploadSession", + "operationId": "users.user.calendars.calendar.events.event.attachments.createUploadSession", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/microsoft.graph.createUploadSession", + "legacyOperationId": "user.calendar.event.attachment_createUploadSession" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/calendar", + "operationId": "users.calendars.events.GetCalendar", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/calendar", + "legacyOperationId": "user.calendar.event_GetCalendar" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions", + "operationId": "users.calendars.events.ListExtensions", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions", + "legacyOperationId": "user.calendar.event_ListExtension" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions", + "operationId": "users.calendars.events.CreateExtensions", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions", + "legacyOperationId": "user.calendar.event_CreateExtension" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "operationId": "users.calendars.events.GetExtensions", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "user.calendar.event_GetExtension" + }, + { + "method": "PATCH", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "operationId": "users.calendars.events.UpdateExtensions", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "user.calendar.event_UpdateExtension" + }, + { + "method": "DELETE", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "operationId": "users.calendars.events.DeleteExtensions", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", + "legacyOperationId": "user.calendar.event_DeleteExtension" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/$count", + "operationId": "users.calendars.events.extensions.GetCount-b44d", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/$count", + "legacyOperationId": "user.calendar.event.extension_GetCount" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/instances", + "operationId": "users.calendars.events.ListInstances", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/instances", + "legacyOperationId": "user.calendar.event_ListInstance" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/instances/delta()", + "operationId": "users.user.calendars.calendar.events.event.instances.delta", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/instances/microsoft.graph.delta()", + "legacyOperationId": "user.calendar.event.instance_delta" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/accept", + "operationId": "users.user.calendars.calendar.events.event.accept", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.accept", + "legacyOperationId": "user.calendar.event_accept" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/cancel", + "operationId": "users.user.calendars.calendar.events.event.cancel", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.cancel", + "legacyOperationId": "user.calendar.event_cancel" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/decline", + "operationId": "users.user.calendars.calendar.events.event.decline", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.decline", + "legacyOperationId": "user.calendar.event_decline" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/dismissReminder", + "operationId": "users.user.calendars.calendar.events.event.dismissReminder", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.dismissReminder", + "legacyOperationId": "user.calendar.event_dismissReminder" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/forward", + "operationId": "users.user.calendars.calendar.events.event.forward", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.forward", + "legacyOperationId": "user.calendar.event_forward" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/permanentDelete", + "operationId": "users.user.calendars.calendar.events.event.permanentDelete", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.permanentDelete", + "legacyOperationId": "user.calendar.event_permanentDelete" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/snoozeReminder", + "operationId": "users.user.calendars.calendar.events.event.snoozeReminder", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.snoozeReminder", + "legacyOperationId": "user.calendar.event_snoozeReminder" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/tentativelyAccept", + "operationId": "users.user.calendars.calendar.events.event.tentativelyAccept", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.tentativelyAccept", + "legacyOperationId": "user.calendar.event_tentativelyAccept" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/$count", + "operationId": "users.calendars.events.GetCount-efc7", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/$count", + "legacyOperationId": "user.calendar.event_GetCount" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/delta()", + "operationId": "users.user.calendars.calendar.events.delta", + "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/microsoft.graph.delta()", + "legacyOperationId": "user.calendar.event_delta" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarView", + "operationId": "users.ListCalendarView", + "legacyPath": "/users/{user-id}/calendarView", + "legacyOperationId": "user_ListCalendarView" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendarView/delta()", + "operationId": "users.user.calendarView.delta", + "legacyPath": "/users/{user-id}/calendarView/microsoft.graph.delta()", + "legacyOperationId": "user.calendarView_delta" + } ] } } @@ -115,13 +2026,21 @@ "v1.0": { "absenceExpected": false, "operations": [ - { "method": "GET", "path": "/users/{user-id}/calendar/allowedCalendarSharingRoles(User='{User}')", "operationId": "users.user.calendar.allowedCalendarSharingRoles" } + { + "method": "GET", + "path": "/users/{user-id}/calendar/allowedCalendarSharingRoles(User='{User}')", + "operationId": "users.user.calendar.allowedCalendarSharingRoles" + } ] }, "beta": { "absenceExpected": false, "operations": [ - { "method": "GET", "path": "/users/{user-id}/calendar/allowedCalendarSharingRoles(User='{User}')", "operationId": "users.user.calendar.allowedCalendarSharingRoles" } + { + "method": "GET", + "path": "/users/{user-id}/calendar/allowedCalendarSharingRoles(User='{User}')", + "operationId": "users.user.calendar.allowedCalendarSharingRoles" + } ] } } @@ -137,13 +2056,21 @@ "v1.0": { "absenceExpected": false, "operations": [ - { "method": "GET", "path": "/users/{user-id}/calendar", "operationId": "users.GetCalendar" } + { + "method": "GET", + "path": "/users/{user-id}/calendar", + "operationId": "users.GetCalendar" + } ] }, "beta": { "absenceExpected": false, "operations": [ - { "method": "GET", "path": "/users/{user-id}/calendar", "operationId": "users.GetCalendar" } + { + "method": "GET", + "path": "/users/{user-id}/calendar", + "operationId": "users.GetCalendar" + } ] } } @@ -159,17 +2086,41 @@ "v1.0": { "absenceExpected": false, "operations": [ - { "method": "GET", "path": "/users/{user-id}/calendar/events", "operationId": "users.calendar.ListEvents" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events", "operationId": "users.calendar.CreateEvents" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/cancel", "operationId": "users.user.calendar.events.event.cancel" } + { + "method": "GET", + "path": "/users/{user-id}/calendar/events", + "operationId": "users.calendar.ListEvents" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events", + "operationId": "users.calendar.CreateEvents" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/cancel", + "operationId": "users.user.calendar.events.event.cancel" + } ] }, "beta": { "absenceExpected": false, "operations": [ - { "method": "GET", "path": "/users/{user-id}/calendar/events", "operationId": "users.calendar.ListEvents" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events", "operationId": "users.calendar.CreateEvents" }, - { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/cancel", "operationId": "users.user.calendar.events.event.cancel" } + { + "method": "GET", + "path": "/users/{user-id}/calendar/events", + "operationId": "users.calendar.ListEvents" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events", + "operationId": "users.calendar.CreateEvents" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendar/events/{event-id}/cancel", + "operationId": "users.user.calendar.events.event.cancel" + } ] } } @@ -185,15 +2136,31 @@ "v1.0": { "absenceExpected": false, "operations": [ - { "method": "POST", "path": "/users/{user-id}/calendar/getSchedule", "operationId": "users.user.calendar.getSchedule" }, - { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/getSchedule", "operationId": "users.user.calendars.calendar.getSchedule" } + { + "method": "POST", + "path": "/users/{user-id}/calendar/getSchedule", + "operationId": "users.user.calendar.getSchedule" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/getSchedule", + "operationId": "users.user.calendars.calendar.getSchedule" + } ] }, "beta": { "absenceExpected": false, "operations": [ - { "method": "POST", "path": "/users/{user-id}/calendar/getSchedule", "operationId": "users.user.calendar.getSchedule" }, - { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/getSchedule", "operationId": "users.user.calendars.calendar.getSchedule" } + { + "method": "POST", + "path": "/users/{user-id}/calendar/getSchedule", + "operationId": "users.user.calendar.getSchedule" + }, + { + "method": "POST", + "path": "/users/{user-id}/calendars/{calendar-id}/getSchedule", + "operationId": "users.user.calendars.calendar.getSchedule" + } ] } } @@ -209,18 +2176,38 @@ "v1.0": { "absenceExpected": false, "operations": [ - { "method": "GET", "path": "/users/{user-id}/calendar/events/delta()", "operationId": "users.user.calendar.events.delta" }, - { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/delta()", "operationId": "users.user.calendars.calendar.events.delta" } + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/delta()", + "operationId": "users.user.calendar.events.delta" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/delta()", + "operationId": "users.user.calendars.calendar.events.delta" + } ] }, "beta": { "absenceExpected": false, "operations": [ - { "method": "GET", "path": "/users/{user-id}/calendar/events/delta()", "operationId": "users.user.calendar.events.delta" }, - { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/delta()", "operationId": "users.user.calendars.calendar.events.delta" } + { + "method": "GET", + "path": "/users/{user-id}/calendar/events/delta()", + "operationId": "users.user.calendar.events.delta" + }, + { + "method": "GET", + "path": "/users/{user-id}/calendars/{calendar-id}/events/delta()", + "operationId": "users.user.calendars.calendar.events.delta" + } ] } } } - ] + ], + "legacySpecBlobs": { + "v1.0": "7103e6e3a02ff3a5b63e577910ea0863516b468c", + "beta": "8b01cbfc54946d1e5f49a760c43eb2b1663811dc" + } } diff --git a/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs b/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs index f05e0becfb1..1fbe2b9e084 100644 --- a/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs +++ b/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs @@ -19,6 +19,8 @@ public sealed class CalendarDirectiveMigrationTests private static readonly string RepoRoot = FindRepoRoot(); private static readonly Lazy V1 = new(() => ReadSpec("v1.0")); private static readonly Lazy Beta = new(() => ReadSpec("beta")); + private static readonly Lazy LegacyV1 = new(() => ReadSpec("v1.0", "openApiDocs")); + private static readonly Lazy LegacyBeta = new(() => ReadSpec("beta", "openApiDocs")); private const string SharingPath = "/users/{user-id}/calendar/allowedCalendarSharingRoles(User='{User}')"; [Theory] @@ -50,16 +52,50 @@ public void ReviewedLedgerMatchesEveryExactOperationAndOriginalSelector(string p var pattern = Regex.Match(source, @"(?m)^\s*- remove-path-by-operation: (.+)\r?$").Groups[1].Value.Trim(); var regex = new Regex(pattern); - var matched = spec.Paths.SelectMany(p => p.Value.Operations! + var legacy = LegacySpec(profile); + var legacyMap = directives[0].GetProperty("profiles").GetProperty(profile); + Assert.Equal("Legacy", legacyMap.GetProperty("operationIdSource").GetString()); + Assert.False(legacyMap.TryGetProperty("removedLegacyOperations", out _)); + var matched = legacy.Paths.SelectMany(p => p.Value.Operations! .Where(o => regex.IsMatch(o.Value.OperationId!)) .Select(o => $"{o.Key.Method.ToUpperInvariant()} {p.Key} [{o.Value.OperationId}]")) .OrderBy(x => x, StringComparer.Ordinal).ToArray(); - var reviewed = directives[0].GetProperty("profiles").GetProperty(profile).GetProperty("operations") - .EnumerateArray().Select(o => - $"{o.GetProperty("method").GetString()} {o.GetProperty("path").GetString()} [{o.GetProperty("operationId").GetString()}]") + var operations = legacyMap.GetProperty("operations").EnumerateArray().ToArray(); + var reviewed = operations.Select(o => + $"{o.GetProperty("method").GetString()} {o.GetProperty("legacyPath").GetString()} [{o.GetProperty("legacyOperationId").GetString()}]") .OrderBy(x => x, StringComparer.Ordinal).ToArray(); - Assert.Equal(26, matched.Length); + Assert.Equal(profile == "v1.0" ? 136 : 137, matched.Length); Assert.Equal(matched, reviewed); + var translatedCalls = 0; + foreach (var operation in operations) + { + var method = new HttpMethod(operation.GetProperty("method").GetString()!); + var oldPath = operation.GetProperty("legacyPath").GetString()!; + var path = operation.GetProperty("path").GetString()!; + var oldOperation = legacy.Paths[oldPath].Operations![method]; + Assert.Equal(operation.GetProperty("legacyOperationId").GetString(), oldOperation.OperationId); + if (CmdletConfigurator.NormalizePathTemplate(oldPath) != CmdletConfigurator.NormalizePathTemplate(path)) + { + var kind = OperationType(oldOperation); + Assert.True(kind is "action" or "function"); + Assert.Equal(kind, OperationType(spec.Paths[path].Operations![method])); + Assert.Equal(kind == "action" ? HttpMethod.Post : HttpMethod.Get, method); + var parts = oldPath.Split('/'); + Assert.StartsWith("microsoft.graph.", parts[^1]); + parts[^1] = parts[^1]["microsoft.graph.".Length..]; + Assert.Equal(CmdletConfigurator.NormalizePathTemplate(string.Join("/", parts)), + CmdletConfigurator.NormalizePathTemplate(path)); + translatedCalls++; + } + } + Assert.Equal(profile == "v1.0" ? 53 : 54, translatedCalls); + var currentLiteralMatches = spec.Paths.SelectMany(p => p.Value.Operations! + .Where(o => regex.IsMatch(o.Value.OperationId!)) + .Select(o => $"{o.Key.Method.ToUpperInvariant()} {p.Key} [{o.Value.OperationId}]")).ToArray(); + Assert.Equal(26, currentLiteralMatches.Length); + foreach (var literal in currentLiteralMatches) + Assert.Contains(operations, o => + $"{o.GetProperty("method").GetString()} {o.GetProperty("path").GetString()} [{o.GetProperty("operationId").GetString()}]" == literal); } [Theory] @@ -87,7 +123,11 @@ public void ReviewedSuppressionsWorkWithAndWithoutDerivedData(string profile, bo Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Post, "/users/{user-id}/events/{event-id}/cancel", config)); Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Post, "/groups/{group-id}/calendar/getSchedule", config)); Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Get, "/groups/{group-id}/calendar/events/{event-id}", config)); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Patch, "/groups/{group-id}/calendar/events/{event-id}", config)); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Delete, "/groups/{group-id}/calendar/events/{event-id}", config)); Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Post, "/groups/{group-id}/calendar/events", config)); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Get, "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars", config)); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Post, "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars", config)); } [Theory] @@ -128,15 +168,19 @@ public void SharingRoleRenameAlsoWorksWithoutAnyGeneratorConfiguration() [Theory] [InlineData("v1.0")] [InlineData("beta")] - public void AbsentLegacyBranchesAreNotFabricatedOrBroadened(string profile) + public void RenamedLegacyCrudOperationsAreNotMisclassifiedAsAbsent(string profile) { var spec = Spec(profile); Assert.DoesNotContain(spec.Paths.Keys, p => p.StartsWith("/users/{user-id}/events/{event-id}/calendar/", StringComparison.Ordinal) && p.Contains("allowedCalendarSharingRoles", StringComparison.Ordinal)); - var ids = spec.Paths.SelectMany(p => p.Value.Operations!.Values).Select(o => o.OperationId!).ToArray(); - Assert.DoesNotContain(ids, id => Regex.IsMatch(id, - @"(user|group)_(Update|Delete)Calendar$|user\.calendarGroup_(Get|Update|Delete)Calendar$|user\.calendarGroup\.calendar.*$|placeAsRoomList\.(room|workspace)_(Get|Update|Delete)GraphBPrePlaceId$")); + Assert.Equal("user_UpdateCalendar", LegacySpec(profile).Paths["/users/{user-id}/calendar"].Operations![HttpMethod.Patch].OperationId); + const string groupItem = "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}"; + Assert.Equal("user.calendarGroup_GetCalendar", LegacySpec(profile).Paths[groupItem].Operations![HttpMethod.Get].OperationId); + Assert.Equal("users.calendarGroups.GetCalendars", spec.Paths[groupItem].Operations![HttpMethod.Get].OperationId); + Assert.True(CmdletConfigurator.IsSuppressed(HttpMethod.Get, groupItem)); + Assert.True(CmdletConfigurator.IsSuppressed(HttpMethod.Get, + groupItem + "/allowedCalendarSharingRoles(User='{User}')")); Assert.Equal("users.UpdateCalendar", spec.Paths["/users/{user-id}/calendar"].Operations![HttpMethod.Patch].OperationId); Assert.Equal("users.calendar.GetEvents", spec.Paths["/users/{user-id}/calendar/events/{event-id}"].Operations![HttpMethod.Get].OperationId); Assert.True(CmdletConfigurator.IsSuppressed(HttpMethod.Patch, "/users/{user-id}/calendar")); @@ -219,10 +263,19 @@ public async Task TargetedGenerationUsesRealProfileOperationsAndPreservesNeighbo "/users/{user-id}/calendars/{calendar-id}/events/$count", "/users/{user-id}/calendars/{calendar-id}/permanentDelete", "/users/{user-id}/calendar/permanentDelete", + "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars", SharingPath, ]; foreach (var path in paths) subset.Paths.Add(path, source.Paths[path]); + using var ledger = ReadLedger(); + foreach (var operation in ledger.RootElement.GetProperty("mappings")[0] + .GetProperty("profiles").GetProperty(profile).GetProperty("operations").EnumerateArray()) + { + var path = operation.GetProperty("path").GetString()!; + if (!subset.Paths.ContainsKey(path)) + subset.Paths.Add(path, source.Paths[path]); + } var output = Path.Combine(Path.GetTempPath(), "calendar-directive-tests", Guid.NewGuid().ToString("N")); Directory.CreateDirectory(output); @@ -240,6 +293,11 @@ public async Task TargetedGenerationUsesRealProfileOperationsAndPreservesNeighbo Assert.Contains("GetMgGroupCalendarEvent.g.cs", files); Assert.Contains("GetMgGroupCalendarView.g.cs", files); Assert.Contains("GetMgUserCalendarView.g.cs", files); + Assert.Contains("GetMgUserCalendarGroupCalendar.g.cs", files); + Assert.Contains("NewMgUserCalendarGroupCalendar.g.cs", files); + Assert.DoesNotContain("GetMgUserCalendarGroupCalendar_Get.g.cs", files); + Assert.DoesNotContain("GetMgUserCalendarGroupCalendar_List.g.cs", files); + Assert.DoesNotContain(files, f => f!.Contains("CalendarGroupCalendarAllowedCalendarSharingRoles", StringComparison.Ordinal)); Assert.Contains(profile == "v1.0" ? "RemoveMgUserCalendarPermanent.g.cs" : "InvokeMgUserCalendarPermanentDelete.g.cs", files); Assert.DoesNotContain("GetMgUserCalendarEventCount.g.cs", files); Assert.DoesNotContain(files, f => f!.Contains("CalendarEventDelta", StringComparison.Ordinal)); @@ -259,11 +317,18 @@ private static CmdletNaming Resolve(HttpMethod method, string path, GeneratorCon private static OpenApiDocument Spec(string profile) => profile == "v1.0" ? V1.Value : Beta.Value; - private static OpenApiDocument ReadSpec(string profile) + private static OpenApiDocument LegacySpec(string profile) => profile == "v1.0" ? LegacyV1.Value : LegacyBeta.Value; + + private static string? OperationType(OpenApiOperation operation) => + operation.Extensions is not null + && operation.Extensions.TryGetValue("x-ms-docs-operation-type", out var extension) + && extension is JsonNodeExtension node ? node.Node?.ToString().Trim('"') : null; + + private static OpenApiDocument ReadSpec(string profile, string specRoot = "openApiDocs_KiotaCompat") { var settings = new OpenApiReaderSettings(); settings.AddYamlReader(); - using var stream = File.OpenRead(Path.Combine(RepoRoot, "openApiDocs_KiotaCompat", profile, "Calendar.yml")); + using var stream = File.OpenRead(Path.Combine(RepoRoot, specRoot, profile, "Calendar.yml")); var result = OpenApiDocument.LoadAsync(stream, settings: settings, cancellationToken: CancellationToken.None) .GetAwaiter().GetResult(); Assert.NotNull(result.Document); From c3d62203c5dbfb6dbcc6e624b5e3d2b4a965aecb Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Wed, 21 Oct 2026 18:27:52 -0700 Subject: [PATCH 07/24] Declare reviewed Calendar final-operation path translations Opt in exactly 53 v1.0 and 54 beta legacy operation records to UnqualifyFinalOperation; keep each profile other 83 same-path records unmarked. Pin the explicit marker alongside matching actual action/function metadata, HTTP method and unchanged parent evidence. Shared inventory validation remains dependent on central PR 3847. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../Calendar_directiveMigrationMap.json | 321 ++++++++++++------ .../CalendarDirectiveMigrationTests.cs | 5 + 2 files changed, 219 insertions(+), 107 deletions(-) diff --git a/src/Calendar/wrapper/Calendar_directiveMigrationMap.json b/src/Calendar/wrapper/Calendar_directiveMigrationMap.json index e0ba918fb94..ade801d3b5a 100644 --- a/src/Calendar/wrapper/Calendar_directiveMigrationMap.json +++ b/src/Calendar/wrapper/Calendar_directiveMigrationMap.json @@ -98,7 +98,8 @@ "path": "/groups/{group-id}/calendar/calendarView/delta()", "operationId": "groups.group.calendar.calendarView.delta", "legacyPath": "/groups/{group-id}/calendar/calendarView/microsoft.graph.delta()", - "legacyOperationId": "group.calendar.calendarView_delta" + "legacyOperationId": "group.calendar.calendarView_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -140,7 +141,8 @@ "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/createUploadSession", "operationId": "groups.group.calendar.events.event.attachments.createUploadSession", "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments/microsoft.graph.createUploadSession", - "legacyOperationId": "group.calendar.event.attachment_createUploadSession" + "legacyOperationId": "group.calendar.event.attachment_createUploadSession", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -203,63 +205,72 @@ "path": "/groups/{group-id}/calendar/events/{event-id}/instances/delta()", "operationId": "groups.group.calendar.events.event.instances.delta", "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/instances/microsoft.graph.delta()", - "legacyOperationId": "group.calendar.event.instance_delta" + "legacyOperationId": "group.calendar.event.instance_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/accept", "operationId": "groups.group.calendar.events.event.accept", "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.accept", - "legacyOperationId": "group.calendar.event_accept" + "legacyOperationId": "group.calendar.event_accept", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/cancel", "operationId": "groups.group.calendar.events.event.cancel", "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.cancel", - "legacyOperationId": "group.calendar.event_cancel" + "legacyOperationId": "group.calendar.event_cancel", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/decline", "operationId": "groups.group.calendar.events.event.decline", "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.decline", - "legacyOperationId": "group.calendar.event_decline" + "legacyOperationId": "group.calendar.event_decline", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/dismissReminder", "operationId": "groups.group.calendar.events.event.dismissReminder", "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.dismissReminder", - "legacyOperationId": "group.calendar.event_dismissReminder" + "legacyOperationId": "group.calendar.event_dismissReminder", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/forward", "operationId": "groups.group.calendar.events.event.forward", "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.forward", - "legacyOperationId": "group.calendar.event_forward" + "legacyOperationId": "group.calendar.event_forward", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/permanentDelete", "operationId": "groups.group.calendar.events.event.permanentDelete", "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.permanentDelete", - "legacyOperationId": "group.calendar.event_permanentDelete" + "legacyOperationId": "group.calendar.event_permanentDelete", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/snoozeReminder", "operationId": "groups.group.calendar.events.event.snoozeReminder", "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.snoozeReminder", - "legacyOperationId": "group.calendar.event_snoozeReminder" + "legacyOperationId": "group.calendar.event_snoozeReminder", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/tentativelyAccept", "operationId": "groups.group.calendar.events.event.tentativelyAccept", "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.tentativelyAccept", - "legacyOperationId": "group.calendar.event_tentativelyAccept" + "legacyOperationId": "group.calendar.event_tentativelyAccept", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -273,7 +284,8 @@ "path": "/groups/{group-id}/calendar/events/delta()", "operationId": "groups.group.calendar.events.delta", "legacyPath": "/groups/{group-id}/calendar/events/microsoft.graph.delta()", - "legacyOperationId": "group.calendar.event_delta" + "legacyOperationId": "group.calendar.event_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -287,7 +299,8 @@ "path": "/groups/{group-id}/calendarView/delta()", "operationId": "groups.group.calendarView.delta", "legacyPath": "/groups/{group-id}/calendarView/microsoft.graph.delta()", - "legacyOperationId": "group.calendarView_delta" + "legacyOperationId": "group.calendarView_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "PATCH", @@ -301,7 +314,8 @@ "path": "/users/{user-id}/calendar/calendarView/delta()", "operationId": "users.user.calendar.calendarView.delta", "legacyPath": "/users/{user-id}/calendar/calendarView/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.calendarView_delta" + "legacyOperationId": "user.calendar.calendarView_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -364,7 +378,8 @@ "path": "/users/{user-id}/calendar/events/{event-id}/attachments/createUploadSession", "operationId": "users.user.calendar.events.event.attachments.createUploadSession", "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments/microsoft.graph.createUploadSession", - "legacyOperationId": "user.calendar.event.attachment_createUploadSession" + "legacyOperationId": "user.calendar.event.attachment_createUploadSession", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -427,63 +442,72 @@ "path": "/users/{user-id}/calendar/events/{event-id}/instances/delta()", "operationId": "users.user.calendar.events.event.instances.delta", "legacyPath": "/users/{user-id}/calendar/events/{event-id}/instances/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.event.instance_delta" + "legacyOperationId": "user.calendar.event.instance_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/accept", "operationId": "users.user.calendar.events.event.accept", "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.accept", - "legacyOperationId": "user.calendar.event_accept" + "legacyOperationId": "user.calendar.event_accept", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/cancel", "operationId": "users.user.calendar.events.event.cancel", "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.cancel", - "legacyOperationId": "user.calendar.event_cancel" + "legacyOperationId": "user.calendar.event_cancel", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/decline", "operationId": "users.user.calendar.events.event.decline", "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.decline", - "legacyOperationId": "user.calendar.event_decline" + "legacyOperationId": "user.calendar.event_decline", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/dismissReminder", "operationId": "users.user.calendar.events.event.dismissReminder", "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.dismissReminder", - "legacyOperationId": "user.calendar.event_dismissReminder" + "legacyOperationId": "user.calendar.event_dismissReminder", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/forward", "operationId": "users.user.calendar.events.event.forward", "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.forward", - "legacyOperationId": "user.calendar.event_forward" + "legacyOperationId": "user.calendar.event_forward", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/permanentDelete", "operationId": "users.user.calendar.events.event.permanentDelete", "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.permanentDelete", - "legacyOperationId": "user.calendar.event_permanentDelete" + "legacyOperationId": "user.calendar.event_permanentDelete", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/snoozeReminder", "operationId": "users.user.calendar.events.event.snoozeReminder", "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.snoozeReminder", - "legacyOperationId": "user.calendar.event_snoozeReminder" + "legacyOperationId": "user.calendar.event_snoozeReminder", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/tentativelyAccept", "operationId": "users.user.calendar.events.event.tentativelyAccept", "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.tentativelyAccept", - "legacyOperationId": "user.calendar.event_tentativelyAccept" + "legacyOperationId": "user.calendar.event_tentativelyAccept", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -497,7 +521,8 @@ "path": "/users/{user-id}/calendar/events/delta()", "operationId": "users.user.calendar.events.delta", "legacyPath": "/users/{user-id}/calendar/events/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.event_delta" + "legacyOperationId": "user.calendar.event_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -574,7 +599,8 @@ "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/delta()", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.calendarView.delta", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/microsoft.graph.delta()", - "legacyOperationId": "user.calendarGroup.calendar.calendarView_delta" + "legacyOperationId": "user.calendarGroup.calendar.calendarView_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -651,7 +677,8 @@ "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/createUploadSession", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.attachments.createUploadSession", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/microsoft.graph.createUploadSession", - "legacyOperationId": "user.calendarGroup.calendar.event.attachment_createUploadSession" + "legacyOperationId": "user.calendarGroup.calendar.event.attachment_createUploadSession", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -714,63 +741,72 @@ "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances/delta()", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.instances.delta", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances/microsoft.graph.delta()", - "legacyOperationId": "user.calendarGroup.calendar.event.instance_delta" + "legacyOperationId": "user.calendarGroup.calendar.event.instance_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/accept", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.accept", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.accept", - "legacyOperationId": "user.calendarGroup.calendar.event_accept" + "legacyOperationId": "user.calendarGroup.calendar.event_accept", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/cancel", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.cancel", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.cancel", - "legacyOperationId": "user.calendarGroup.calendar.event_cancel" + "legacyOperationId": "user.calendarGroup.calendar.event_cancel", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/decline", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.decline", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.decline", - "legacyOperationId": "user.calendarGroup.calendar.event_decline" + "legacyOperationId": "user.calendarGroup.calendar.event_decline", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/dismissReminder", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.dismissReminder", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.dismissReminder", - "legacyOperationId": "user.calendarGroup.calendar.event_dismissReminder" + "legacyOperationId": "user.calendarGroup.calendar.event_dismissReminder", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/forward", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.forward", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.forward", - "legacyOperationId": "user.calendarGroup.calendar.event_forward" + "legacyOperationId": "user.calendarGroup.calendar.event_forward", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/permanentDelete", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.permanentDelete", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.permanentDelete", - "legacyOperationId": "user.calendarGroup.calendar.event_permanentDelete" + "legacyOperationId": "user.calendarGroup.calendar.event_permanentDelete", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/snoozeReminder", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.snoozeReminder", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.snoozeReminder", - "legacyOperationId": "user.calendarGroup.calendar.event_snoozeReminder" + "legacyOperationId": "user.calendarGroup.calendar.event_snoozeReminder", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/tentativelyAccept", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.tentativelyAccept", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.tentativelyAccept", - "legacyOperationId": "user.calendarGroup.calendar.event_tentativelyAccept" + "legacyOperationId": "user.calendarGroup.calendar.event_tentativelyAccept", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -784,28 +820,32 @@ "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/delta()", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.delta", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/microsoft.graph.delta()", - "legacyOperationId": "user.calendarGroup.calendar.event_delta" + "legacyOperationId": "user.calendarGroup.calendar.event_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/allowedCalendarSharingRoles(User='{User}')", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.allowedCalendarSharingRoles", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/microsoft.graph.allowedCalendarSharingRoles(User='{User}')", - "legacyOperationId": "user.calendarGroup.calendar_allowedCalendarSharingRole" + "legacyOperationId": "user.calendarGroup.calendar_allowedCalendarSharingRole", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/getSchedule", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.getSchedule", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/microsoft.graph.getSchedule", - "legacyOperationId": "user.calendarGroup.calendar_getSchedule" + "legacyOperationId": "user.calendarGroup.calendar_getSchedule", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/permanentDelete", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.permanentDelete", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/microsoft.graph.permanentDelete", - "legacyOperationId": "user.calendarGroup.calendar_permanentDelete" + "legacyOperationId": "user.calendarGroup.calendar_permanentDelete", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -833,7 +873,8 @@ "path": "/users/{user-id}/calendars/{calendar-id}/calendarView/delta()", "operationId": "users.user.calendars.calendar.calendarView.delta", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/calendarView/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.calendarView_delta" + "legacyOperationId": "user.calendar.calendarView_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -896,7 +937,8 @@ "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/createUploadSession", "operationId": "users.user.calendars.calendar.events.event.attachments.createUploadSession", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/microsoft.graph.createUploadSession", - "legacyOperationId": "user.calendar.event.attachment_createUploadSession" + "legacyOperationId": "user.calendar.event.attachment_createUploadSession", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -959,63 +1001,72 @@ "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/instances/delta()", "operationId": "users.user.calendars.calendar.events.event.instances.delta", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/instances/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.event.instance_delta" + "legacyOperationId": "user.calendar.event.instance_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/accept", "operationId": "users.user.calendars.calendar.events.event.accept", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.accept", - "legacyOperationId": "user.calendar.event_accept" + "legacyOperationId": "user.calendar.event_accept", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/cancel", "operationId": "users.user.calendars.calendar.events.event.cancel", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.cancel", - "legacyOperationId": "user.calendar.event_cancel" + "legacyOperationId": "user.calendar.event_cancel", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/decline", "operationId": "users.user.calendars.calendar.events.event.decline", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.decline", - "legacyOperationId": "user.calendar.event_decline" + "legacyOperationId": "user.calendar.event_decline", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/dismissReminder", "operationId": "users.user.calendars.calendar.events.event.dismissReminder", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.dismissReminder", - "legacyOperationId": "user.calendar.event_dismissReminder" + "legacyOperationId": "user.calendar.event_dismissReminder", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/forward", "operationId": "users.user.calendars.calendar.events.event.forward", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.forward", - "legacyOperationId": "user.calendar.event_forward" + "legacyOperationId": "user.calendar.event_forward", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/permanentDelete", "operationId": "users.user.calendars.calendar.events.event.permanentDelete", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.permanentDelete", - "legacyOperationId": "user.calendar.event_permanentDelete" + "legacyOperationId": "user.calendar.event_permanentDelete", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/snoozeReminder", "operationId": "users.user.calendars.calendar.events.event.snoozeReminder", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.snoozeReminder", - "legacyOperationId": "user.calendar.event_snoozeReminder" + "legacyOperationId": "user.calendar.event_snoozeReminder", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/tentativelyAccept", "operationId": "users.user.calendars.calendar.events.event.tentativelyAccept", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.tentativelyAccept", - "legacyOperationId": "user.calendar.event_tentativelyAccept" + "legacyOperationId": "user.calendar.event_tentativelyAccept", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -1029,7 +1080,8 @@ "path": "/users/{user-id}/calendars/{calendar-id}/events/delta()", "operationId": "users.user.calendars.calendar.events.delta", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.event_delta" + "legacyOperationId": "user.calendar.event_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -1043,7 +1095,8 @@ "path": "/users/{user-id}/calendarView/delta()", "operationId": "users.user.calendarView.delta", "legacyPath": "/users/{user-id}/calendarView/microsoft.graph.delta()", - "legacyOperationId": "user.calendarView_delta" + "legacyOperationId": "user.calendarView_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" } ] }, @@ -1057,7 +1110,8 @@ "path": "/groups/{group-id}/calendar/calendarView/delta()", "operationId": "groups.group.calendar.calendarView.delta", "legacyPath": "/groups/{group-id}/calendar/calendarView/microsoft.graph.delta()", - "legacyOperationId": "group.calendar.calendarView_delta" + "legacyOperationId": "group.calendar.calendarView_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -1099,7 +1153,8 @@ "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/createUploadSession", "operationId": "groups.group.calendar.events.event.attachments.createUploadSession", "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments/microsoft.graph.createUploadSession", - "legacyOperationId": "group.calendar.event.attachment_createUploadSession" + "legacyOperationId": "group.calendar.event.attachment_createUploadSession", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -1162,63 +1217,72 @@ "path": "/groups/{group-id}/calendar/events/{event-id}/instances/delta()", "operationId": "groups.group.calendar.events.event.instances.delta", "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/instances/microsoft.graph.delta()", - "legacyOperationId": "group.calendar.event.instance_delta" + "legacyOperationId": "group.calendar.event.instance_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/accept", "operationId": "groups.group.calendar.events.event.accept", "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.accept", - "legacyOperationId": "group.calendar.event_accept" + "legacyOperationId": "group.calendar.event_accept", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/cancel", "operationId": "groups.group.calendar.events.event.cancel", "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.cancel", - "legacyOperationId": "group.calendar.event_cancel" + "legacyOperationId": "group.calendar.event_cancel", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/decline", "operationId": "groups.group.calendar.events.event.decline", "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.decline", - "legacyOperationId": "group.calendar.event_decline" + "legacyOperationId": "group.calendar.event_decline", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/dismissReminder", "operationId": "groups.group.calendar.events.event.dismissReminder", "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.dismissReminder", - "legacyOperationId": "group.calendar.event_dismissReminder" + "legacyOperationId": "group.calendar.event_dismissReminder", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/forward", "operationId": "groups.group.calendar.events.event.forward", "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.forward", - "legacyOperationId": "group.calendar.event_forward" + "legacyOperationId": "group.calendar.event_forward", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/permanentDelete", "operationId": "groups.group.calendar.events.event.permanentDelete", "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.permanentDelete", - "legacyOperationId": "group.calendar.event_permanentDelete" + "legacyOperationId": "group.calendar.event_permanentDelete", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/snoozeReminder", "operationId": "groups.group.calendar.events.event.snoozeReminder", "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.snoozeReminder", - "legacyOperationId": "group.calendar.event_snoozeReminder" + "legacyOperationId": "group.calendar.event_snoozeReminder", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/tentativelyAccept", "operationId": "groups.group.calendar.events.event.tentativelyAccept", "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.tentativelyAccept", - "legacyOperationId": "group.calendar.event_tentativelyAccept" + "legacyOperationId": "group.calendar.event_tentativelyAccept", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -1232,7 +1296,8 @@ "path": "/groups/{group-id}/calendar/events/delta()", "operationId": "groups.group.calendar.events.delta", "legacyPath": "/groups/{group-id}/calendar/events/microsoft.graph.delta()", - "legacyOperationId": "group.calendar.event_delta" + "legacyOperationId": "group.calendar.event_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -1246,7 +1311,8 @@ "path": "/groups/{group-id}/calendarView/delta()", "operationId": "groups.group.calendarView.delta", "legacyPath": "/groups/{group-id}/calendarView/microsoft.graph.delta()", - "legacyOperationId": "group.calendarView_delta" + "legacyOperationId": "group.calendarView_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "PATCH", @@ -1260,7 +1326,8 @@ "path": "/users/{user-id}/calendar/calendarView/delta()", "operationId": "users.user.calendar.calendarView.delta", "legacyPath": "/users/{user-id}/calendar/calendarView/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.calendarView_delta" + "legacyOperationId": "user.calendar.calendarView_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -1323,7 +1390,8 @@ "path": "/users/{user-id}/calendar/events/{event-id}/attachments/createUploadSession", "operationId": "users.user.calendar.events.event.attachments.createUploadSession", "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments/microsoft.graph.createUploadSession", - "legacyOperationId": "user.calendar.event.attachment_createUploadSession" + "legacyOperationId": "user.calendar.event.attachment_createUploadSession", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -1386,63 +1454,72 @@ "path": "/users/{user-id}/calendar/events/{event-id}/instances/delta()", "operationId": "users.user.calendar.events.event.instances.delta", "legacyPath": "/users/{user-id}/calendar/events/{event-id}/instances/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.event.instance_delta" + "legacyOperationId": "user.calendar.event.instance_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/accept", "operationId": "users.user.calendar.events.event.accept", "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.accept", - "legacyOperationId": "user.calendar.event_accept" + "legacyOperationId": "user.calendar.event_accept", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/cancel", "operationId": "users.user.calendar.events.event.cancel", "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.cancel", - "legacyOperationId": "user.calendar.event_cancel" + "legacyOperationId": "user.calendar.event_cancel", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/decline", "operationId": "users.user.calendar.events.event.decline", "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.decline", - "legacyOperationId": "user.calendar.event_decline" + "legacyOperationId": "user.calendar.event_decline", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/dismissReminder", "operationId": "users.user.calendar.events.event.dismissReminder", "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.dismissReminder", - "legacyOperationId": "user.calendar.event_dismissReminder" + "legacyOperationId": "user.calendar.event_dismissReminder", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/forward", "operationId": "users.user.calendar.events.event.forward", "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.forward", - "legacyOperationId": "user.calendar.event_forward" + "legacyOperationId": "user.calendar.event_forward", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/permanentDelete", "operationId": "users.user.calendar.events.event.permanentDelete", "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.permanentDelete", - "legacyOperationId": "user.calendar.event_permanentDelete" + "legacyOperationId": "user.calendar.event_permanentDelete", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/snoozeReminder", "operationId": "users.user.calendar.events.event.snoozeReminder", "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.snoozeReminder", - "legacyOperationId": "user.calendar.event_snoozeReminder" + "legacyOperationId": "user.calendar.event_snoozeReminder", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/tentativelyAccept", "operationId": "users.user.calendar.events.event.tentativelyAccept", "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.tentativelyAccept", - "legacyOperationId": "user.calendar.event_tentativelyAccept" + "legacyOperationId": "user.calendar.event_tentativelyAccept", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -1456,7 +1533,8 @@ "path": "/users/{user-id}/calendar/events/delta()", "operationId": "users.user.calendar.events.delta", "legacyPath": "/users/{user-id}/calendar/events/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.event_delta" + "legacyOperationId": "user.calendar.event_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -1533,7 +1611,8 @@ "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/delta()", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.calendarView.delta", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/microsoft.graph.delta()", - "legacyOperationId": "user.calendarGroup.calendar.calendarView_delta" + "legacyOperationId": "user.calendarGroup.calendar.calendarView_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -1610,7 +1689,8 @@ "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/createUploadSession", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.attachments.createUploadSession", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/microsoft.graph.createUploadSession", - "legacyOperationId": "user.calendarGroup.calendar.event.attachment_createUploadSession" + "legacyOperationId": "user.calendarGroup.calendar.event.attachment_createUploadSession", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -1673,63 +1753,72 @@ "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances/delta()", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.instances.delta", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances/microsoft.graph.delta()", - "legacyOperationId": "user.calendarGroup.calendar.event.instance_delta" + "legacyOperationId": "user.calendarGroup.calendar.event.instance_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/accept", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.accept", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.accept", - "legacyOperationId": "user.calendarGroup.calendar.event_accept" + "legacyOperationId": "user.calendarGroup.calendar.event_accept", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/cancel", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.cancel", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.cancel", - "legacyOperationId": "user.calendarGroup.calendar.event_cancel" + "legacyOperationId": "user.calendarGroup.calendar.event_cancel", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/decline", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.decline", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.decline", - "legacyOperationId": "user.calendarGroup.calendar.event_decline" + "legacyOperationId": "user.calendarGroup.calendar.event_decline", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/dismissReminder", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.dismissReminder", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.dismissReminder", - "legacyOperationId": "user.calendarGroup.calendar.event_dismissReminder" + "legacyOperationId": "user.calendarGroup.calendar.event_dismissReminder", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/forward", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.forward", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.forward", - "legacyOperationId": "user.calendarGroup.calendar.event_forward" + "legacyOperationId": "user.calendarGroup.calendar.event_forward", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/permanentDelete", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.permanentDelete", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.permanentDelete", - "legacyOperationId": "user.calendarGroup.calendar.event_permanentDelete" + "legacyOperationId": "user.calendarGroup.calendar.event_permanentDelete", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/snoozeReminder", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.snoozeReminder", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.snoozeReminder", - "legacyOperationId": "user.calendarGroup.calendar.event_snoozeReminder" + "legacyOperationId": "user.calendarGroup.calendar.event_snoozeReminder", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/tentativelyAccept", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.tentativelyAccept", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.tentativelyAccept", - "legacyOperationId": "user.calendarGroup.calendar.event_tentativelyAccept" + "legacyOperationId": "user.calendarGroup.calendar.event_tentativelyAccept", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -1743,28 +1832,32 @@ "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/delta()", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.delta", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/microsoft.graph.delta()", - "legacyOperationId": "user.calendarGroup.calendar.event_delta" + "legacyOperationId": "user.calendarGroup.calendar.event_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/allowedCalendarSharingRoles(User='{User}')", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.allowedCalendarSharingRoles", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/microsoft.graph.allowedCalendarSharingRoles(User='{User}')", - "legacyOperationId": "user.calendarGroup.calendar_allowedCalendarSharingRole" + "legacyOperationId": "user.calendarGroup.calendar_allowedCalendarSharingRole", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/getSchedule", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.getSchedule", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/microsoft.graph.getSchedule", - "legacyOperationId": "user.calendarGroup.calendar_getSchedule" + "legacyOperationId": "user.calendarGroup.calendar_getSchedule", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/permanentDelete", "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.permanentDelete", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/microsoft.graph.permanentDelete", - "legacyOperationId": "user.calendarGroup.calendar_permanentDelete" + "legacyOperationId": "user.calendarGroup.calendar_permanentDelete", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -1778,7 +1871,8 @@ "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/delta()", "operationId": "users.user.calendarGroups.calendarGroup.calendars.delta", "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/microsoft.graph.delta()", - "legacyOperationId": "user.calendarGroup.calendar_delta" + "legacyOperationId": "user.calendarGroup.calendar_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "PATCH", @@ -1799,7 +1893,8 @@ "path": "/users/{user-id}/calendars/{calendar-id}/calendarView/delta()", "operationId": "users.user.calendars.calendar.calendarView.delta", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/calendarView/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.calendarView_delta" + "legacyOperationId": "user.calendar.calendarView_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -1862,7 +1957,8 @@ "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/createUploadSession", "operationId": "users.user.calendars.calendar.events.event.attachments.createUploadSession", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/microsoft.graph.createUploadSession", - "legacyOperationId": "user.calendar.event.attachment_createUploadSession" + "legacyOperationId": "user.calendar.event.attachment_createUploadSession", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -1925,63 +2021,72 @@ "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/instances/delta()", "operationId": "users.user.calendars.calendar.events.event.instances.delta", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/instances/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.event.instance_delta" + "legacyOperationId": "user.calendar.event.instance_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/accept", "operationId": "users.user.calendars.calendar.events.event.accept", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.accept", - "legacyOperationId": "user.calendar.event_accept" + "legacyOperationId": "user.calendar.event_accept", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/cancel", "operationId": "users.user.calendars.calendar.events.event.cancel", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.cancel", - "legacyOperationId": "user.calendar.event_cancel" + "legacyOperationId": "user.calendar.event_cancel", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/decline", "operationId": "users.user.calendars.calendar.events.event.decline", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.decline", - "legacyOperationId": "user.calendar.event_decline" + "legacyOperationId": "user.calendar.event_decline", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/dismissReminder", "operationId": "users.user.calendars.calendar.events.event.dismissReminder", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.dismissReminder", - "legacyOperationId": "user.calendar.event_dismissReminder" + "legacyOperationId": "user.calendar.event_dismissReminder", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/forward", "operationId": "users.user.calendars.calendar.events.event.forward", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.forward", - "legacyOperationId": "user.calendar.event_forward" + "legacyOperationId": "user.calendar.event_forward", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/permanentDelete", "operationId": "users.user.calendars.calendar.events.event.permanentDelete", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.permanentDelete", - "legacyOperationId": "user.calendar.event_permanentDelete" + "legacyOperationId": "user.calendar.event_permanentDelete", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/snoozeReminder", "operationId": "users.user.calendars.calendar.events.event.snoozeReminder", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.snoozeReminder", - "legacyOperationId": "user.calendar.event_snoozeReminder" + "legacyOperationId": "user.calendar.event_snoozeReminder", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/tentativelyAccept", "operationId": "users.user.calendars.calendar.events.event.tentativelyAccept", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.tentativelyAccept", - "legacyOperationId": "user.calendar.event_tentativelyAccept" + "legacyOperationId": "user.calendar.event_tentativelyAccept", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -1995,7 +2100,8 @@ "path": "/users/{user-id}/calendars/{calendar-id}/events/delta()", "operationId": "users.user.calendars.calendar.events.delta", "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.event_delta" + "legacyOperationId": "user.calendar.event_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" }, { "method": "GET", @@ -2009,7 +2115,8 @@ "path": "/users/{user-id}/calendarView/delta()", "operationId": "users.user.calendarView.delta", "legacyPath": "/users/{user-id}/calendarView/microsoft.graph.delta()", - "legacyOperationId": "user.calendarView_delta" + "legacyOperationId": "user.calendarView_delta", + "legacyPathTranslation": "UnqualifyFinalOperation" } ] } diff --git a/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs b/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs index 1fbe2b9e084..8e619e9f74d 100644 --- a/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs +++ b/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs @@ -76,6 +76,7 @@ public void ReviewedLedgerMatchesEveryExactOperationAndOriginalSelector(string p Assert.Equal(operation.GetProperty("legacyOperationId").GetString(), oldOperation.OperationId); if (CmdletConfigurator.NormalizePathTemplate(oldPath) != CmdletConfigurator.NormalizePathTemplate(path)) { + Assert.Equal("UnqualifyFinalOperation", operation.GetProperty("legacyPathTranslation").GetString()); var kind = OperationType(oldOperation); Assert.True(kind is "action" or "function"); Assert.Equal(kind, OperationType(spec.Paths[path].Operations![method])); @@ -87,6 +88,10 @@ public void ReviewedLedgerMatchesEveryExactOperationAndOriginalSelector(string p CmdletConfigurator.NormalizePathTemplate(path)); translatedCalls++; } + else + { + Assert.False(operation.TryGetProperty("legacyPathTranslation", out _)); + } } Assert.Equal(profile == "v1.0" ? 53 : 54, translatedCalls); var currentLiteralMatches = spec.Paths.SelectMany(p => p.Value.Operations! From 4b2c76c43c93b251375f3f90aaa6482ba062dfb7 Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Wed, 21 Oct 2026 19:07:26 -0700 Subject: [PATCH 08/24] Regenerate Calendar v1.0 with complete legacy directive coverage Run the authorized queued full Kiota 1.36.1 and wrapper Release build with official Authentication 2.38.1 against the unchanged compatible v1.0 spec. Verify all 136 translated legacy suppressions, required Invoke/default-calendar names and retained neighbors against the freshly imported 268-command module. Client, generated projects and locks regenerate unchanged; commit the changed cmdlet output together as this profile generation boundary. Prior incomplete 271-export build evidence is preserved in session artifacts. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../GetMgUserCalendarGroupCalendar.g.cs | 131 +++++++++++----- ...arAllowedCalendarSharingRolesWithUser.g.cs | 100 ------------ .../GetMgUserCalendarGroupCalendar_Get.g.cs | 69 --------- .../GetMgUserCalendarGroupCalendar_List.g.cs | 144 ------------------ 4 files changed, 90 insertions(+), 354 deletions(-) delete mode 100644 src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs delete mode 100644 src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar_Get.g.cs delete mode 100644 src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar_List.g.cs diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs index eebf900b67f..ff3d3865aa3 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs @@ -2,27 +2,31 @@ using System; using System.Management.Automation; -using System.Management.Automation.Runspaces; +using System.Net.Http; using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; namespace Microsoft.Graph.PowerShell.Calendar { [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendar", DefaultParameterSetName = "List")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarCollectionResponse), ParameterSetName = new[] { "List" })] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar), ParameterSetName = new[] { "Get" })] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendar")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] public class GetMgUserCalendarGroupCalendarCommand : GraphClientCmdlet { [Parameter(Mandatory = true, Position = 0)] public string UserId { get; set; } = string.Empty; [Parameter(Mandatory = true, Position = 1)] public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] - public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } @@ -31,63 +35,108 @@ public class GetMgUserCalendarGroupCalendarCommand : GraphClientCmdlet [Alias("Expand")] public string[]? ExpandProperty { get; set; } - [Parameter(Mandatory = false, ParameterSetName = "List")] - public string? Filter { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "List")] + [Parameter(Mandatory = false)] [Alias("OrderBy")] public string[]? Sort { get; set; } - [Parameter(Mandatory = false, ParameterSetName = "List")] + [Parameter(Mandatory = false)] public string? Search { get; set; } - [Parameter(Mandatory = false, ParameterSetName = "List")] + [Parameter(Mandatory = false)] public int Top { get; set; } - [Parameter(Mandatory = false, ParameterSetName = "List")] + [Parameter(Mandatory = false)] public int Skip { get; set; } - [Parameter(Mandatory = false, ParameterSetName = "List")] + [Parameter(Mandatory = false)] 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")] + // 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; } - - - // Delegates to Get-MgUserCalendarGroupCalendar_Get or Get-MgUserCalendarGroupCalendar_List, the two cmdlets - // that actually call Graph. protected override void ProcessRecord() { - var internalCmdletName = ParameterSetName == "Get" ? "Get-MgUserCalendarGroupCalendar_Get" : "Get-MgUserCalendarGroupCalendar_List"; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarCollectionResponse? result; 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; + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars.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].CalendarGroups[CalendarGroupId].Calendars.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, ParameterSetName == "Get" ? CalendarId : CalendarGroupId); + ThrowGraphRequestFailed(ex, CalendarGroupId); return; } } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs deleted file mode 100644 index 727bc2b47cc..00000000000 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs +++ /dev/null @@ -1,100 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/allowedCalendarSharingRoles(User='{User}')")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUser")] - [OutputType(typeof(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse))] - public class GetMgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUserCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - - [Parameter(Mandatory = true, Position = 3, - HelpMessage = "Value for the 'User' parameter of this OData function.")] - public string User { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public string? Filter { 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! }, - { "user%2Did", UserId }, - { "calendarGroup%2Did", CalendarGroupId }, - { "calendar%2Did", CalendarId }, - { "User", User }, - }; - var requestBuilder = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder(pathParameters, requestAdapter); - - global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse? result; - try - { - result = requestBuilder.GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(requestConfiguration => - { - if (this.IsParameterBound(nameof(Filter))) - requestConfiguration.QueryParameters.Filter = Filter; - - 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, CalendarId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar_Get.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar_Get.g.cs deleted file mode 100644 index 3d6237a8002..00000000000 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar_Get.g.cs +++ /dev/null @@ -1,69 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendar_Get")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] - public class GetMgUserCalendarGroupCalendar_GetCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { 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.Calendar.Client.Models.Calendar? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].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, CalendarId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar_List.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar_List.g.cs deleted file mode 100644 index a8f108c70bb..00000000000 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar_List.g.cs +++ /dev/null @@ -1,144 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendar_List")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] - public class GetMgUserCalendarGroupCalendar_ListCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { 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.Calendar.Client.Models.CalendarCollectionResponse? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars.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].CalendarGroups[CalendarGroupId].Calendars.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, CalendarGroupId); - return; - } - } - } -} From 97694513e735d3b246619e4df3560748c639153c Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Wed, 21 Oct 2026 19:10:51 -0700 Subject: [PATCH 09/24] Regenerate Calendar beta with complete legacy directive coverage Run the authorized queued full Kiota 1.36.1 and wrapper Release build with official Authentication 2.38.1 against the unchanged compatible beta spec. Verify all 137 translated legacy suppressions, required Invoke/default-calendar names and retained neighbors against the freshly imported 312-command module. Client, generated projects and locks regenerate unchanged; commit the changed cmdlets as one combined beta generation boundary. Prior incomplete 382-export evidence is preserved separately. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../GetMgGroupCalendarEventAttachment.g.cs | 95 ----- ...etMgGroupCalendarEventAttachmentCount.g.cs | 64 ---- ...GetMgGroupCalendarEventAttachment_Get.g.cs | 69 ---- ...etMgGroupCalendarEventAttachment_List.g.cs | 144 -------- .../GetMgGroupCalendarEventCalendar.g.cs | 67 ---- .../Cmdlets/GetMgGroupCalendarEventCount.g.cs | 62 ---- .../GetMgGroupCalendarEventExtension.g.cs | 95 ----- ...GetMgGroupCalendarEventExtensionCount.g.cs | 64 ---- .../GetMgGroupCalendarEventExtension_Get.g.cs | 69 ---- ...GetMgGroupCalendarEventExtension_List.g.cs | 144 -------- .../GetMgGroupCalendarEventInstance.g.cs | 144 -------- .../GetMgUserCalendarGroupCalendar.g.cs | 131 ++++--- ...arAllowedCalendarSharingRolesWithUser.g.cs | 100 ------ .../GetMgUserCalendarGroupCalendarCount.g.cs | 64 ---- .../GetMgUserCalendarGroupCalendarDelta.g.cs | 179 ---------- .../GetMgUserCalendarGroupCalendarEvent.g.cs | 97 ----- ...rCalendarGroupCalendarEventAttachment.g.cs | 99 ------ ...ndarGroupCalendarEventAttachmentCount.g.cs | 68 ---- ...endarGroupCalendarEventAttachment_Get.g.cs | 73 ---- ...ndarGroupCalendarEventAttachment_List.g.cs | 148 -------- ...serCalendarGroupCalendarEventCalendar.g.cs | 71 ---- ...MgUserCalendarGroupCalendarEventCount.g.cs | 66 ---- ...MgUserCalendarGroupCalendarEventDelta.g.cs | 181 ---------- ...erCalendarGroupCalendarEventExtension.g.cs | 99 ------ ...endarGroupCalendarEventExtensionCount.g.cs | 68 ---- ...lendarGroupCalendarEventExtension_Get.g.cs | 73 ---- ...endarGroupCalendarEventExtension_List.g.cs | 148 -------- ...serCalendarGroupCalendarEventInstance.g.cs | 148 -------- ...lendarGroupCalendarEventInstanceDelta.g.cs | 183 ---------- ...tMgUserCalendarGroupCalendarEvent_Get.g.cs | 71 ---- ...MgUserCalendarGroupCalendarEvent_List.g.cs | 146 -------- ...MgUserCalendarGroupCalendarPermission.g.cs | 97 ----- ...rCalendarGroupCalendarPermissionCount.g.cs | 66 ---- ...erCalendarGroupCalendarPermission_Get.g.cs | 71 ---- ...rCalendarGroupCalendarPermission_List.g.cs | 146 -------- .../GetMgUserCalendarGroupCalendarView.g.cs | 146 -------- ...tMgUserCalendarGroupCalendarViewDelta.g.cs | 181 ---------- .../GetMgUserCalendarGroupCalendar_Get.g.cs | 69 ---- .../GetMgUserCalendarGroupCalendar_List.g.cs | 144 -------- .../Cmdlets/GetMgUserCalendarViewDelta.g.cs | 179 ---------- ...gUserCalendarGroupCalendarEventAccept.g.cs | 77 ---- ...darEventAttachmentCreateUploadSession.g.cs | 71 ---- ...gUserCalendarGroupCalendarEventCancel.g.cs | 71 ---- ...UserCalendarGroupCalendarEventDecline.g.cs | 81 ----- ...ndarGroupCalendarEventDismissReminder.g.cs | 65 ---- ...UserCalendarGroupCalendarEventForward.g.cs | 75 ---- ...ndarGroupCalendarEventPermanentDelete.g.cs | 65 ---- ...endarGroupCalendarEventSnoozeReminder.g.cs | 71 ---- ...arGroupCalendarEventTentativelyAccept.g.cs | 81 ----- ...gUserCalendarGroupCalendarGetSchedule.g.cs | 85 ----- ...rCalendarGroupCalendarPermanentDelete.g.cs | 63 ---- .../NewMgGroupCalendarEventAttachment.g.cs | 91 ----- .../NewMgGroupCalendarEventExtension.g.cs | 63 ---- .../NewMgUserCalendarGroupCalendarEvent.g.cs | 319 ----------------- ...rCalendarGroupCalendarEventAttachment.g.cs | 95 ----- ...erCalendarGroupCalendarEventExtension.g.cs | 67 ---- ...MgUserCalendarGroupCalendarPermission.g.cs | 91 ----- .../RemoveMgGroupCalendarEventAttachment.g.cs | 60 ---- .../RemoveMgGroupCalendarEventExtension.g.cs | 60 ---- .../beta/Cmdlets/RemoveMgUserCalendar.g.cs | 58 --- .../RemoveMgUserCalendarGroupCalendar.g.cs | 60 ---- ...emoveMgUserCalendarGroupCalendarEvent.g.cs | 62 ---- ...rCalendarGroupCalendarEventAttachment.g.cs | 64 ---- ...erCalendarGroupCalendarEventExtension.g.cs | 64 ---- ...MgUserCalendarGroupCalendarPermission.g.cs | 62 ---- .../UpdateMgGroupCalendarEventExtension.g.cs | 80 ----- .../beta/Cmdlets/UpdateMgUserCalendar.g.cs | 170 --------- .../UpdateMgUserCalendarGroupCalendar.g.cs | 172 --------- ...pdateMgUserCalendarGroupCalendarEvent.g.cs | 336 ------------------ ...erCalendarGroupCalendarEventExtension.g.cs | 84 ----- ...MgUserCalendarGroupCalendarPermission.g.cs | 108 ------ 71 files changed, 90 insertions(+), 7210 deletions(-) delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachmentCount.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment_Get.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment_List.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventCalendar.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventCount.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtensionCount.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension_Get.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension_List.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventInstance.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarCount.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarDelta.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachmentCount.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment_Get.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment_List.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventCalendar.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventCount.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventDelta.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtensionCount.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension_Get.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension_List.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventInstance.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventInstanceDelta.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent_Get.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent_List.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermissionCount.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission_Get.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission_List.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarView.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarViewDelta.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar_Get.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar_List.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarViewDelta.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventAccept.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventAttachmentCreateUploadSession.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventCancel.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventDecline.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventDismissReminder.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventForward.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventPermanentDelete.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventSnoozeReminder.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventTentativelyAccept.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarGetSchedule.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarPermanentDelete.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEventAttachment.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEventExtension.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEvent.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEventAttachment.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEventExtension.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarPermission.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEventAttachment.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEventExtension.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendar.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendar.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEvent.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEventAttachment.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEventExtension.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarPermission.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarEventExtension.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendar.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendar.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarEvent.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarEventExtension.g.cs delete mode 100644 src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarPermission.g.cs diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment.g.cs deleted file mode 100644 index 72f41d90549..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment.g.cs +++ /dev/null @@ -1,95 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Management.Automation.Runspaces; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/groups/{group-id}/calendar/events/{event-id}/attachments")] - [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventAttachment", DefaultParameterSetName = "List")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentCollectionResponse), ParameterSetName = new[] { "List" })] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment), ParameterSetName = new[] { "Get" })] - public class GetMgGroupCalendarEventAttachmentCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string GroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string EventId { get; set; } = string.Empty; - [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] - public string AttachmentId { 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-MgGroupCalendarEventAttachment_Get or Get-MgGroupCalendarEventAttachment_List, the two cmdlets - // that actually call Graph. - protected override void ProcessRecord() - { - var internalCmdletName = ParameterSetName == "Get" ? "Get-MgGroupCalendarEventAttachment_Get" : "Get-MgGroupCalendarEventAttachment_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" ? AttachmentId : EventId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachmentCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachmentCount.g.cs deleted file mode 100644 index b7e64aa36cf..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachmentCount.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.Calendar.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/groups/{group-id}/calendar/events/{event-id}/attachments/$count")] - [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventAttachmentCount")] - [OutputType(typeof(int))] - public class GetMgGroupCalendarEventAttachmentCountCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string GroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string EventId { 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.Groups[GroupId].Calendar.Events[EventId].Attachments.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, EventId); - return; - } - - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment_Get.g.cs deleted file mode 100644 index 50c9a61239b..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment_Get.g.cs +++ /dev/null @@ -1,69 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/groups/{group-id}/calendar/events/{event-id}/attachments/{attachment-id}")] - [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventAttachment_Get")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment))] - public class GetMgGroupCalendarEventAttachment_GetCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string GroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string EventId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string AttachmentId { 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.Calendar.Client.Models.Attachment? result; - try - { - result = client.Groups[GroupId].Calendar.Events[EventId].Attachments[AttachmentId].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, AttachmentId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment_List.g.cs deleted file mode 100644 index b5b52cbe29c..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventAttachment_List.g.cs +++ /dev/null @@ -1,144 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/groups/{group-id}/calendar/events/{event-id}/attachments")] - [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventAttachment_List")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment))] - public class GetMgGroupCalendarEventAttachment_ListCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string GroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string EventId { 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.Calendar.Client.Models.AttachmentCollectionResponse? result; - try - { - result = client.Groups[GroupId].Calendar.Events[EventId].Attachments.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.Groups[GroupId].Calendar.Events[EventId].Attachments.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, EventId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventCalendar.g.cs deleted file mode 100644 index 68fb501aeed..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventCalendar.g.cs +++ /dev/null @@ -1,67 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/groups/{group-id}/calendar/events/{event-id}/calendar")] - [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventCalendar")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] - public class GetMgGroupCalendarEventCalendarCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string GroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string EventId { 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.Calendar.Client.Models.Calendar? result; - try - { - result = client.Groups[GroupId].Calendar.Events[EventId].Calendar.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, EventId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventCount.g.cs deleted file mode 100644 index 2b8c9a0c6ad..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventCount.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.Calendar.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/groups/{group-id}/calendar/events/$count")] - [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventCount")] - [OutputType(typeof(int))] - public class GetMgGroupCalendarEventCountCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string GroupId { 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.Groups[GroupId].Calendar.Events.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, GroupId); - return; - } - - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension.g.cs deleted file mode 100644 index 75412788517..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension.g.cs +++ /dev/null @@ -1,95 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Management.Automation.Runspaces; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/groups/{group-id}/calendar/events/{event-id}/extensions")] - [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventExtension", DefaultParameterSetName = "List")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.ExtensionCollectionResponse), ParameterSetName = new[] { "List" })] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension), ParameterSetName = new[] { "Get" })] - public class GetMgGroupCalendarEventExtensionCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string GroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string EventId { get; set; } = string.Empty; - [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] - public string ExtensionId { 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-MgGroupCalendarEventExtension_Get or Get-MgGroupCalendarEventExtension_List, the two cmdlets - // that actually call Graph. - protected override void ProcessRecord() - { - var internalCmdletName = ParameterSetName == "Get" ? "Get-MgGroupCalendarEventExtension_Get" : "Get-MgGroupCalendarEventExtension_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" ? ExtensionId : EventId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtensionCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtensionCount.g.cs deleted file mode 100644 index bca5e733c36..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtensionCount.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.Calendar.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/groups/{group-id}/calendar/events/{event-id}/extensions/$count")] - [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventExtensionCount")] - [OutputType(typeof(int))] - public class GetMgGroupCalendarEventExtensionCountCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string GroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string EventId { 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.Groups[GroupId].Calendar.Events[EventId].Extensions.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, EventId); - return; - } - - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension_Get.g.cs deleted file mode 100644 index 8c51b0d9ceb..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension_Get.g.cs +++ /dev/null @@ -1,69 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}")] - [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventExtension_Get")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] - public class GetMgGroupCalendarEventExtension_GetCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string GroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string EventId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string ExtensionId { 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.Calendar.Client.Models.Extension? result; - try - { - result = client.Groups[GroupId].Calendar.Events[EventId].Extensions[ExtensionId].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, ExtensionId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension_List.g.cs deleted file mode 100644 index 4c44e296f6e..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventExtension_List.g.cs +++ /dev/null @@ -1,144 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/groups/{group-id}/calendar/events/{event-id}/extensions")] - [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventExtension_List")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] - public class GetMgGroupCalendarEventExtension_ListCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string GroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string EventId { 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.Calendar.Client.Models.ExtensionCollectionResponse? result; - try - { - result = client.Groups[GroupId].Calendar.Events[EventId].Extensions.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.Groups[GroupId].Calendar.Events[EventId].Extensions.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, EventId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventInstance.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventInstance.g.cs deleted file mode 100644 index e33d72fe031..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEventInstance.g.cs +++ /dev/null @@ -1,144 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/groups/{group-id}/calendar/events/{event-id}/instances")] - [Cmdlet(VerbsCommon.Get, "MgGroupCalendarEventInstance")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] - public class GetMgGroupCalendarEventInstanceCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string GroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string EventId { 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.Calendar.Client.Models.EventCollectionResponse? result; - try - { - result = client.Groups[GroupId].Calendar.Events[EventId].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.Groups[GroupId].Calendar.Events[EventId].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, EventId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs index eebf900b67f..ff3d3865aa3 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs @@ -2,27 +2,31 @@ using System; using System.Management.Automation; -using System.Management.Automation.Runspaces; +using System.Net.Http; using Microsoft.Graph.Wrapper.Runtime; +using Microsoft.Graph.PowerShell.Calendar.Client; using Microsoft.Graph.PowerShell.Calendar.Client.Models; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Authentication; +using Microsoft.Kiota.Http.HttpClientLibrary; namespace Microsoft.Graph.PowerShell.Calendar { [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendar", DefaultParameterSetName = "List")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarCollectionResponse), ParameterSetName = new[] { "List" })] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar), ParameterSetName = new[] { "Get" })] + [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendar")] + [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] public class GetMgUserCalendarGroupCalendarCommand : GraphClientCmdlet { [Parameter(Mandatory = true, Position = 0)] public string UserId { get; set; } = string.Empty; [Parameter(Mandatory = true, Position = 1)] public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 2)] - public string CalendarId { get; set; } = string.Empty; + [Parameter(Mandatory = false)] + public string? Filter { get; set; } + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } @@ -31,63 +35,108 @@ public class GetMgUserCalendarGroupCalendarCommand : GraphClientCmdlet [Alias("Expand")] public string[]? ExpandProperty { get; set; } - [Parameter(Mandatory = false, ParameterSetName = "List")] - public string? Filter { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "List")] + [Parameter(Mandatory = false)] [Alias("OrderBy")] public string[]? Sort { get; set; } - [Parameter(Mandatory = false, ParameterSetName = "List")] + [Parameter(Mandatory = false)] public string? Search { get; set; } - [Parameter(Mandatory = false, ParameterSetName = "List")] + [Parameter(Mandatory = false)] public int Top { get; set; } - [Parameter(Mandatory = false, ParameterSetName = "List")] + [Parameter(Mandatory = false)] public int Skip { get; set; } - [Parameter(Mandatory = false, ParameterSetName = "List")] + [Parameter(Mandatory = false)] 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")] + // 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; } - - - // Delegates to Get-MgUserCalendarGroupCalendar_Get or Get-MgUserCalendarGroupCalendar_List, the two cmdlets - // that actually call Graph. protected override void ProcessRecord() { - var internalCmdletName = ParameterSetName == "Get" ? "Get-MgUserCalendarGroupCalendar_Get" : "Get-MgUserCalendarGroupCalendar_List"; + + var requestAdapter = GetRequestAdapter(); + var client = new ApiClient(requestAdapter); + + Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarCollectionResponse? result; 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; + result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars.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].CalendarGroups[CalendarGroupId].Calendars.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, ParameterSetName == "Get" ? CalendarId : CalendarGroupId); + ThrowGraphRequestFailed(ex, CalendarGroupId); return; } } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs deleted file mode 100644 index 727bc2b47cc..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs +++ /dev/null @@ -1,100 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/allowedCalendarSharingRoles(User='{User}')")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUser")] - [OutputType(typeof(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse))] - public class GetMgUserCalendarGroupCalendarAllowedCalendarSharingRolesWithUserCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - - [Parameter(Mandatory = true, Position = 3, - HelpMessage = "Value for the 'User' parameter of this OData function.")] - public string User { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false)] - public string? Filter { 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! }, - { "user%2Did", UserId }, - { "calendarGroup%2Did", CalendarGroupId }, - { "calendar%2Did", CalendarId }, - { "User", User }, - }; - var requestBuilder = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserRequestBuilder(pathParameters, requestAdapter); - - global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.AllowedCalendarSharingRolesWithUser.AllowedCalendarSharingRolesWithUserGetResponse? result; - try - { - result = requestBuilder.GetAsAllowedCalendarSharingRolesWithUserGetResponseAsync(requestConfiguration => - { - if (this.IsParameterBound(nameof(Filter))) - requestConfiguration.QueryParameters.Filter = Filter; - - 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, CalendarId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarCount.g.cs deleted file mode 100644 index a52629de083..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarCount.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.Calendar.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/$count")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarCount")] - [OutputType(typeof(int))] - public class GetMgUserCalendarGroupCalendarCountCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { 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].CalendarGroups[CalendarGroupId].Calendars.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, CalendarGroupId); - return; - } - - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarDelta.g.cs deleted file mode 100644 index eb707834f22..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarDelta.g.cs +++ /dev/null @@ -1,179 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/delta()")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarDelta", DefaultParameterSetName = "DeltaSync")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] - public class GetMgUserCalendarGroupCalendarDeltaCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0, ParameterSetName = "DeltaSync")] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1, ParameterSetName = "DeltaSync")] - public string CalendarGroupId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public string? Filter { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - [Alias("Select")] - public string[]? Property { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - [Alias("Expand")] - public string[]? ExpandProperty { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - [Alias("OrderBy")] - public string[]? Sort { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public string? Search { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public int Top { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public int Skip { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public SwitchParameter Count { get; set; } - - // Resumes a previous sync from the link that run published. Universal: every delta - // request builder accepts a raw URL, whereas a token argument exists on only a few. - [Parameter(Mandatory = true, ParameterSetName = "Resume")] - public string DeltaLink { get; set; } = string.Empty; - - // Follows @odata.nextLink through the change set. Without it only the first page returns, - // plus a warning when more pages exist. - [Parameter(Mandatory = false)] - public SwitchParameter All { get; set; } - - // Receives the @odata.deltaLink that terminates the change set, for the next sync round. - // A named variable is how this SDK already returns a scalar alongside a pipeline - // (-CountVariable on the published list cmdlets). - [Parameter(Mandatory = false)] - [Alias("DLV")] - public string? DeltaLinkVariable { get; set; } - - - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - // Cleared before the request so a failed or interrupted run cannot leave the previous - // run's link readable, which would silently resume from the wrong point. - if (this.IsParameterBound(nameof(DeltaLinkVariable))) - SessionState.PSVariable.Set(DeltaLinkVariable, null); - - global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Delta.DeltaGetResponse? result; - try - { - result = ParameterSetName == "Resume" - ? client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars.Delta.WithUrl(ValidateContinuationUrl(DeltaLink!, requestAdapter, nameof(DeltaLink))).GetAsDeltaGetResponseAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult() - : client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars.Delta.GetAsDeltaGetResponseAsync(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(); - - var fetched = 0; - while (true) - { - if (result?.Value is { } items) - { - WriteObject(items, enumerateCollection: true); - fetched += items.Count; - } - - var nextLink = result?.OdataNextLink; - var deltaLink = result?.OdataDeltaLink; - - // A response cannot be both continued and terminated; treating one as - // authoritative would silently drop pages or resume from a partial set. - if (!string.IsNullOrEmpty(nextLink) && !string.IsNullOrEmpty(deltaLink)) - { - ThrowTerminatingError(new ErrorRecord( - new InvalidOperationException("The response carries both @odata.nextLink and @odata.deltaLink, which is not a valid delta response."), - "InvalidDeltaResponse", ErrorCategory.InvalidData, targetObject: null)); - return; - } - - if (!string.IsNullOrEmpty(deltaLink)) - { - if (this.IsParameterBound(nameof(DeltaLinkVariable))) - SessionState.PSVariable.Set(DeltaLinkVariable, deltaLink); - break; - } - - // No link of either kind: the change set ends here and there is nothing to - // publish for a next round. - if (string.IsNullOrEmpty(nextLink)) break; - - if (!All.IsPresent) - { - WriteWarning("More results are available. Use -All to return all pages."); - break; - } - - if (Stopping) break; - if (this.IsParameterBound(nameof(Top)) && fetched >= Top) break; - - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars.Delta.WithUrl(nextLink).GetAsDeltaGetResponseAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CalendarGroupId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent.g.cs deleted file mode 100644 index 4185da7c1f3..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent.g.cs +++ /dev/null @@ -1,97 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Management.Automation.Runspaces; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEvent", DefaultParameterSetName = "List")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse), ParameterSetName = new[] { "List" })] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event), ParameterSetName = new[] { "Get" })] - public class GetMgUserCalendarGroupCalendarEventCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] - public string EventId { 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-MgUserCalendarGroupCalendarEvent_Get or Get-MgUserCalendarGroupCalendarEvent_List, the two cmdlets - // that actually call Graph. - protected override void ProcessRecord() - { - var internalCmdletName = ParameterSetName == "Get" ? "Get-MgUserCalendarGroupCalendarEvent_Get" : "Get-MgUserCalendarGroupCalendarEvent_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" ? EventId : CalendarId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment.g.cs deleted file mode 100644 index a0558a5462c..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment.g.cs +++ /dev/null @@ -1,99 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Management.Automation.Runspaces; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventAttachment", DefaultParameterSetName = "List")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentCollectionResponse), ParameterSetName = new[] { "List" })] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment), ParameterSetName = new[] { "Get" })] - public class GetMgUserCalendarGroupCalendarEventAttachmentCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { get; set; } = string.Empty; - [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 4)] - public string AttachmentId { 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-MgUserCalendarGroupCalendarEventAttachment_Get or Get-MgUserCalendarGroupCalendarEventAttachment_List, the two cmdlets - // that actually call Graph. - protected override void ProcessRecord() - { - var internalCmdletName = ParameterSetName == "Get" ? "Get-MgUserCalendarGroupCalendarEventAttachment_Get" : "Get-MgUserCalendarGroupCalendarEventAttachment_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" ? AttachmentId : EventId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachmentCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachmentCount.g.cs deleted file mode 100644 index 9d6d5e751d2..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachmentCount.g.cs +++ /dev/null @@ -1,68 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/$count")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventAttachmentCount")] - [OutputType(typeof(int))] - public class GetMgUserCalendarGroupCalendarEventAttachmentCountCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { 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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Attachments.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, EventId); - return; - } - - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment_Get.g.cs deleted file mode 100644 index e8be7b6db3d..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment_Get.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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventAttachment_Get")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment))] - public class GetMgUserCalendarGroupCalendarEventAttachment_GetCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 4)] - public string AttachmentId { 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.Calendar.Client.Models.Attachment? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Attachments[AttachmentId].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, AttachmentId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment_List.g.cs deleted file mode 100644 index c961371279c..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventAttachment_List.g.cs +++ /dev/null @@ -1,148 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventAttachment_List")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment))] - public class GetMgUserCalendarGroupCalendarEventAttachment_ListCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { 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.Calendar.Client.Models.AttachmentCollectionResponse? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Attachments.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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Attachments.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, EventId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventCalendar.g.cs deleted file mode 100644 index a84f7118e8b..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventCalendar.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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/calendar")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventCalendar")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] - public class GetMgUserCalendarGroupCalendarEventCalendarCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { 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.Calendar.Client.Models.Calendar? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Calendar.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, EventId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventCount.g.cs deleted file mode 100644 index 87ac7716731..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventCount.g.cs +++ /dev/null @@ -1,66 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/$count")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventCount")] - [OutputType(typeof(int))] - public class GetMgUserCalendarGroupCalendarEventCountCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { 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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events.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, CalendarId); - return; - } - - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventDelta.g.cs deleted file mode 100644 index d7b0f0fa37c..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventDelta.g.cs +++ /dev/null @@ -1,181 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/delta()")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventDelta", DefaultParameterSetName = "DeltaSync")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] - public class GetMgUserCalendarGroupCalendarEventDeltaCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0, ParameterSetName = "DeltaSync")] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1, ParameterSetName = "DeltaSync")] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2, ParameterSetName = "DeltaSync")] - public string CalendarId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public string? Filter { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - [Alias("Select")] - public string[]? Property { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - [Alias("Expand")] - public string[]? ExpandProperty { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - [Alias("OrderBy")] - public string[]? Sort { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public string? Search { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public int Top { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public int Skip { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public SwitchParameter Count { get; set; } - - // Resumes a previous sync from the link that run published. Universal: every delta - // request builder accepts a raw URL, whereas a token argument exists on only a few. - [Parameter(Mandatory = true, ParameterSetName = "Resume")] - public string DeltaLink { get; set; } = string.Empty; - - // Follows @odata.nextLink through the change set. Without it only the first page returns, - // plus a warning when more pages exist. - [Parameter(Mandatory = false)] - public SwitchParameter All { get; set; } - - // Receives the @odata.deltaLink that terminates the change set, for the next sync round. - // A named variable is how this SDK already returns a scalar alongside a pipeline - // (-CountVariable on the published list cmdlets). - [Parameter(Mandatory = false)] - [Alias("DLV")] - public string? DeltaLinkVariable { get; set; } - - - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - // Cleared before the request so a failed or interrupted run cannot leave the previous - // run's link readable, which would silently resume from the wrong point. - if (this.IsParameterBound(nameof(DeltaLinkVariable))) - SessionState.PSVariable.Set(DeltaLinkVariable, null); - - global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Delta.DeltaGetResponse? result; - try - { - result = ParameterSetName == "Resume" - ? client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events.Delta.WithUrl(ValidateContinuationUrl(DeltaLink!, requestAdapter, nameof(DeltaLink))).GetAsDeltaGetResponseAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult() - : client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events.Delta.GetAsDeltaGetResponseAsync(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(); - - var fetched = 0; - while (true) - { - if (result?.Value is { } items) - { - WriteObject(items, enumerateCollection: true); - fetched += items.Count; - } - - var nextLink = result?.OdataNextLink; - var deltaLink = result?.OdataDeltaLink; - - // A response cannot be both continued and terminated; treating one as - // authoritative would silently drop pages or resume from a partial set. - if (!string.IsNullOrEmpty(nextLink) && !string.IsNullOrEmpty(deltaLink)) - { - ThrowTerminatingError(new ErrorRecord( - new InvalidOperationException("The response carries both @odata.nextLink and @odata.deltaLink, which is not a valid delta response."), - "InvalidDeltaResponse", ErrorCategory.InvalidData, targetObject: null)); - return; - } - - if (!string.IsNullOrEmpty(deltaLink)) - { - if (this.IsParameterBound(nameof(DeltaLinkVariable))) - SessionState.PSVariable.Set(DeltaLinkVariable, deltaLink); - break; - } - - // No link of either kind: the change set ends here and there is nothing to - // publish for a next round. - if (string.IsNullOrEmpty(nextLink)) break; - - if (!All.IsPresent) - { - WriteWarning("More results are available. Use -All to return all pages."); - break; - } - - if (Stopping) break; - if (this.IsParameterBound(nameof(Top)) && fetched >= Top) break; - - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events.Delta.WithUrl(nextLink).GetAsDeltaGetResponseAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CalendarId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension.g.cs deleted file mode 100644 index 5d5557f3ad8..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension.g.cs +++ /dev/null @@ -1,99 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Management.Automation.Runspaces; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventExtension", DefaultParameterSetName = "List")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.ExtensionCollectionResponse), ParameterSetName = new[] { "List" })] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension), ParameterSetName = new[] { "Get" })] - public class GetMgUserCalendarGroupCalendarEventExtensionCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { get; set; } = string.Empty; - [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 4)] - public string ExtensionId { 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-MgUserCalendarGroupCalendarEventExtension_Get or Get-MgUserCalendarGroupCalendarEventExtension_List, the two cmdlets - // that actually call Graph. - protected override void ProcessRecord() - { - var internalCmdletName = ParameterSetName == "Get" ? "Get-MgUserCalendarGroupCalendarEventExtension_Get" : "Get-MgUserCalendarGroupCalendarEventExtension_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" ? ExtensionId : EventId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtensionCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtensionCount.g.cs deleted file mode 100644 index 81cfd65524c..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtensionCount.g.cs +++ /dev/null @@ -1,68 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/$count")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventExtensionCount")] - [OutputType(typeof(int))] - public class GetMgUserCalendarGroupCalendarEventExtensionCountCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { 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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Extensions.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, EventId); - return; - } - - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension_Get.g.cs deleted file mode 100644 index b5e1e7696e6..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension_Get.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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventExtension_Get")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] - public class GetMgUserCalendarGroupCalendarEventExtension_GetCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 4)] - public string ExtensionId { 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.Calendar.Client.Models.Extension? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Extensions[ExtensionId].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, ExtensionId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension_List.g.cs deleted file mode 100644 index e7d7a9243e5..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventExtension_List.g.cs +++ /dev/null @@ -1,148 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventExtension_List")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] - public class GetMgUserCalendarGroupCalendarEventExtension_ListCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { 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.Calendar.Client.Models.ExtensionCollectionResponse? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Extensions.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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Extensions.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, EventId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventInstance.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventInstance.g.cs deleted file mode 100644 index b5b4ff63bde..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventInstance.g.cs +++ /dev/null @@ -1,148 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventInstance")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] - public class GetMgUserCalendarGroupCalendarEventInstanceCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { 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.Calendar.Client.Models.EventCollectionResponse? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].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.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].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, EventId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventInstanceDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventInstanceDelta.g.cs deleted file mode 100644 index eae2da324fb..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEventInstanceDelta.g.cs +++ /dev/null @@ -1,183 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances/delta()")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEventInstanceDelta", DefaultParameterSetName = "DeltaSync")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] - public class GetMgUserCalendarGroupCalendarEventInstanceDeltaCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0, ParameterSetName = "DeltaSync")] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1, ParameterSetName = "DeltaSync")] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2, ParameterSetName = "DeltaSync")] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3, ParameterSetName = "DeltaSync")] - public string EventId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public string? Filter { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - [Alias("Select")] - public string[]? Property { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - [Alias("Expand")] - public string[]? ExpandProperty { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - [Alias("OrderBy")] - public string[]? Sort { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public string? Search { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public int Top { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public int Skip { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public SwitchParameter Count { get; set; } - - // Resumes a previous sync from the link that run published. Universal: every delta - // request builder accepts a raw URL, whereas a token argument exists on only a few. - [Parameter(Mandatory = true, ParameterSetName = "Resume")] - public string DeltaLink { get; set; } = string.Empty; - - // Follows @odata.nextLink through the change set. Without it only the first page returns, - // plus a warning when more pages exist. - [Parameter(Mandatory = false)] - public SwitchParameter All { get; set; } - - // Receives the @odata.deltaLink that terminates the change set, for the next sync round. - // A named variable is how this SDK already returns a scalar alongside a pipeline - // (-CountVariable on the published list cmdlets). - [Parameter(Mandatory = false)] - [Alias("DLV")] - public string? DeltaLinkVariable { get; set; } - - - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - // Cleared before the request so a failed or interrupted run cannot leave the previous - // run's link readable, which would silently resume from the wrong point. - if (this.IsParameterBound(nameof(DeltaLinkVariable))) - SessionState.PSVariable.Set(DeltaLinkVariable, null); - - global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Instances.Delta.DeltaGetResponse? result; - try - { - result = ParameterSetName == "Resume" - ? client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Instances.Delta.WithUrl(ValidateContinuationUrl(DeltaLink!, requestAdapter, nameof(DeltaLink))).GetAsDeltaGetResponseAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult() - : client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Instances.Delta.GetAsDeltaGetResponseAsync(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(); - - var fetched = 0; - while (true) - { - if (result?.Value is { } items) - { - WriteObject(items, enumerateCollection: true); - fetched += items.Count; - } - - var nextLink = result?.OdataNextLink; - var deltaLink = result?.OdataDeltaLink; - - // A response cannot be both continued and terminated; treating one as - // authoritative would silently drop pages or resume from a partial set. - if (!string.IsNullOrEmpty(nextLink) && !string.IsNullOrEmpty(deltaLink)) - { - ThrowTerminatingError(new ErrorRecord( - new InvalidOperationException("The response carries both @odata.nextLink and @odata.deltaLink, which is not a valid delta response."), - "InvalidDeltaResponse", ErrorCategory.InvalidData, targetObject: null)); - return; - } - - if (!string.IsNullOrEmpty(deltaLink)) - { - if (this.IsParameterBound(nameof(DeltaLinkVariable))) - SessionState.PSVariable.Set(DeltaLinkVariable, deltaLink); - break; - } - - // No link of either kind: the change set ends here and there is nothing to - // publish for a next round. - if (string.IsNullOrEmpty(nextLink)) break; - - if (!All.IsPresent) - { - WriteWarning("More results are available. Use -All to return all pages."); - break; - } - - if (Stopping) break; - if (this.IsParameterBound(nameof(Top)) && fetched >= Top) break; - - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Instances.Delta.WithUrl(nextLink).GetAsDeltaGetResponseAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, EventId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent_Get.g.cs deleted file mode 100644 index 82db7fe9223..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent_Get.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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEvent_Get")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] - public class GetMgUserCalendarGroupCalendarEvent_GetCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { 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.Calendar.Client.Models.Event? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].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, EventId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent_List.g.cs deleted file mode 100644 index 67a99d316b6..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarEvent_List.g.cs +++ /dev/null @@ -1,146 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarEvent_List")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] - public class GetMgUserCalendarGroupCalendarEvent_ListCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { 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.Calendar.Client.Models.EventCollectionResponse? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events.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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events.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, CalendarId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission.g.cs deleted file mode 100644 index a7e8fbf96b0..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission.g.cs +++ /dev/null @@ -1,97 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Management.Automation.Runspaces; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarPermission", DefaultParameterSetName = "List")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermissionCollectionResponse), ParameterSetName = new[] { "List" })] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission), ParameterSetName = new[] { "Get" })] - public class GetMgUserCalendarGroupCalendarPermissionCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, ParameterSetName = "Get", Position = 3)] - public string CalendarPermissionId { 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-MgUserCalendarGroupCalendarPermission_Get or Get-MgUserCalendarGroupCalendarPermission_List, the two cmdlets - // that actually call Graph. - protected override void ProcessRecord() - { - var internalCmdletName = ParameterSetName == "Get" ? "Get-MgUserCalendarGroupCalendarPermission_Get" : "Get-MgUserCalendarGroupCalendarPermission_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" ? CalendarPermissionId : CalendarId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermissionCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermissionCount.g.cs deleted file mode 100644 index 6680ed9a36d..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermissionCount.g.cs +++ /dev/null @@ -1,66 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/$count")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarPermissionCount")] - [OutputType(typeof(int))] - public class GetMgUserCalendarGroupCalendarPermissionCountCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { 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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarPermissions.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, CalendarId); - return; - } - - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission_Get.g.cs deleted file mode 100644 index 6fe9c98cf0d..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission_Get.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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarPermission_Get")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission))] - public class GetMgUserCalendarGroupCalendarPermission_GetCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string CalendarPermissionId { 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.Calendar.Client.Models.CalendarPermission? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarPermissions[CalendarPermissionId].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, CalendarPermissionId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission_List.g.cs deleted file mode 100644 index eeadca5837a..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarPermission_List.g.cs +++ /dev/null @@ -1,146 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarPermission_List")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission))] - public class GetMgUserCalendarGroupCalendarPermission_ListCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { 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.Calendar.Client.Models.CalendarPermissionCollectionResponse? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarPermissions.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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarPermissions.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, CalendarId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarView.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarView.g.cs deleted file mode 100644 index 66560de1a7a..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarView.g.cs +++ /dev/null @@ -1,146 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarView")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] - public class GetMgUserCalendarGroupCalendarViewCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { 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.Calendar.Client.Models.EventCollectionResponse? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarView.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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarView.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, CalendarId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarViewDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarViewDelta.g.cs deleted file mode 100644 index 1847a672f15..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendarViewDelta.g.cs +++ /dev/null @@ -1,181 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/delta()")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendarViewDelta", DefaultParameterSetName = "DeltaSync")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] - public class GetMgUserCalendarGroupCalendarViewDeltaCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0, ParameterSetName = "DeltaSync")] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1, ParameterSetName = "DeltaSync")] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2, ParameterSetName = "DeltaSync")] - public string CalendarId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public string? Filter { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - [Alias("Select")] - public string[]? Property { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - [Alias("Expand")] - public string[]? ExpandProperty { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - [Alias("OrderBy")] - public string[]? Sort { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public string? Search { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public int Top { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public int Skip { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public SwitchParameter Count { get; set; } - - // Resumes a previous sync from the link that run published. Universal: every delta - // request builder accepts a raw URL, whereas a token argument exists on only a few. - [Parameter(Mandatory = true, ParameterSetName = "Resume")] - public string DeltaLink { get; set; } = string.Empty; - - // Follows @odata.nextLink through the change set. Without it only the first page returns, - // plus a warning when more pages exist. - [Parameter(Mandatory = false)] - public SwitchParameter All { get; set; } - - // Receives the @odata.deltaLink that terminates the change set, for the next sync round. - // A named variable is how this SDK already returns a scalar alongside a pipeline - // (-CountVariable on the published list cmdlets). - [Parameter(Mandatory = false)] - [Alias("DLV")] - public string? DeltaLinkVariable { get; set; } - - - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - // Cleared before the request so a failed or interrupted run cannot leave the previous - // run's link readable, which would silently resume from the wrong point. - if (this.IsParameterBound(nameof(DeltaLinkVariable))) - SessionState.PSVariable.Set(DeltaLinkVariable, null); - - global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.CalendarView.Delta.DeltaGetResponse? result; - try - { - result = ParameterSetName == "Resume" - ? client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarView.Delta.WithUrl(ValidateContinuationUrl(DeltaLink!, requestAdapter, nameof(DeltaLink))).GetAsDeltaGetResponseAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult() - : client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarView.Delta.GetAsDeltaGetResponseAsync(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(); - - var fetched = 0; - while (true) - { - if (result?.Value is { } items) - { - WriteObject(items, enumerateCollection: true); - fetched += items.Count; - } - - var nextLink = result?.OdataNextLink; - var deltaLink = result?.OdataDeltaLink; - - // A response cannot be both continued and terminated; treating one as - // authoritative would silently drop pages or resume from a partial set. - if (!string.IsNullOrEmpty(nextLink) && !string.IsNullOrEmpty(deltaLink)) - { - ThrowTerminatingError(new ErrorRecord( - new InvalidOperationException("The response carries both @odata.nextLink and @odata.deltaLink, which is not a valid delta response."), - "InvalidDeltaResponse", ErrorCategory.InvalidData, targetObject: null)); - return; - } - - if (!string.IsNullOrEmpty(deltaLink)) - { - if (this.IsParameterBound(nameof(DeltaLinkVariable))) - SessionState.PSVariable.Set(DeltaLinkVariable, deltaLink); - break; - } - - // No link of either kind: the change set ends here and there is nothing to - // publish for a next round. - if (string.IsNullOrEmpty(nextLink)) break; - - if (!All.IsPresent) - { - WriteWarning("More results are available. Use -All to return all pages."); - break; - } - - if (Stopping) break; - if (this.IsParameterBound(nameof(Top)) && fetched >= Top) break; - - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarView.Delta.WithUrl(nextLink).GetAsDeltaGetResponseAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CalendarId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar_Get.g.cs deleted file mode 100644 index 3d6237a8002..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar_Get.g.cs +++ /dev/null @@ -1,69 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendar_Get")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] - public class GetMgUserCalendarGroupCalendar_GetCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { 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.Calendar.Client.Models.Calendar? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].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, CalendarId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar_List.g.cs deleted file mode 100644 index a8f108c70bb..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar_List.g.cs +++ /dev/null @@ -1,144 +0,0 @@ -#nullable enable - -using System; -using System.Management.Automation; -using System.Net.Http; -using Microsoft.Graph.Wrapper.Runtime; -using Microsoft.Graph.PowerShell.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarGroupCalendar_List")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] - public class GetMgUserCalendarGroupCalendar_ListCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { 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.Calendar.Client.Models.CalendarCollectionResponse? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars.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].CalendarGroups[CalendarGroupId].Calendars.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, CalendarGroupId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarViewDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarViewDelta.g.cs deleted file mode 100644 index 05030ba5a21..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarViewDelta.g.cs +++ /dev/null @@ -1,179 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("GET", "/users/{user-id}/calendars/{calendar-id}/calendarView/delta()")] - [Cmdlet(VerbsCommon.Get, "MgUserCalendarViewDelta", DefaultParameterSetName = "DeltaSync")] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] - public class GetMgUserCalendarViewDeltaCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0, ParameterSetName = "DeltaSync")] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1, ParameterSetName = "DeltaSync")] - public string CalendarId { get; set; } = string.Empty; - - - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public string? Filter { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - [Alias("Select")] - public string[]? Property { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - [Alias("Expand")] - public string[]? ExpandProperty { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - [Alias("OrderBy")] - public string[]? Sort { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public string? Search { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public int Top { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public int Skip { get; set; } - - [Parameter(Mandatory = false, ParameterSetName = "DeltaSync")] - public SwitchParameter Count { get; set; } - - // Resumes a previous sync from the link that run published. Universal: every delta - // request builder accepts a raw URL, whereas a token argument exists on only a few. - [Parameter(Mandatory = true, ParameterSetName = "Resume")] - public string DeltaLink { get; set; } = string.Empty; - - // Follows @odata.nextLink through the change set. Without it only the first page returns, - // plus a warning when more pages exist. - [Parameter(Mandatory = false)] - public SwitchParameter All { get; set; } - - // Receives the @odata.deltaLink that terminates the change set, for the next sync round. - // A named variable is how this SDK already returns a scalar alongside a pipeline - // (-CountVariable on the published list cmdlets). - [Parameter(Mandatory = false)] - [Alias("DLV")] - public string? DeltaLinkVariable { get; set; } - - - - protected override void ProcessRecord() - { - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - // Cleared before the request so a failed or interrupted run cannot leave the previous - // run's link readable, which would silently resume from the wrong point. - if (this.IsParameterBound(nameof(DeltaLinkVariable))) - SessionState.PSVariable.Set(DeltaLinkVariable, null); - - global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Item.CalendarView.Delta.DeltaGetResponse? result; - try - { - result = ParameterSetName == "Resume" - ? client.Users[UserId].Calendars[CalendarId].CalendarView.Delta.WithUrl(ValidateContinuationUrl(DeltaLink!, requestAdapter, nameof(DeltaLink))).GetAsDeltaGetResponseAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult() - : client.Users[UserId].Calendars[CalendarId].CalendarView.Delta.GetAsDeltaGetResponseAsync(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(); - - var fetched = 0; - while (true) - { - if (result?.Value is { } items) - { - WriteObject(items, enumerateCollection: true); - fetched += items.Count; - } - - var nextLink = result?.OdataNextLink; - var deltaLink = result?.OdataDeltaLink; - - // A response cannot be both continued and terminated; treating one as - // authoritative would silently drop pages or resume from a partial set. - if (!string.IsNullOrEmpty(nextLink) && !string.IsNullOrEmpty(deltaLink)) - { - ThrowTerminatingError(new ErrorRecord( - new InvalidOperationException("The response carries both @odata.nextLink and @odata.deltaLink, which is not a valid delta response."), - "InvalidDeltaResponse", ErrorCategory.InvalidData, targetObject: null)); - return; - } - - if (!string.IsNullOrEmpty(deltaLink)) - { - if (this.IsParameterBound(nameof(DeltaLinkVariable))) - SessionState.PSVariable.Set(DeltaLinkVariable, deltaLink); - break; - } - - // No link of either kind: the change set ends here and there is nothing to - // publish for a next round. - if (string.IsNullOrEmpty(nextLink)) break; - - if (!All.IsPresent) - { - WriteWarning("More results are available. Use -All to return all pages."); - break; - } - - if (Stopping) break; - if (this.IsParameterBound(nameof(Top)) && fetched >= Top) break; - - result = client.Users[UserId].Calendars[CalendarId].CalendarView.Delta.WithUrl(nextLink).GetAsDeltaGetResponseAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CalendarId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventAccept.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventAccept.g.cs deleted file mode 100644 index 3a53e76c493..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventAccept.g.cs +++ /dev/null @@ -1,77 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/accept")] - [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarEventAccept", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - - public class InvokeMgUserCalendarGroupCalendarEventAcceptCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { get; set; } = string.Empty; - - [Parameter(Mandatory = false)] - public bool? SendResponse { get; set; } - - [Parameter(Mandatory = false)] - public string? Comment { get; set; } - - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(EventId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Accept.AcceptPostRequestBody(); - - if (this.IsParameterBound(nameof(SendResponse))) - body.SendResponse = SendResponse; - - if (this.IsParameterBound(nameof(Comment))) - body.Comment = Comment; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - - try - { - client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Accept.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }) - .GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, EventId); - return; - } - - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventAttachmentCreateUploadSession.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventAttachmentCreateUploadSession.g.cs deleted file mode 100644 index a3dad6c1d81..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventAttachmentCreateUploadSession.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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/createUploadSession")] - [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarEventAttachmentCreateUploadSession", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.UploadSession))] - public class InvokeMgUserCalendarGroupCalendarEventAttachmentCreateUploadSessionCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { get; set; } = string.Empty; - - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentItem? AttachmentItem { get; set; } - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(EventId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Attachments.CreateUploadSession.CreateUploadSessionPostRequestBody(); - - if (this.IsParameterBound(nameof(AttachmentItem))) - body.AttachmentItem = AttachmentItem; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Calendar.Client.Models.UploadSession? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Attachments.CreateUploadSession.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, EventId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventCancel.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventCancel.g.cs deleted file mode 100644 index 8a7c718fce4..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventCancel.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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/cancel")] - [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarEventCancel", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - - public class InvokeMgUserCalendarGroupCalendarEventCancelCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { get; set; } = string.Empty; - - [Parameter(Mandatory = false)] - public string? Comment { get; set; } - - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(EventId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Cancel.CancelPostRequestBody(); - - if (this.IsParameterBound(nameof(Comment))) - body.Comment = Comment; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - - try - { - client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Cancel.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }) - .GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, EventId); - return; - } - - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventDecline.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventDecline.g.cs deleted file mode 100644 index 53069b0c9df..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventDecline.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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/decline")] - [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarEventDecline", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - - public class InvokeMgUserCalendarGroupCalendarEventDeclineCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { get; set; } = string.Empty; - - [Parameter(Mandatory = false)] - public bool? SendResponse { get; set; } - - [Parameter(Mandatory = false)] - public string? Comment { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot? ProposedNewTime { get; set; } - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(EventId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Decline.DeclinePostRequestBody(); - - if (this.IsParameterBound(nameof(SendResponse))) - body.SendResponse = SendResponse; - - if (this.IsParameterBound(nameof(Comment))) - body.Comment = Comment; - if (this.IsParameterBound(nameof(ProposedNewTime))) - body.ProposedNewTime = ProposedNewTime; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - - try - { - client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Decline.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }) - .GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, EventId); - return; - } - - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventDismissReminder.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventDismissReminder.g.cs deleted file mode 100644 index 8a60725e939..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventDismissReminder.g.cs +++ /dev/null @@ -1,65 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/dismissReminder")] - [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarEventDismissReminder", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - - public class InvokeMgUserCalendarGroupCalendarEventDismissReminderCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { get; set; } = string.Empty; - - - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(EventId, "Invoke")) - return; - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - - try - { - client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].DismissReminder.PostAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }) - .GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, EventId); - return; - } - - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventForward.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventForward.g.cs deleted file mode 100644 index ca1f83b1e63..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventForward.g.cs +++ /dev/null @@ -1,75 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/forward")] - [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarEventForward", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - - public class InvokeMgUserCalendarGroupCalendarEventForwardCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { get; set; } = string.Empty; - - [Parameter(Mandatory = false)] - public string? Comment { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient[]? ToRecipients { get; set; } - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(EventId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.Forward.ForwardPostRequestBody(); - - if (this.IsParameterBound(nameof(Comment))) - body.Comment = Comment; - if (this.IsParameterBound(nameof(ToRecipients))) - body.ToRecipients = ToRecipients!.ToList(); - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - - try - { - client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Forward.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }) - .GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, EventId); - return; - } - - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventPermanentDelete.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventPermanentDelete.g.cs deleted file mode 100644 index 163cde6b8cf..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventPermanentDelete.g.cs +++ /dev/null @@ -1,65 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/permanentDelete")] - [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarEventPermanentDelete", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - - public class InvokeMgUserCalendarGroupCalendarEventPermanentDeleteCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { get; set; } = string.Empty; - - - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(EventId, "Invoke")) - return; - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - - try - { - client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].PermanentDelete.PostAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }) - .GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, EventId); - return; - } - - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventSnoozeReminder.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventSnoozeReminder.g.cs deleted file mode 100644 index 5426fa90a9f..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventSnoozeReminder.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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/snoozeReminder")] - [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarEventSnoozeReminder", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - - public class InvokeMgUserCalendarGroupCalendarEventSnoozeReminderCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { get; set; } = string.Empty; - - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? NewReminderTime { get; set; } - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(EventId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.SnoozeReminder.SnoozeReminderPostRequestBody(); - - if (this.IsParameterBound(nameof(NewReminderTime))) - body.NewReminderTime = NewReminderTime; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - - try - { - client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].SnoozeReminder.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }) - .GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, EventId); - return; - } - - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventTentativelyAccept.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventTentativelyAccept.g.cs deleted file mode 100644 index 9aa71485f4d..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarEventTentativelyAccept.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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/tentativelyAccept")] - [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarEventTentativelyAccept", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - - public class InvokeMgUserCalendarGroupCalendarEventTentativelyAcceptCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { get; set; } = string.Empty; - - [Parameter(Mandatory = false)] - public bool? SendResponse { get; set; } - - [Parameter(Mandatory = false)] - public string? Comment { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.TimeSlot? ProposedNewTime { get; set; } - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(EventId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.Events.Item.TentativelyAccept.TentativelyAcceptPostRequestBody(); - - if (this.IsParameterBound(nameof(SendResponse))) - body.SendResponse = SendResponse; - - if (this.IsParameterBound(nameof(Comment))) - body.Comment = Comment; - if (this.IsParameterBound(nameof(ProposedNewTime))) - body.ProposedNewTime = ProposedNewTime; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - - try - { - client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].TentativelyAccept.PostAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }) - .GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, EventId); - return; - } - - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarGetSchedule.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarGetSchedule.g.cs deleted file mode 100644 index 52525151f00..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarGetSchedule.g.cs +++ /dev/null @@ -1,85 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/getSchedule")] - [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarGetSchedule", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetSchedulePostResponse))] - public class InvokeMgUserCalendarGroupCalendarGetScheduleCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - - [Parameter(Mandatory = false)] - public string[]? Schedules { get; set; } - - [Parameter(Mandatory = false)] - public int? AvailabilityViewInterval { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? EndTime { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? StartTime { get; set; } - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(CalendarId, "Invoke")) - return; - - var body = new global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetSchedulePostRequestBody(); - - if (this.IsParameterBound(nameof(Schedules))) - body.Schedules = Schedules!.ToList(); - - if (this.IsParameterBound(nameof(AvailabilityViewInterval))) - body.AvailabilityViewInterval = AvailabilityViewInterval; - if (this.IsParameterBound(nameof(EndTime))) - body.EndTime = EndTime; - - if (this.IsParameterBound(nameof(StartTime))) - body.StartTime = StartTime; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Item.GetSchedule.GetSchedulePostResponse? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].GetSchedule.PostAsGetSchedulePostResponseAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CalendarId); - return; - } - - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarPermanentDelete.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarPermanentDelete.g.cs deleted file mode 100644 index 9c44922cb14..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarGroupCalendarPermanentDelete.g.cs +++ /dev/null @@ -1,63 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/permanentDelete")] - [Cmdlet(VerbsLifecycle.Invoke, "MgUserCalendarGroupCalendarPermanentDelete", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - - public class InvokeMgUserCalendarGroupCalendarPermanentDeleteCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - - - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(CalendarId, "Invoke")) - return; - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - - try - { - client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].PermanentDelete.PostAsync(requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }) - .GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CalendarId); - return; - } - - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEventAttachment.g.cs deleted file mode 100644 index 81dbed43a20..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEventAttachment.g.cs +++ /dev/null @@ -1,91 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("POST", "/groups/{group-id}/calendar/events/{event-id}/attachments")] - [Cmdlet(VerbsCommon.New, "MgGroupCalendarEventAttachment", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment))] - public class NewMgGroupCalendarEventAttachmentCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string GroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string EventId { get; set; } = string.Empty; - - [Parameter(Mandatory = false)] - public string? ContentType { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsInline { get; set; } - - [Parameter(Mandatory = false)] - public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } - - [Parameter(Mandatory = false)] - public string? Name { get; set; } - - [Parameter(Mandatory = false)] - public int? Size { get; set; } - - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(EventId, "New")) - return; - - var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment(); - - if (this.IsParameterBound(nameof(ContentType))) - body.ContentType = ContentType; - - if (this.IsParameterBound(nameof(IsInline))) - body.IsInline = IsInline; - - if (this.IsParameterBound(nameof(LastModifiedDateTime))) - body.LastModifiedDateTime = LastModifiedDateTime; - - if (this.IsParameterBound(nameof(Name))) - body.Name = Name; - - if (this.IsParameterBound(nameof(Size))) - body.Size = Size; - - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment? result; - try - { - result = client.Groups[GroupId].Calendar.Events[EventId].Attachments.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/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEventExtension.g.cs deleted file mode 100644 index b41ca795075..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEventExtension.g.cs +++ /dev/null @@ -1,63 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("POST", "/groups/{group-id}/calendar/events/{event-id}/extensions")] - [Cmdlet(VerbsCommon.New, "MgGroupCalendarEventExtension", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] - public class NewMgGroupCalendarEventExtensionCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string GroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string EventId { get; set; } = string.Empty; - - - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(EventId, "New")) - return; - - var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension(); - - - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; - try - { - result = client.Groups[GroupId].Calendar.Events[EventId].Extensions.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/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEvent.g.cs deleted file mode 100644 index a637c4d0c44..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEvent.g.cs +++ /dev/null @@ -1,319 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events")] - [Cmdlet(VerbsCommon.New, "MgUserCalendarGroupCalendarEvent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] - public class NewMgUserCalendarGroupCalendarEventCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - - [Parameter(Mandatory = false)] - public string[]? Categories { get; set; } - - [Parameter(Mandatory = false)] - public string? ChangeKey { get; set; } - - [Parameter(Mandatory = false)] - public global::System.DateTimeOffset? CreatedDateTime { get; set; } - - [Parameter(Mandatory = false)] - public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } - - [Parameter(Mandatory = false)] - public bool? AllowNewTimeProposals { get; set; } - - [Parameter(Mandatory = false)] - public string? BodyPreview { get; set; } - - [Parameter(Mandatory = false)] - public string[]? CancelledOccurrences { get; set; } - - [Parameter(Mandatory = false)] - public bool? HasAttachments { get; set; } - - [Parameter(Mandatory = false)] - public bool? HideAttendees { get; set; } - - [Parameter(Mandatory = false)] - public string? ICalUId { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsAllDay { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsCancelled { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsDraft { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsOnlineMeeting { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsOrganizer { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsReminderOn { get; set; } - - [Parameter(Mandatory = false)] - public string? OccurrenceId { get; set; } - - [Parameter(Mandatory = false)] - public string? OnlineMeetingUrl { get; set; } - - [Parameter(Mandatory = false)] - public string? OriginalEndTimeZone { get; set; } - - [Parameter(Mandatory = false)] - public global::System.DateTimeOffset? OriginalStart { get; set; } - - [Parameter(Mandatory = false)] - public string? OriginalStartTimeZone { get; set; } - - [Parameter(Mandatory = false)] - public int? ReminderMinutesBeforeStart { get; set; } - - [Parameter(Mandatory = false)] - public bool? ResponseRequested { get; set; } - - [Parameter(Mandatory = false)] - public string? SeriesMasterId { get; set; } - - [Parameter(Mandatory = false)] - public string? Subject { get; set; } - - [Parameter(Mandatory = false)] - public string? TransactionId { get; set; } - - [Parameter(Mandatory = false)] - public string? Uid { get; set; } - - [Parameter(Mandatory = false)] - public string? WebLink { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.Attendee[]? Attendees { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.ItemBody? Body { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? End { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.Importance? Importance { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location? Location { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location[]? Locations { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingInfo? OnlineMeeting { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType? OnlineMeetingProvider { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient? Organizer { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.PatternedRecurrence? Recurrence { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.ResponseStatus? ResponseStatus { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.Sensitivity? Sensitivity { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.FreeBusyStatus? ShowAs { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? Start { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.EventType? Type { get; set; } - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(CalendarId, "New")) - return; - - var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Event(); - - if (this.IsParameterBound(nameof(Categories))) - body.Categories = Categories!.ToList(); - - if (this.IsParameterBound(nameof(ChangeKey))) - body.ChangeKey = ChangeKey; - - if (this.IsParameterBound(nameof(CreatedDateTime))) - body.CreatedDateTime = CreatedDateTime; - - if (this.IsParameterBound(nameof(LastModifiedDateTime))) - body.LastModifiedDateTime = LastModifiedDateTime; - - if (this.IsParameterBound(nameof(AllowNewTimeProposals))) - body.AllowNewTimeProposals = AllowNewTimeProposals; - - if (this.IsParameterBound(nameof(BodyPreview))) - body.BodyPreview = BodyPreview; - - if (this.IsParameterBound(nameof(CancelledOccurrences))) - body.CancelledOccurrences = CancelledOccurrences!.ToList(); - - if (this.IsParameterBound(nameof(HasAttachments))) - body.HasAttachments = HasAttachments; - - if (this.IsParameterBound(nameof(HideAttendees))) - body.HideAttendees = HideAttendees; - - if (this.IsParameterBound(nameof(ICalUId))) - body.ICalUId = ICalUId; - - if (this.IsParameterBound(nameof(IsAllDay))) - body.IsAllDay = IsAllDay; - - if (this.IsParameterBound(nameof(IsCancelled))) - body.IsCancelled = IsCancelled; - - if (this.IsParameterBound(nameof(IsDraft))) - body.IsDraft = IsDraft; - - if (this.IsParameterBound(nameof(IsOnlineMeeting))) - body.IsOnlineMeeting = IsOnlineMeeting; - - if (this.IsParameterBound(nameof(IsOrganizer))) - body.IsOrganizer = IsOrganizer; - - if (this.IsParameterBound(nameof(IsReminderOn))) - body.IsReminderOn = IsReminderOn; - - if (this.IsParameterBound(nameof(OccurrenceId))) - body.OccurrenceId = OccurrenceId; - - if (this.IsParameterBound(nameof(OnlineMeetingUrl))) - body.OnlineMeetingUrl = OnlineMeetingUrl; - - if (this.IsParameterBound(nameof(OriginalEndTimeZone))) - body.OriginalEndTimeZone = OriginalEndTimeZone; - - if (this.IsParameterBound(nameof(OriginalStart))) - body.OriginalStart = OriginalStart; - - if (this.IsParameterBound(nameof(OriginalStartTimeZone))) - body.OriginalStartTimeZone = OriginalStartTimeZone; - - if (this.IsParameterBound(nameof(ReminderMinutesBeforeStart))) - body.ReminderMinutesBeforeStart = ReminderMinutesBeforeStart; - - if (this.IsParameterBound(nameof(ResponseRequested))) - body.ResponseRequested = ResponseRequested; - - if (this.IsParameterBound(nameof(SeriesMasterId))) - body.SeriesMasterId = SeriesMasterId; - - if (this.IsParameterBound(nameof(Subject))) - body.Subject = Subject; - - if (this.IsParameterBound(nameof(TransactionId))) - body.TransactionId = TransactionId; - - if (this.IsParameterBound(nameof(Uid))) - body.Uid = Uid; - - if (this.IsParameterBound(nameof(WebLink))) - body.WebLink = WebLink; - - if (this.IsParameterBound(nameof(Attendees))) - body.Attendees = Attendees!.ToList(); - - if (this.IsParameterBound(nameof(Body))) - body.Body = Body; - - if (this.IsParameterBound(nameof(End))) - body.End = End; - - if (this.IsParameterBound(nameof(Importance))) - body.Importance = Importance; - - if (this.IsParameterBound(nameof(Location))) - body.Location = Location; - - if (this.IsParameterBound(nameof(Locations))) - body.Locations = Locations!.ToList(); - - if (this.IsParameterBound(nameof(OnlineMeeting))) - body.OnlineMeeting = OnlineMeeting; - - if (this.IsParameterBound(nameof(OnlineMeetingProvider))) - body.OnlineMeetingProvider = OnlineMeetingProvider; - - if (this.IsParameterBound(nameof(Organizer))) - body.Organizer = Organizer; - - if (this.IsParameterBound(nameof(Recurrence))) - body.Recurrence = Recurrence; - - if (this.IsParameterBound(nameof(ResponseStatus))) - body.ResponseStatus = ResponseStatus; - - if (this.IsParameterBound(nameof(Sensitivity))) - body.Sensitivity = Sensitivity; - - if (this.IsParameterBound(nameof(ShowAs))) - body.ShowAs = ShowAs; - - if (this.IsParameterBound(nameof(Start))) - body.Start = Start; - - if (this.IsParameterBound(nameof(Type))) - body.Type = Type; - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events.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/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEventAttachment.g.cs deleted file mode 100644 index 01a83d9de9e..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEventAttachment.g.cs +++ /dev/null @@ -1,95 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments")] - [Cmdlet(VerbsCommon.New, "MgUserCalendarGroupCalendarEventAttachment", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment))] - public class NewMgUserCalendarGroupCalendarEventAttachmentCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { get; set; } = string.Empty; - - [Parameter(Mandatory = false)] - public string? ContentType { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsInline { get; set; } - - [Parameter(Mandatory = false)] - public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } - - [Parameter(Mandatory = false)] - public string? Name { get; set; } - - [Parameter(Mandatory = false)] - public int? Size { get; set; } - - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(EventId, "New")) - return; - - var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment(); - - if (this.IsParameterBound(nameof(ContentType))) - body.ContentType = ContentType; - - if (this.IsParameterBound(nameof(IsInline))) - body.IsInline = IsInline; - - if (this.IsParameterBound(nameof(LastModifiedDateTime))) - body.LastModifiedDateTime = LastModifiedDateTime; - - if (this.IsParameterBound(nameof(Name))) - body.Name = Name; - - if (this.IsParameterBound(nameof(Size))) - body.Size = Size; - - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Attachments.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/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEventExtension.g.cs deleted file mode 100644 index 86ba1caa460..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarEventExtension.g.cs +++ /dev/null @@ -1,67 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions")] - [Cmdlet(VerbsCommon.New, "MgUserCalendarGroupCalendarEventExtension", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] - public class NewMgUserCalendarGroupCalendarEventExtensionCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { get; set; } = string.Empty; - - - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(EventId, "New")) - return; - - var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension(); - - - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Extensions.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/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarPermission.g.cs deleted file mode 100644 index 70dbcf1b84f..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendarPermission.g.cs +++ /dev/null @@ -1,91 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("POST", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions")] - [Cmdlet(VerbsCommon.New, "MgUserCalendarGroupCalendarPermission", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission))] - public class NewMgUserCalendarGroupCalendarPermissionCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - - [Parameter(Mandatory = false)] - public bool? IsInsideOrganization { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsRemovable { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarRoleType?[]? AllowedRoles { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress? EmailAddress { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarRoleType? Role { get; set; } - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(CalendarId, "New")) - return; - - var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission(); - - if (this.IsParameterBound(nameof(IsInsideOrganization))) - body.IsInsideOrganization = IsInsideOrganization; - - if (this.IsParameterBound(nameof(IsRemovable))) - body.IsRemovable = IsRemovable; - - if (this.IsParameterBound(nameof(AllowedRoles))) - body.AllowedRoles = AllowedRoles!.ToList(); - - if (this.IsParameterBound(nameof(EmailAddress))) - body.EmailAddress = EmailAddress; - - if (this.IsParameterBound(nameof(Role))) - body.Role = Role; - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarPermissions.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/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEventAttachment.g.cs deleted file mode 100644 index 4c42baa4f9b..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEventAttachment.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.Calendar.Client; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("DELETE", "/groups/{group-id}/calendar/events/{event-id}/attachments/{attachment-id}")] - [Cmdlet(VerbsCommon.Remove, "MgGroupCalendarEventAttachment", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - public class RemoveMgGroupCalendarEventAttachmentCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string GroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string EventId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string AttachmentId { 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(AttachmentId, "Remove")) - return; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - // DeleteAsync returns a plain Task: a standard delete response has no body. - try - { - client.Groups[GroupId].Calendar.Events[EventId].Attachments[AttachmentId].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, AttachmentId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEventExtension.g.cs deleted file mode 100644 index ffb0c6a630b..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEventExtension.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.Calendar.Client; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("DELETE", "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}")] - [Cmdlet(VerbsCommon.Remove, "MgGroupCalendarEventExtension", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - public class RemoveMgGroupCalendarEventExtensionCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string GroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string EventId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string ExtensionId { 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(ExtensionId, "Remove")) - return; - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - // DeleteAsync returns a plain Task: a standard delete response has no body. - try - { - client.Groups[GroupId].Calendar.Events[EventId].Extensions[ExtensionId].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, ExtensionId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendar.g.cs deleted file mode 100644 index ce2f332d6a3..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendar.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.Calendar.Client; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("DELETE", "/users/{user-id}/calendars/{calendar-id}")] - [Cmdlet(VerbsCommon.Remove, "MgUserCalendar", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - public class RemoveMgUserCalendarCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarId { 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(CalendarId, "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].Calendars[CalendarId].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, CalendarId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendar.g.cs deleted file mode 100644 index e3cd402601f..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendar.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.Calendar.Client; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("DELETE", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}")] - [Cmdlet(VerbsCommon.Remove, "MgUserCalendarGroupCalendar", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - public class RemoveMgUserCalendarGroupCalendarCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { 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(CalendarId, "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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].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, CalendarId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEvent.g.cs deleted file mode 100644 index bd1591c78cc..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEvent.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.Calendar.Client; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("DELETE", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}")] - [Cmdlet(VerbsCommon.Remove, "MgUserCalendarGroupCalendarEvent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - public class RemoveMgUserCalendarGroupCalendarEventCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { 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(EventId, "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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].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, EventId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEventAttachment.g.cs deleted file mode 100644 index 9cd1b9a9706..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEventAttachment.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.Calendar.Client; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("DELETE", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}")] - [Cmdlet(VerbsCommon.Remove, "MgUserCalendarGroupCalendarEventAttachment", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - public class RemoveMgUserCalendarGroupCalendarEventAttachmentCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 4)] - public string AttachmentId { 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(AttachmentId, "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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Attachments[AttachmentId].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, AttachmentId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEventExtension.g.cs deleted file mode 100644 index 8d26033fb62..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarEventExtension.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.Calendar.Client; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("DELETE", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}")] - [Cmdlet(VerbsCommon.Remove, "MgUserCalendarGroupCalendarEventExtension", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - public class RemoveMgUserCalendarGroupCalendarEventExtensionCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 4)] - public string ExtensionId { 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(ExtensionId, "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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Extensions[ExtensionId].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, ExtensionId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarPermission.g.cs deleted file mode 100644 index 1a2077833a3..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroupCalendarPermission.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.Calendar.Client; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("DELETE", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}")] - [Cmdlet(VerbsCommon.Remove, "MgUserCalendarGroupCalendarPermission", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.High)] - public class RemoveMgUserCalendarGroupCalendarPermissionCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string CalendarPermissionId { 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(CalendarPermissionId, "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].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarPermissions[CalendarPermissionId].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, CalendarPermissionId); - return; - } - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarEventExtension.g.cs deleted file mode 100644 index 45b08b1584d..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarEventExtension.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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("PATCH", "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}")] - [Cmdlet(VerbsData.Update, "MgGroupCalendarEventExtension", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] - public class UpdateMgGroupCalendarEventExtensionCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string GroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string EventId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string ExtensionId { get; set; } = string.Empty; - - - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(ExtensionId, "Update")) - return; - - var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension(); - - - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; - try - { - result = client.Groups[GroupId].Calendar.Events[EventId].Extensions[ExtensionId].PatchAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, ExtensionId); - return; - } - - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Groups[GroupId].Calendar.Events[EventId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, ExtensionId); - return; - } - } - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendar.g.cs deleted file mode 100644 index 7dab606f196..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendar.g.cs +++ /dev/null @@ -1,170 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("PATCH", "/users/{user-id}/calendars/{calendar-id}")] - [Cmdlet(VerbsData.Update, "MgUserCalendar", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] - public class UpdateMgUserCalendarCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarId { get; set; } = string.Empty; - - [Parameter(Mandatory = false)] - public string? CalendarGroupId { get; set; } - - [Parameter(Mandatory = false)] - public bool? CanEdit { get; set; } - - [Parameter(Mandatory = false)] - public bool? CanShare { get; set; } - - [Parameter(Mandatory = false)] - public bool? CanViewPrivateItems { get; set; } - - [Parameter(Mandatory = false)] - public string? ChangeKey { get; set; } - - [Parameter(Mandatory = false)] - public string? HexColor { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsDefaultCalendar { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsRemovable { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsShared { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsSharedWithMe { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsTallyingResponses { get; set; } - - [Parameter(Mandatory = false)] - public string? Name { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType?[]? AllowedOnlineMeetingProviders { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarColor? Color { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType? DefaultOnlineMeetingProvider { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress? Owner { get; set; } - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(CalendarId, "Update")) - return; - - var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar(); - - if (this.IsParameterBound(nameof(CalendarGroupId))) - body.CalendarGroupId = CalendarGroupId; - - if (this.IsParameterBound(nameof(CanEdit))) - body.CanEdit = CanEdit; - - if (this.IsParameterBound(nameof(CanShare))) - body.CanShare = CanShare; - - if (this.IsParameterBound(nameof(CanViewPrivateItems))) - body.CanViewPrivateItems = CanViewPrivateItems; - - if (this.IsParameterBound(nameof(ChangeKey))) - body.ChangeKey = ChangeKey; - - if (this.IsParameterBound(nameof(HexColor))) - body.HexColor = HexColor; - - if (this.IsParameterBound(nameof(IsDefaultCalendar))) - body.IsDefaultCalendar = IsDefaultCalendar; - - if (this.IsParameterBound(nameof(IsRemovable))) - body.IsRemovable = IsRemovable; - - if (this.IsParameterBound(nameof(IsShared))) - body.IsShared = IsShared; - - if (this.IsParameterBound(nameof(IsSharedWithMe))) - body.IsSharedWithMe = IsSharedWithMe; - - if (this.IsParameterBound(nameof(IsTallyingResponses))) - body.IsTallyingResponses = IsTallyingResponses; - - if (this.IsParameterBound(nameof(Name))) - body.Name = Name; - - if (this.IsParameterBound(nameof(AllowedOnlineMeetingProviders))) - body.AllowedOnlineMeetingProviders = AllowedOnlineMeetingProviders!.ToList(); - - if (this.IsParameterBound(nameof(Color))) - body.Color = Color; - - if (this.IsParameterBound(nameof(DefaultOnlineMeetingProvider))) - body.DefaultOnlineMeetingProvider = DefaultOnlineMeetingProvider; - - if (this.IsParameterBound(nameof(Owner))) - body.Owner = Owner; - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar? result; - try - { - result = client.Users[UserId].Calendars[CalendarId].PatchAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CalendarId); - return; - } - - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Users[UserId].Calendars[CalendarId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CalendarId); - return; - } - } - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendar.g.cs deleted file mode 100644 index 500eb44c6f4..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendar.g.cs +++ /dev/null @@ -1,172 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("PATCH", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}")] - [Cmdlet(VerbsData.Update, "MgUserCalendarGroupCalendar", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar))] - public class UpdateMgUserCalendarGroupCalendarCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - - [Parameter(Mandatory = false)] - public string? CalendarGroupId1 { get; set; } - - [Parameter(Mandatory = false)] - public bool? CanEdit { get; set; } - - [Parameter(Mandatory = false)] - public bool? CanShare { get; set; } - - [Parameter(Mandatory = false)] - public bool? CanViewPrivateItems { get; set; } - - [Parameter(Mandatory = false)] - public string? ChangeKey { get; set; } - - [Parameter(Mandatory = false)] - public string? HexColor { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsDefaultCalendar { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsRemovable { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsShared { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsSharedWithMe { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsTallyingResponses { get; set; } - - [Parameter(Mandatory = false)] - public string? Name { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType?[]? AllowedOnlineMeetingProviders { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarColor? Color { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType? DefaultOnlineMeetingProvider { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress? Owner { get; set; } - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(CalendarId, "Update")) - return; - - var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar(); - - if (this.IsParameterBound(nameof(CalendarGroupId1))) - body.CalendarGroupId = CalendarGroupId1; - - if (this.IsParameterBound(nameof(CanEdit))) - body.CanEdit = CanEdit; - - if (this.IsParameterBound(nameof(CanShare))) - body.CanShare = CanShare; - - if (this.IsParameterBound(nameof(CanViewPrivateItems))) - body.CanViewPrivateItems = CanViewPrivateItems; - - if (this.IsParameterBound(nameof(ChangeKey))) - body.ChangeKey = ChangeKey; - - if (this.IsParameterBound(nameof(HexColor))) - body.HexColor = HexColor; - - if (this.IsParameterBound(nameof(IsDefaultCalendar))) - body.IsDefaultCalendar = IsDefaultCalendar; - - if (this.IsParameterBound(nameof(IsRemovable))) - body.IsRemovable = IsRemovable; - - if (this.IsParameterBound(nameof(IsShared))) - body.IsShared = IsShared; - - if (this.IsParameterBound(nameof(IsSharedWithMe))) - body.IsSharedWithMe = IsSharedWithMe; - - if (this.IsParameterBound(nameof(IsTallyingResponses))) - body.IsTallyingResponses = IsTallyingResponses; - - if (this.IsParameterBound(nameof(Name))) - body.Name = Name; - - if (this.IsParameterBound(nameof(AllowedOnlineMeetingProviders))) - body.AllowedOnlineMeetingProviders = AllowedOnlineMeetingProviders!.ToList(); - - if (this.IsParameterBound(nameof(Color))) - body.Color = Color; - - if (this.IsParameterBound(nameof(DefaultOnlineMeetingProvider))) - body.DefaultOnlineMeetingProvider = DefaultOnlineMeetingProvider; - - if (this.IsParameterBound(nameof(Owner))) - body.Owner = Owner; - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].PatchAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CalendarId); - return; - } - - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CalendarId); - return; - } - } - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarEvent.g.cs deleted file mode 100644 index 56f5a67ff8c..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarEvent.g.cs +++ /dev/null @@ -1,336 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("PATCH", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}")] - [Cmdlet(VerbsData.Update, "MgUserCalendarGroupCalendarEvent", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Event))] - public class UpdateMgUserCalendarGroupCalendarEventCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { get; set; } = string.Empty; - - [Parameter(Mandatory = false)] - public string[]? Categories { get; set; } - - [Parameter(Mandatory = false)] - public string? ChangeKey { get; set; } - - [Parameter(Mandatory = false)] - public global::System.DateTimeOffset? CreatedDateTime { get; set; } - - [Parameter(Mandatory = false)] - public global::System.DateTimeOffset? LastModifiedDateTime { get; set; } - - [Parameter(Mandatory = false)] - public bool? AllowNewTimeProposals { get; set; } - - [Parameter(Mandatory = false)] - public string? BodyPreview { get; set; } - - [Parameter(Mandatory = false)] - public string[]? CancelledOccurrences { get; set; } - - [Parameter(Mandatory = false)] - public bool? HasAttachments { get; set; } - - [Parameter(Mandatory = false)] - public bool? HideAttendees { get; set; } - - [Parameter(Mandatory = false)] - public string? ICalUId { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsAllDay { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsCancelled { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsDraft { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsOnlineMeeting { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsOrganizer { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsReminderOn { get; set; } - - [Parameter(Mandatory = false)] - public string? OccurrenceId { get; set; } - - [Parameter(Mandatory = false)] - public string? OnlineMeetingUrl { get; set; } - - [Parameter(Mandatory = false)] - public string? OriginalEndTimeZone { get; set; } - - [Parameter(Mandatory = false)] - public global::System.DateTimeOffset? OriginalStart { get; set; } - - [Parameter(Mandatory = false)] - public string? OriginalStartTimeZone { get; set; } - - [Parameter(Mandatory = false)] - public int? ReminderMinutesBeforeStart { get; set; } - - [Parameter(Mandatory = false)] - public bool? ResponseRequested { get; set; } - - [Parameter(Mandatory = false)] - public string? SeriesMasterId { get; set; } - - [Parameter(Mandatory = false)] - public string? Subject { get; set; } - - [Parameter(Mandatory = false)] - public string? TransactionId { get; set; } - - [Parameter(Mandatory = false)] - public string? Uid { get; set; } - - [Parameter(Mandatory = false)] - public string? WebLink { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.Attendee[]? Attendees { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.ItemBody? Body { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? End { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.Importance? Importance { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location? Location { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.Location[]? Locations { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingInfo? OnlineMeeting { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.OnlineMeetingProviderType? OnlineMeetingProvider { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.Recipient? Organizer { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.PatternedRecurrence? Recurrence { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.ResponseStatus? ResponseStatus { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.Sensitivity? Sensitivity { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.FreeBusyStatus? ShowAs { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.DateTimeTimeZone? Start { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.EventType? Type { get; set; } - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(EventId, "Update")) - return; - - var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Event(); - - if (this.IsParameterBound(nameof(Categories))) - body.Categories = Categories!.ToList(); - - if (this.IsParameterBound(nameof(ChangeKey))) - body.ChangeKey = ChangeKey; - - if (this.IsParameterBound(nameof(CreatedDateTime))) - body.CreatedDateTime = CreatedDateTime; - - if (this.IsParameterBound(nameof(LastModifiedDateTime))) - body.LastModifiedDateTime = LastModifiedDateTime; - - if (this.IsParameterBound(nameof(AllowNewTimeProposals))) - body.AllowNewTimeProposals = AllowNewTimeProposals; - - if (this.IsParameterBound(nameof(BodyPreview))) - body.BodyPreview = BodyPreview; - - if (this.IsParameterBound(nameof(CancelledOccurrences))) - body.CancelledOccurrences = CancelledOccurrences!.ToList(); - - if (this.IsParameterBound(nameof(HasAttachments))) - body.HasAttachments = HasAttachments; - - if (this.IsParameterBound(nameof(HideAttendees))) - body.HideAttendees = HideAttendees; - - if (this.IsParameterBound(nameof(ICalUId))) - body.ICalUId = ICalUId; - - if (this.IsParameterBound(nameof(IsAllDay))) - body.IsAllDay = IsAllDay; - - if (this.IsParameterBound(nameof(IsCancelled))) - body.IsCancelled = IsCancelled; - - if (this.IsParameterBound(nameof(IsDraft))) - body.IsDraft = IsDraft; - - if (this.IsParameterBound(nameof(IsOnlineMeeting))) - body.IsOnlineMeeting = IsOnlineMeeting; - - if (this.IsParameterBound(nameof(IsOrganizer))) - body.IsOrganizer = IsOrganizer; - - if (this.IsParameterBound(nameof(IsReminderOn))) - body.IsReminderOn = IsReminderOn; - - if (this.IsParameterBound(nameof(OccurrenceId))) - body.OccurrenceId = OccurrenceId; - - if (this.IsParameterBound(nameof(OnlineMeetingUrl))) - body.OnlineMeetingUrl = OnlineMeetingUrl; - - if (this.IsParameterBound(nameof(OriginalEndTimeZone))) - body.OriginalEndTimeZone = OriginalEndTimeZone; - - if (this.IsParameterBound(nameof(OriginalStart))) - body.OriginalStart = OriginalStart; - - if (this.IsParameterBound(nameof(OriginalStartTimeZone))) - body.OriginalStartTimeZone = OriginalStartTimeZone; - - if (this.IsParameterBound(nameof(ReminderMinutesBeforeStart))) - body.ReminderMinutesBeforeStart = ReminderMinutesBeforeStart; - - if (this.IsParameterBound(nameof(ResponseRequested))) - body.ResponseRequested = ResponseRequested; - - if (this.IsParameterBound(nameof(SeriesMasterId))) - body.SeriesMasterId = SeriesMasterId; - - if (this.IsParameterBound(nameof(Subject))) - body.Subject = Subject; - - if (this.IsParameterBound(nameof(TransactionId))) - body.TransactionId = TransactionId; - - if (this.IsParameterBound(nameof(Uid))) - body.Uid = Uid; - - if (this.IsParameterBound(nameof(WebLink))) - body.WebLink = WebLink; - - if (this.IsParameterBound(nameof(Attendees))) - body.Attendees = Attendees!.ToList(); - - if (this.IsParameterBound(nameof(Body))) - body.Body = Body; - - if (this.IsParameterBound(nameof(End))) - body.End = End; - - if (this.IsParameterBound(nameof(Importance))) - body.Importance = Importance; - - if (this.IsParameterBound(nameof(Location))) - body.Location = Location; - - if (this.IsParameterBound(nameof(Locations))) - body.Locations = Locations!.ToList(); - - if (this.IsParameterBound(nameof(OnlineMeeting))) - body.OnlineMeeting = OnlineMeeting; - - if (this.IsParameterBound(nameof(OnlineMeetingProvider))) - body.OnlineMeetingProvider = OnlineMeetingProvider; - - if (this.IsParameterBound(nameof(Organizer))) - body.Organizer = Organizer; - - if (this.IsParameterBound(nameof(Recurrence))) - body.Recurrence = Recurrence; - - if (this.IsParameterBound(nameof(ResponseStatus))) - body.ResponseStatus = ResponseStatus; - - if (this.IsParameterBound(nameof(Sensitivity))) - body.Sensitivity = Sensitivity; - - if (this.IsParameterBound(nameof(ShowAs))) - body.ShowAs = ShowAs; - - if (this.IsParameterBound(nameof(Start))) - body.Start = Start; - - if (this.IsParameterBound(nameof(Type))) - body.Type = Type; - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].PatchAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, EventId); - return; - } - - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, EventId); - return; - } - } - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarEventExtension.g.cs deleted file mode 100644 index 67f132a4f95..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarEventExtension.g.cs +++ /dev/null @@ -1,84 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("PATCH", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}")] - [Cmdlet(VerbsData.Update, "MgUserCalendarGroupCalendarEventExtension", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension))] - public class UpdateMgUserCalendarGroupCalendarEventExtensionCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string EventId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 4)] - public string ExtensionId { get; set; } = string.Empty; - - - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(ExtensionId, "Update")) - return; - - var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension(); - - - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Extensions[ExtensionId].PatchAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, ExtensionId); - return; - } - - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].Events[EventId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, ExtensionId); - return; - } - } - if (result is not null) - WriteObject(result); - } - } -} diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarPermission.g.cs deleted file mode 100644 index d17e08e225d..00000000000 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroupCalendarPermission.g.cs +++ /dev/null @@ -1,108 +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.Calendar.Client; -using Microsoft.Graph.PowerShell.Calendar.Client.Models; -using Microsoft.Kiota.Abstractions.Authentication; -using Microsoft.Kiota.Http.HttpClientLibrary; - -namespace Microsoft.Graph.PowerShell.Calendar -{ - [GraphRoute("PATCH", "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}")] - [Cmdlet(VerbsData.Update, "MgUserCalendarGroupCalendarPermission", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] - [OutputType(typeof(Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission))] - public class UpdateMgUserCalendarGroupCalendarPermissionCommand : GraphClientCmdlet - { - [Parameter(Mandatory = true, Position = 0)] - public string UserId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 1)] - public string CalendarGroupId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 2)] - public string CalendarId { get; set; } = string.Empty; - [Parameter(Mandatory = true, Position = 3)] - public string CalendarPermissionId { get; set; } = string.Empty; - - [Parameter(Mandatory = false)] - public bool? IsInsideOrganization { get; set; } - - [Parameter(Mandatory = false)] - public bool? IsRemovable { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarRoleType?[]? AllowedRoles { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.EmailAddress? EmailAddress { get; set; } - - [Parameter(Mandatory = false)] - public Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarRoleType? Role { get; set; } - - - - - - - protected override void ProcessRecord() - { - if (!ShouldProcess(CalendarPermissionId, "Update")) - return; - - var body = new Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission(); - - if (this.IsParameterBound(nameof(IsInsideOrganization))) - body.IsInsideOrganization = IsInsideOrganization; - - if (this.IsParameterBound(nameof(IsRemovable))) - body.IsRemovable = IsRemovable; - - if (this.IsParameterBound(nameof(AllowedRoles))) - body.AllowedRoles = AllowedRoles!.ToList(); - - if (this.IsParameterBound(nameof(EmailAddress))) - body.EmailAddress = EmailAddress; - - if (this.IsParameterBound(nameof(Role))) - body.Role = Role; - - - var requestAdapter = GetRequestAdapter(); - var client = new ApiClient(requestAdapter); - - Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission? result; - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarPermissions[CalendarPermissionId].PatchAsync(body, requestConfiguration => - { - - AddRequestHeaders(requestConfiguration.Headers); - }).GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CalendarPermissionId); - return; - } - - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].Calendars[CalendarId].CalendarPermissions[CalendarPermissionId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CalendarPermissionId); - return; - } - } - if (result is not null) - WriteObject(result); - } - } -} From 8af58b2fb55985117e8f474f4395a779fe52977c Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Tue, 27 Oct 2026 12:01:03 -0700 Subject: [PATCH 10/24] Refresh Calendar migration evidence for aligned operation IDs Integrate powershell-v3 abab9dac and prove the current 136 v1.0 and 137 beta literal selector matches exactly equal every surviving actual legacy match. Refresh all current operation IDs and compatible spec hashes, use the existing inventory schema without reserved Legacy fields, and retain independent complete legacy path/kind proof in module tests and notes. All six groups pass the current strict inventory and 130 targeted regressions pass. Preserve original migration and separate profile generation history; current full generations follow separately. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- src/Calendar/Calendar.md | 13 +- .../Calendar_directiveMigrationMap.json | 1276 ++++------------- .../CalendarDirectiveMigrationTests.cs | 76 +- 3 files changed, 357 insertions(+), 1008 deletions(-) diff --git a/src/Calendar/Calendar.md b/src/Calendar/Calendar.md index 70301a7984a..e3a991c91bd 100644 --- a/src/Calendar/Calendar.md +++ b/src/Calendar/Calendar.md @@ -19,13 +19,14 @@ require: directive: # Remove paths that are not valid. # Wrapper migration: evaluate this selector against the actual legacy profile. -# All 136 v1.0 and 137 beta matches survive in the compatible specs, including -# renamed CRUD IDs and qualified-to-bare action/function paths. The adjacent ledger -# records exact old/new method/path/ID evidence; 26 literal compatible-ID matches -# alone are incomplete. Exact module entries cover both profiles without relying -# on v1.0-only derived data. No surviving legacy match is classified as absent. +# All 136 v1.0 and 137 beta matches survive in the current compatible specs. +# Operation-ID alignment now makes the literal current selector cover that exact +# set; the adjacent ledger uses the existing inventory schema. Module tests retain +# independent complete legacy proof, including qualified final action/function +# paths. Exact entries cover both profiles without relying on v1.0-only derived +# data. No surviving legacy match is classified as absent. # The ledger separately reconciles six existing derived collision suppressions -# across both profiles; these are not counted as literal legacy-regex matches. +# across both profiles; their separate provenance does not broaden this selector. - remove-path-by-operation: (user|group)_(Update|Delete)Calendar$|(user|group)..*_(Get|Create|Update|Delete)CalendarView$|(user|group).(calendar).calendarView.*$|user.calendar_(Get|Update|Delete)Event$|(user|group).(calendar).event.*$|(user|group)_.*CalendarView$|(user|group).calendarView.*$|user.calendarGroup_(Get|Update|Delete)Calendar$|user.calendarGroup.calendar.*$|(group|user).event_(Create|Update|Create)Calendar$|(user|group).event.calendar.*$|placeAsRoomList.room_(Get|Update|Delete)GraphBPrePlaceId$|placeAsRoomList.workspace_(Get|Update|Delete)GraphBPrePlaceId$ # Rename cmdlets. # Wrapper migration: exact noun and Invoke verb fallbacks cover the default-user- diff --git a/src/Calendar/wrapper/Calendar_directiveMigrationMap.json b/src/Calendar/wrapper/Calendar_directiveMigrationMap.json index ade801d3b5a..bb90b5ad014 100644 --- a/src/Calendar/wrapper/Calendar_directiveMigrationMap.json +++ b/src/Calendar/wrapper/Calendar_directiveMigrationMap.json @@ -1,9 +1,9 @@ { "scope": "Only src/Calendar/Calendar.md; global and profile-local directives are excluded. Parameter aliases/transforms and schema/response directives remain deferred.", - "prerequisite": "Reviewed inventory PR #3837 and shared-framework follow-up PR #3838 are merged. Final directive-1 validation additionally requires centrally reviewed Legacy-source inventory support, including explicit qualified-to-bare final action/function translations. No module-local framework patches are introduced.", + "prerequisite": "Reviewed inventory #3837 and verb support #3838 are merged. Current powershell-v3 target abab9dac88dd1e1d15e8e43fa766ab9be7cba34d includes aligned operation IDs #3861 and refreshed compatible specs #3863: the existing literal inventory schema now validates the complete 136/137-operation source set without unmerged #3847 or reserved Legacy translation fields. Independent legacy proof remains in these notes, source blob hashes, and module tests.", "specBlobs": { - "v1.0": "f8cbbb7420cd4c881bae4662fd0a3ff5bcc3182b", - "beta": "a1b424a75a626b3a390e1993de3cda01264a3959" + "v1.0": "9371766a3e422aec32ba2b68d096e2fd4d115042", + "beta": "5baa13cd8fe2804cea0ecf4a59f7815728b55a67" }, "collisionReconciliation": { "source": "tools/WrapperGenerator/data/collision-suppressions.v1.0.json", @@ -14,32 +14,32 @@ { "method": "GET", "path": "/groups/{group-id}/calendarView", - "operationId": "groups.ListCalendarView" + "operationId": "group_ListCalendarView" }, { "method": "GET", "path": "/users/{user-id}/calendarView", - "operationId": "users.ListCalendarView" + "operationId": "user_ListCalendarView" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/calendarView", - "operationId": "users.calendars.ListCalendarView" + "operationId": "user.calendar_ListCalendarView" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/$count", - "operationId": "users.calendar.events.GetCount-1a22" + "operationId": "user.calendar.event_GetCount" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/$count", - "operationId": "users.calendars.events.GetCount-efc7" + "operationId": "user.calendar.event_GetCount" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/permanentDelete", - "operationId": "users.user.calendars.calendar.permanentDelete" + "operationId": "user.calendar_permanentDelete" } ] }, @@ -48,32 +48,32 @@ { "method": "GET", "path": "/groups/{group-id}/calendarView", - "operationId": "groups.ListCalendarView" + "operationId": "group_ListCalendarView" }, { "method": "GET", "path": "/users/{user-id}/calendarView", - "operationId": "users.ListCalendarView" + "operationId": "user_ListCalendarView" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/calendarView", - "operationId": "users.calendars.ListCalendarView" + "operationId": "user.calendar_ListCalendarView" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/$count", - "operationId": "users.calendar.events.GetCount-1a22" + "operationId": "user.calendar.event_GetCount" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/$count", - "operationId": "users.calendars.events.GetCount-efc7" + "operationId": "user.calendar.event_GetCount" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/permanentDelete", - "operationId": "users.user.calendars.calendar.permanentDelete" + "operationId": "user.calendar_permanentDelete" } ] } @@ -86,2037 +86,1382 @@ "classification": "OperationIdSuppression", "sourceContains": "remove-path-by-operation: (user|group)_(Update|Delete)Calendar$", "implementation": "CmdletConfigurator", - "notes": "Apply the unchanged case-sensitive selector to actual same-profile openApiDocs legacy IDs, not the converted ID spelling. All 136 v1.0 and 137 beta matches have compatible successors; none are removed. In each profile 83 bridge by identical method/normalized path; the remaining 53 v1.0 and 54 beta differ only by the final microsoft.graph.-qualified action/function segment, with matching actual operation types. The ledger preserves exact old/new IDs and paths for every successor. The 26 literal compatible-ID matches are only a subset. Earlier compiled output incorrectly retained two v1.0 and 63 beta operations; exact additional entries correct these leaks, retaining unrelated collection and event-item routes. No broad subject-derived regex or guessed absence is used.", + "notes": "Evaluate the unchanged case-sensitive selector against both actual legacy and current compatible specs. All 136 v1.0 and 137 beta legacy matches survive and now also match the aligned current IDs literally; the current method/path set exactly equals every prior reviewed survivor. In each profile 83 paths are identical after normalization, while 53 v1.0 and 54 beta pairs differ only in the final microsoft.graph.-qualified action/function segment with matching actual operation types and HTTP methods. Module tests independently prove complete unique old/current correspondence; no Legacy-only schema fields or removed-operation claims are needed. Preserve the exact suppressions that corrected the earlier two v1.0 and 63 beta leaks, including unaffected collections and item neighbors.", "profiles": { "v1.0": { - "operationIdSource": "Legacy", - "notes": "All 136 actual legacy selector matches survive: 83 identical normalized routes plus 53 final qualified action/function translations with matching actual operation types. No removed legacy operations.", + "notes": "Current literal selector matches all 136 surviving legacy-selected operations, exactly the prior reviewed route set. Tests independently bridge 83 identical normalized routes and 53 final qualified action/function paths using matching actual operation types. No missing or removed survivors.", "absenceExpected": false, "operations": [ { "method": "GET", "path": "/groups/{group-id}/calendar/calendarView/delta()", - "operationId": "groups.group.calendar.calendarView.delta", - "legacyPath": "/groups/{group-id}/calendar/calendarView/microsoft.graph.delta()", - "legacyOperationId": "group.calendar.calendarView_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.calendarView_delta" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/attachments", - "operationId": "groups.calendar.events.ListAttachments", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments", - "legacyOperationId": "group.calendar.event_ListAttachment" + "operationId": "group.calendar.event_ListAttachment" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/attachments", - "operationId": "groups.calendar.events.CreateAttachments", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments", - "legacyOperationId": "group.calendar.event_CreateAttachment" + "operationId": "group.calendar.event_CreateAttachment" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/{attachment-id}", - "operationId": "groups.calendar.events.GetAttachments", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments/{attachment-id}", - "legacyOperationId": "group.calendar.event_GetAttachment" + "operationId": "group.calendar.event_GetAttachment" }, { "method": "DELETE", "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/{attachment-id}", - "operationId": "groups.calendar.events.DeleteAttachments", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments/{attachment-id}", - "legacyOperationId": "group.calendar.event_DeleteAttachment" + "operationId": "group.calendar.event_DeleteAttachment" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/$count", - "operationId": "groups.calendar.events.attachments.GetCount-a03a", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments/$count", - "legacyOperationId": "group.calendar.event.attachment_GetCount" + "operationId": "group.calendar.event.attachment_GetCount" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/createUploadSession", - "operationId": "groups.group.calendar.events.event.attachments.createUploadSession", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments/microsoft.graph.createUploadSession", - "legacyOperationId": "group.calendar.event.attachment_createUploadSession", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event.attachment_createUploadSession" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/calendar", - "operationId": "groups.calendar.events.GetCalendar", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/calendar", - "legacyOperationId": "group.calendar.event_GetCalendar" + "operationId": "group.calendar.event_GetCalendar" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/extensions", - "operationId": "groups.calendar.events.ListExtensions", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions", - "legacyOperationId": "group.calendar.event_ListExtension" + "operationId": "group.calendar.event_ListExtension" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/extensions", - "operationId": "groups.calendar.events.CreateExtensions", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions", - "legacyOperationId": "group.calendar.event_CreateExtension" + "operationId": "group.calendar.event_CreateExtension" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", - "operationId": "groups.calendar.events.GetExtensions", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "group.calendar.event_GetExtension" + "operationId": "group.calendar.event_GetExtension" }, { "method": "PATCH", "path": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", - "operationId": "groups.calendar.events.UpdateExtensions", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "group.calendar.event_UpdateExtension" + "operationId": "group.calendar.event_UpdateExtension" }, { "method": "DELETE", "path": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", - "operationId": "groups.calendar.events.DeleteExtensions", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "group.calendar.event_DeleteExtension" + "operationId": "group.calendar.event_DeleteExtension" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/extensions/$count", - "operationId": "groups.calendar.events.extensions.GetCount-d77e", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions/$count", - "legacyOperationId": "group.calendar.event.extension_GetCount" + "operationId": "group.calendar.event.extension_GetCount" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/instances", - "operationId": "groups.calendar.events.ListInstances", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/instances", - "legacyOperationId": "group.calendar.event_ListInstance" + "operationId": "group.calendar.event_ListInstance" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/instances/delta()", - "operationId": "groups.group.calendar.events.event.instances.delta", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/instances/microsoft.graph.delta()", - "legacyOperationId": "group.calendar.event.instance_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event.instance_delta" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/accept", - "operationId": "groups.group.calendar.events.event.accept", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.accept", - "legacyOperationId": "group.calendar.event_accept", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event_accept" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/cancel", - "operationId": "groups.group.calendar.events.event.cancel", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.cancel", - "legacyOperationId": "group.calendar.event_cancel", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event_cancel" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/decline", - "operationId": "groups.group.calendar.events.event.decline", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.decline", - "legacyOperationId": "group.calendar.event_decline", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event_decline" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/dismissReminder", - "operationId": "groups.group.calendar.events.event.dismissReminder", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.dismissReminder", - "legacyOperationId": "group.calendar.event_dismissReminder", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event_dismissReminder" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/forward", - "operationId": "groups.group.calendar.events.event.forward", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.forward", - "legacyOperationId": "group.calendar.event_forward", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event_forward" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/permanentDelete", - "operationId": "groups.group.calendar.events.event.permanentDelete", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.permanentDelete", - "legacyOperationId": "group.calendar.event_permanentDelete", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event_permanentDelete" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/snoozeReminder", - "operationId": "groups.group.calendar.events.event.snoozeReminder", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.snoozeReminder", - "legacyOperationId": "group.calendar.event_snoozeReminder", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event_snoozeReminder" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/tentativelyAccept", - "operationId": "groups.group.calendar.events.event.tentativelyAccept", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.tentativelyAccept", - "legacyOperationId": "group.calendar.event_tentativelyAccept", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event_tentativelyAccept" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/$count", - "operationId": "groups.calendar.events.GetCount-b856", - "legacyPath": "/groups/{group-id}/calendar/events/$count", - "legacyOperationId": "group.calendar.event_GetCount" + "operationId": "group.calendar.event_GetCount" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/delta()", - "operationId": "groups.group.calendar.events.delta", - "legacyPath": "/groups/{group-id}/calendar/events/microsoft.graph.delta()", - "legacyOperationId": "group.calendar.event_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event_delta" }, { "method": "GET", "path": "/groups/{group-id}/calendarView", - "operationId": "groups.ListCalendarView", - "legacyPath": "/groups/{group-id}/calendarView", - "legacyOperationId": "group_ListCalendarView" + "operationId": "group_ListCalendarView" }, { "method": "GET", "path": "/groups/{group-id}/calendarView/delta()", - "operationId": "groups.group.calendarView.delta", - "legacyPath": "/groups/{group-id}/calendarView/microsoft.graph.delta()", - "legacyOperationId": "group.calendarView_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendarView_delta" }, { "method": "PATCH", "path": "/users/{user-id}/calendar", - "operationId": "users.UpdateCalendar", - "legacyPath": "/users/{user-id}/calendar", - "legacyOperationId": "user_UpdateCalendar" + "operationId": "user_UpdateCalendar" }, { "method": "GET", "path": "/users/{user-id}/calendar/calendarView/delta()", - "operationId": "users.user.calendar.calendarView.delta", - "legacyPath": "/users/{user-id}/calendar/calendarView/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.calendarView_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.calendarView_delta" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}", - "operationId": "users.calendar.GetEvents", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}", - "legacyOperationId": "user.calendar_GetEvent" + "operationId": "user.calendar_GetEvent" }, { "method": "PATCH", "path": "/users/{user-id}/calendar/events/{event-id}", - "operationId": "users.calendar.UpdateEvents", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}", - "legacyOperationId": "user.calendar_UpdateEvent" + "operationId": "user.calendar_UpdateEvent" }, { "method": "DELETE", "path": "/users/{user-id}/calendar/events/{event-id}", - "operationId": "users.calendar.DeleteEvents", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}", - "legacyOperationId": "user.calendar_DeleteEvent" + "operationId": "user.calendar_DeleteEvent" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/attachments", - "operationId": "users.calendar.events.ListAttachments", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments", - "legacyOperationId": "user.calendar.event_ListAttachment" + "operationId": "user.calendar.event_ListAttachment" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/attachments", - "operationId": "users.calendar.events.CreateAttachments", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments", - "legacyOperationId": "user.calendar.event_CreateAttachment" + "operationId": "user.calendar.event_CreateAttachment" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/attachments/{attachment-id}", - "operationId": "users.calendar.events.GetAttachments", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments/{attachment-id}", - "legacyOperationId": "user.calendar.event_GetAttachment" + "operationId": "user.calendar.event_GetAttachment" }, { "method": "DELETE", "path": "/users/{user-id}/calendar/events/{event-id}/attachments/{attachment-id}", - "operationId": "users.calendar.events.DeleteAttachments", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments/{attachment-id}", - "legacyOperationId": "user.calendar.event_DeleteAttachment" + "operationId": "user.calendar.event_DeleteAttachment" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/attachments/$count", - "operationId": "users.calendar.events.attachments.GetCount-114f", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments/$count", - "legacyOperationId": "user.calendar.event.attachment_GetCount" + "operationId": "user.calendar.event.attachment_GetCount" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/attachments/createUploadSession", - "operationId": "users.user.calendar.events.event.attachments.createUploadSession", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments/microsoft.graph.createUploadSession", - "legacyOperationId": "user.calendar.event.attachment_createUploadSession", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event.attachment_createUploadSession" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/calendar", - "operationId": "users.calendar.events.GetCalendar", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/calendar", - "legacyOperationId": "user.calendar.event_GetCalendar" + "operationId": "user.calendar.event_GetCalendar" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/extensions", - "operationId": "users.calendar.events.ListExtensions", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions", - "legacyOperationId": "user.calendar.event_ListExtension" + "operationId": "user.calendar.event_ListExtension" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/extensions", - "operationId": "users.calendar.events.CreateExtensions", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions", - "legacyOperationId": "user.calendar.event_CreateExtension" + "operationId": "user.calendar.event_CreateExtension" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", - "operationId": "users.calendar.events.GetExtensions", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "user.calendar.event_GetExtension" + "operationId": "user.calendar.event_GetExtension" }, { "method": "PATCH", "path": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", - "operationId": "users.calendar.events.UpdateExtensions", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "user.calendar.event_UpdateExtension" + "operationId": "user.calendar.event_UpdateExtension" }, { "method": "DELETE", "path": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", - "operationId": "users.calendar.events.DeleteExtensions", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "user.calendar.event_DeleteExtension" + "operationId": "user.calendar.event_DeleteExtension" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/extensions/$count", - "operationId": "users.calendar.events.extensions.GetCount-15ec", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions/$count", - "legacyOperationId": "user.calendar.event.extension_GetCount" + "operationId": "user.calendar.event.extension_GetCount" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/instances", - "operationId": "users.calendar.events.ListInstances", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/instances", - "legacyOperationId": "user.calendar.event_ListInstance" + "operationId": "user.calendar.event_ListInstance" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/instances/delta()", - "operationId": "users.user.calendar.events.event.instances.delta", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/instances/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.event.instance_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event.instance_delta" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/accept", - "operationId": "users.user.calendar.events.event.accept", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.accept", - "legacyOperationId": "user.calendar.event_accept", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_accept" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/cancel", - "operationId": "users.user.calendar.events.event.cancel", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.cancel", - "legacyOperationId": "user.calendar.event_cancel", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_cancel" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/decline", - "operationId": "users.user.calendar.events.event.decline", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.decline", - "legacyOperationId": "user.calendar.event_decline", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_decline" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/dismissReminder", - "operationId": "users.user.calendar.events.event.dismissReminder", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.dismissReminder", - "legacyOperationId": "user.calendar.event_dismissReminder", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_dismissReminder" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/forward", - "operationId": "users.user.calendar.events.event.forward", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.forward", - "legacyOperationId": "user.calendar.event_forward", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_forward" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/permanentDelete", - "operationId": "users.user.calendar.events.event.permanentDelete", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.permanentDelete", - "legacyOperationId": "user.calendar.event_permanentDelete", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_permanentDelete" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/snoozeReminder", - "operationId": "users.user.calendar.events.event.snoozeReminder", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.snoozeReminder", - "legacyOperationId": "user.calendar.event_snoozeReminder", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_snoozeReminder" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/tentativelyAccept", - "operationId": "users.user.calendar.events.event.tentativelyAccept", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.tentativelyAccept", - "legacyOperationId": "user.calendar.event_tentativelyAccept", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_tentativelyAccept" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/$count", - "operationId": "users.calendar.events.GetCount-1a22", - "legacyPath": "/users/{user-id}/calendar/events/$count", - "legacyOperationId": "user.calendar.event_GetCount" + "operationId": "user.calendar.event_GetCount" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/delta()", - "operationId": "users.user.calendar.events.delta", - "legacyPath": "/users/{user-id}/calendar/events/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.event_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_delta" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", - "operationId": "users.calendarGroups.GetCalendars", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", - "legacyOperationId": "user.calendarGroup_GetCalendar" + "operationId": "user.calendarGroup_GetCalendar" }, { "method": "PATCH", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", - "operationId": "users.calendarGroups.UpdateCalendars", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", - "legacyOperationId": "user.calendarGroup_UpdateCalendar" + "operationId": "user.calendarGroup_UpdateCalendar" }, { "method": "DELETE", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", - "operationId": "users.calendarGroups.DeleteCalendars", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", - "legacyOperationId": "user.calendarGroup_DeleteCalendar" + "operationId": "user.calendarGroup_DeleteCalendar" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions", - "operationId": "users.calendarGroups.calendars.ListCalendarPermissions", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions", - "legacyOperationId": "user.calendarGroup.calendar_ListCalendarPermission" + "operationId": "user.calendarGroup.calendar_ListCalendarPermission" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions", - "operationId": "users.calendarGroups.calendars.CreateCalendarPermissions", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions", - "legacyOperationId": "user.calendarGroup.calendar_CreateCalendarPermission" + "operationId": "user.calendarGroup.calendar_CreateCalendarPermission" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", - "operationId": "users.calendarGroups.calendars.GetCalendarPermissions", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", - "legacyOperationId": "user.calendarGroup.calendar_GetCalendarPermission" + "operationId": "user.calendarGroup.calendar_GetCalendarPermission" }, { "method": "PATCH", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", - "operationId": "users.calendarGroups.calendars.UpdateCalendarPermissions", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", - "legacyOperationId": "user.calendarGroup.calendar_UpdateCalendarPermission" + "operationId": "user.calendarGroup.calendar_UpdateCalendarPermission" }, { "method": "DELETE", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", - "operationId": "users.calendarGroups.calendars.DeleteCalendarPermissions", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", - "legacyOperationId": "user.calendarGroup.calendar_DeleteCalendarPermission" + "operationId": "user.calendarGroup.calendar_DeleteCalendarPermission" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/$count", - "operationId": "users.calendarGroups.calendars.calendarPermissions.GetCount-98a8", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/$count", - "legacyOperationId": "user.calendarGroup.calendar.calendarPermission_GetCount" + "operationId": "user.calendarGroup.calendar.calendarPermission_GetCount" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView", - "operationId": "users.calendarGroups.calendars.ListCalendarView", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView", - "legacyOperationId": "user.calendarGroup.calendar_ListCalendarView" + "operationId": "user.calendarGroup.calendar_ListCalendarView" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/delta()", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.calendarView.delta", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/microsoft.graph.delta()", - "legacyOperationId": "user.calendarGroup.calendar.calendarView_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.calendarView_delta" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events", - "operationId": "users.calendarGroups.calendars.ListEvents", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events", - "legacyOperationId": "user.calendarGroup.calendar_ListEvent" + "operationId": "user.calendarGroup.calendar_ListEvent" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events", - "operationId": "users.calendarGroups.calendars.CreateEvents", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events", - "legacyOperationId": "user.calendarGroup.calendar_CreateEvent" + "operationId": "user.calendarGroup.calendar_CreateEvent" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", - "operationId": "users.calendarGroups.calendars.GetEvents", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", - "legacyOperationId": "user.calendarGroup.calendar_GetEvent" + "operationId": "user.calendarGroup.calendar_GetEvent" }, { "method": "PATCH", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", - "operationId": "users.calendarGroups.calendars.UpdateEvents", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", - "legacyOperationId": "user.calendarGroup.calendar_UpdateEvent" + "operationId": "user.calendarGroup.calendar_UpdateEvent" }, { "method": "DELETE", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", - "operationId": "users.calendarGroups.calendars.DeleteEvents", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", - "legacyOperationId": "user.calendarGroup.calendar_DeleteEvent" + "operationId": "user.calendarGroup.calendar_DeleteEvent" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments", - "operationId": "users.calendarGroups.calendars.events.ListAttachments", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments", - "legacyOperationId": "user.calendarGroup.calendar.event_ListAttachment" + "operationId": "user.calendarGroup.calendar.event_ListAttachment" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments", - "operationId": "users.calendarGroups.calendars.events.CreateAttachments", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments", - "legacyOperationId": "user.calendarGroup.calendar.event_CreateAttachment" + "operationId": "user.calendarGroup.calendar.event_CreateAttachment" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", - "operationId": "users.calendarGroups.calendars.events.GetAttachments", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", - "legacyOperationId": "user.calendarGroup.calendar.event_GetAttachment" + "operationId": "user.calendarGroup.calendar.event_GetAttachment" }, { "method": "DELETE", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", - "operationId": "users.calendarGroups.calendars.events.DeleteAttachments", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", - "legacyOperationId": "user.calendarGroup.calendar.event_DeleteAttachment" + "operationId": "user.calendarGroup.calendar.event_DeleteAttachment" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/$count", - "operationId": "users.calendarGroups.calendars.events.attachments.GetCount-e742", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/$count", - "legacyOperationId": "user.calendarGroup.calendar.event.attachment_GetCount" + "operationId": "user.calendarGroup.calendar.event.attachment_GetCount" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/createUploadSession", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.attachments.createUploadSession", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/microsoft.graph.createUploadSession", - "legacyOperationId": "user.calendarGroup.calendar.event.attachment_createUploadSession", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event.attachment_createUploadSession" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/calendar", - "operationId": "users.calendarGroups.calendars.events.GetCalendar", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/calendar", - "legacyOperationId": "user.calendarGroup.calendar.event_GetCalendar" + "operationId": "user.calendarGroup.calendar.event_GetCalendar" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions", - "operationId": "users.calendarGroups.calendars.events.ListExtensions", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions", - "legacyOperationId": "user.calendarGroup.calendar.event_ListExtension" + "operationId": "user.calendarGroup.calendar.event_ListExtension" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions", - "operationId": "users.calendarGroups.calendars.events.CreateExtensions", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions", - "legacyOperationId": "user.calendarGroup.calendar.event_CreateExtension" + "operationId": "user.calendarGroup.calendar.event_CreateExtension" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "operationId": "users.calendarGroups.calendars.events.GetExtensions", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "user.calendarGroup.calendar.event_GetExtension" + "operationId": "user.calendarGroup.calendar.event_GetExtension" }, { "method": "PATCH", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "operationId": "users.calendarGroups.calendars.events.UpdateExtensions", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "user.calendarGroup.calendar.event_UpdateExtension" + "operationId": "user.calendarGroup.calendar.event_UpdateExtension" }, { "method": "DELETE", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "operationId": "users.calendarGroups.calendars.events.DeleteExtensions", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "user.calendarGroup.calendar.event_DeleteExtension" + "operationId": "user.calendarGroup.calendar.event_DeleteExtension" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/$count", - "operationId": "users.calendarGroups.calendars.events.extensions.GetCount-4cca", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/$count", - "legacyOperationId": "user.calendarGroup.calendar.event.extension_GetCount" + "operationId": "user.calendarGroup.calendar.event.extension_GetCount" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances", - "operationId": "users.calendarGroups.calendars.events.ListInstances", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances", - "legacyOperationId": "user.calendarGroup.calendar.event_ListInstance" + "operationId": "user.calendarGroup.calendar.event_ListInstance" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances/delta()", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.instances.delta", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances/microsoft.graph.delta()", - "legacyOperationId": "user.calendarGroup.calendar.event.instance_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event.instance_delta" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/accept", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.accept", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.accept", - "legacyOperationId": "user.calendarGroup.calendar.event_accept", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event_accept" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/cancel", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.cancel", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.cancel", - "legacyOperationId": "user.calendarGroup.calendar.event_cancel", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event_cancel" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/decline", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.decline", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.decline", - "legacyOperationId": "user.calendarGroup.calendar.event_decline", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event_decline" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/dismissReminder", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.dismissReminder", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.dismissReminder", - "legacyOperationId": "user.calendarGroup.calendar.event_dismissReminder", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event_dismissReminder" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/forward", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.forward", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.forward", - "legacyOperationId": "user.calendarGroup.calendar.event_forward", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event_forward" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/permanentDelete", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.permanentDelete", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.permanentDelete", - "legacyOperationId": "user.calendarGroup.calendar.event_permanentDelete", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event_permanentDelete" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/snoozeReminder", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.snoozeReminder", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.snoozeReminder", - "legacyOperationId": "user.calendarGroup.calendar.event_snoozeReminder", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event_snoozeReminder" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/tentativelyAccept", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.tentativelyAccept", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.tentativelyAccept", - "legacyOperationId": "user.calendarGroup.calendar.event_tentativelyAccept", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event_tentativelyAccept" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/$count", - "operationId": "users.calendarGroups.calendars.events.GetCount-f3ad", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/$count", - "legacyOperationId": "user.calendarGroup.calendar.event_GetCount" + "operationId": "user.calendarGroup.calendar.event_GetCount" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/delta()", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.delta", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/microsoft.graph.delta()", - "legacyOperationId": "user.calendarGroup.calendar.event_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event_delta" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/allowedCalendarSharingRoles(User='{User}')", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.allowedCalendarSharingRoles", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/microsoft.graph.allowedCalendarSharingRoles(User='{User}')", - "legacyOperationId": "user.calendarGroup.calendar_allowedCalendarSharingRole", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar_allowedCalendarSharingRole" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/getSchedule", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.getSchedule", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/microsoft.graph.getSchedule", - "legacyOperationId": "user.calendarGroup.calendar_getSchedule", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar_getSchedule" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/permanentDelete", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.permanentDelete", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/microsoft.graph.permanentDelete", - "legacyOperationId": "user.calendarGroup.calendar_permanentDelete", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar_permanentDelete" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/$count", - "operationId": "users.calendarGroups.calendars.GetCount-8e45", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/$count", - "legacyOperationId": "user.calendarGroup.calendar_GetCount" + "operationId": "user.calendarGroup.calendar_GetCount" }, { "method": "PATCH", "path": "/users/{user-id}/calendars/{calendar-id}", - "operationId": "users.UpdateCalendars", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}", - "legacyOperationId": "user_UpdateCalendar" + "operationId": "user_UpdateCalendar" }, { "method": "DELETE", "path": "/users/{user-id}/calendars/{calendar-id}", - "operationId": "users.DeleteCalendars", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}", - "legacyOperationId": "user_DeleteCalendar" + "operationId": "user_DeleteCalendar" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/calendarView/delta()", - "operationId": "users.user.calendars.calendar.calendarView.delta", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/calendarView/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.calendarView_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.calendarView_delta" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", - "operationId": "users.calendars.GetEvents", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", - "legacyOperationId": "user.calendar_GetEvent" + "operationId": "user.calendar_GetEvent" }, { "method": "PATCH", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", - "operationId": "users.calendars.UpdateEvents", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", - "legacyOperationId": "user.calendar_UpdateEvent" + "operationId": "user.calendar_UpdateEvent" }, { "method": "DELETE", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", - "operationId": "users.calendars.DeleteEvents", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", - "legacyOperationId": "user.calendar_DeleteEvent" + "operationId": "user.calendar_DeleteEvent" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments", - "operationId": "users.calendars.events.ListAttachments", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments", - "legacyOperationId": "user.calendar.event_ListAttachment" + "operationId": "user.calendar.event_ListAttachment" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments", - "operationId": "users.calendars.events.CreateAttachments", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments", - "legacyOperationId": "user.calendar.event_CreateAttachment" + "operationId": "user.calendar.event_CreateAttachment" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", - "operationId": "users.calendars.events.GetAttachments", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", - "legacyOperationId": "user.calendar.event_GetAttachment" + "operationId": "user.calendar.event_GetAttachment" }, { "method": "DELETE", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", - "operationId": "users.calendars.events.DeleteAttachments", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", - "legacyOperationId": "user.calendar.event_DeleteAttachment" + "operationId": "user.calendar.event_DeleteAttachment" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/$count", - "operationId": "users.calendars.events.attachments.GetCount-8147", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/$count", - "legacyOperationId": "user.calendar.event.attachment_GetCount" + "operationId": "user.calendar.event.attachment_GetCount" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/createUploadSession", - "operationId": "users.user.calendars.calendar.events.event.attachments.createUploadSession", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/microsoft.graph.createUploadSession", - "legacyOperationId": "user.calendar.event.attachment_createUploadSession", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event.attachment_createUploadSession" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/calendar", - "operationId": "users.calendars.events.GetCalendar", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/calendar", - "legacyOperationId": "user.calendar.event_GetCalendar" + "operationId": "user.calendar.event_GetCalendar" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions", - "operationId": "users.calendars.events.ListExtensions", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions", - "legacyOperationId": "user.calendar.event_ListExtension" + "operationId": "user.calendar.event_ListExtension" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions", - "operationId": "users.calendars.events.CreateExtensions", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions", - "legacyOperationId": "user.calendar.event_CreateExtension" + "operationId": "user.calendar.event_CreateExtension" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "operationId": "users.calendars.events.GetExtensions", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "user.calendar.event_GetExtension" + "operationId": "user.calendar.event_GetExtension" }, { "method": "PATCH", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "operationId": "users.calendars.events.UpdateExtensions", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "user.calendar.event_UpdateExtension" + "operationId": "user.calendar.event_UpdateExtension" }, { "method": "DELETE", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "operationId": "users.calendars.events.DeleteExtensions", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "user.calendar.event_DeleteExtension" + "operationId": "user.calendar.event_DeleteExtension" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/$count", - "operationId": "users.calendars.events.extensions.GetCount-b44d", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/$count", - "legacyOperationId": "user.calendar.event.extension_GetCount" + "operationId": "user.calendar.event.extension_GetCount" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/instances", - "operationId": "users.calendars.events.ListInstances", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/instances", - "legacyOperationId": "user.calendar.event_ListInstance" + "operationId": "user.calendar.event_ListInstance" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/instances/delta()", - "operationId": "users.user.calendars.calendar.events.event.instances.delta", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/instances/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.event.instance_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event.instance_delta" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/accept", - "operationId": "users.user.calendars.calendar.events.event.accept", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.accept", - "legacyOperationId": "user.calendar.event_accept", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_accept" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/cancel", - "operationId": "users.user.calendars.calendar.events.event.cancel", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.cancel", - "legacyOperationId": "user.calendar.event_cancel", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_cancel" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/decline", - "operationId": "users.user.calendars.calendar.events.event.decline", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.decline", - "legacyOperationId": "user.calendar.event_decline", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_decline" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/dismissReminder", - "operationId": "users.user.calendars.calendar.events.event.dismissReminder", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.dismissReminder", - "legacyOperationId": "user.calendar.event_dismissReminder", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_dismissReminder" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/forward", - "operationId": "users.user.calendars.calendar.events.event.forward", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.forward", - "legacyOperationId": "user.calendar.event_forward", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_forward" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/permanentDelete", - "operationId": "users.user.calendars.calendar.events.event.permanentDelete", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.permanentDelete", - "legacyOperationId": "user.calendar.event_permanentDelete", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_permanentDelete" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/snoozeReminder", - "operationId": "users.user.calendars.calendar.events.event.snoozeReminder", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.snoozeReminder", - "legacyOperationId": "user.calendar.event_snoozeReminder", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_snoozeReminder" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/tentativelyAccept", - "operationId": "users.user.calendars.calendar.events.event.tentativelyAccept", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.tentativelyAccept", - "legacyOperationId": "user.calendar.event_tentativelyAccept", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_tentativelyAccept" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/$count", - "operationId": "users.calendars.events.GetCount-efc7", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/$count", - "legacyOperationId": "user.calendar.event_GetCount" + "operationId": "user.calendar.event_GetCount" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/delta()", - "operationId": "users.user.calendars.calendar.events.delta", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.event_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_delta" }, { "method": "GET", "path": "/users/{user-id}/calendarView", - "operationId": "users.ListCalendarView", - "legacyPath": "/users/{user-id}/calendarView", - "legacyOperationId": "user_ListCalendarView" + "operationId": "user_ListCalendarView" }, { "method": "GET", "path": "/users/{user-id}/calendarView/delta()", - "operationId": "users.user.calendarView.delta", - "legacyPath": "/users/{user-id}/calendarView/microsoft.graph.delta()", - "legacyOperationId": "user.calendarView_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarView_delta" } ] }, "beta": { - "operationIdSource": "Legacy", - "notes": "All 137 actual legacy selector matches survive: 83 identical normalized routes plus 54 final qualified action/function translations with matching actual operation types. No removed legacy operations.", + "notes": "Current literal selector matches all 137 surviving legacy-selected operations, exactly the prior reviewed route set. Tests independently bridge 83 identical normalized routes and 54 final qualified action/function paths using matching actual operation types. No missing or removed survivors.", "absenceExpected": false, "operations": [ { "method": "GET", "path": "/groups/{group-id}/calendar/calendarView/delta()", - "operationId": "groups.group.calendar.calendarView.delta", - "legacyPath": "/groups/{group-id}/calendar/calendarView/microsoft.graph.delta()", - "legacyOperationId": "group.calendar.calendarView_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.calendarView_delta" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/attachments", - "operationId": "groups.calendar.events.ListAttachments", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments", - "legacyOperationId": "group.calendar.event_ListAttachment" + "operationId": "group.calendar.event_ListAttachment" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/attachments", - "operationId": "groups.calendar.events.CreateAttachments", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments", - "legacyOperationId": "group.calendar.event_CreateAttachment" + "operationId": "group.calendar.event_CreateAttachment" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/{attachment-id}", - "operationId": "groups.calendar.events.GetAttachments", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments/{attachment-id}", - "legacyOperationId": "group.calendar.event_GetAttachment" + "operationId": "group.calendar.event_GetAttachment" }, { "method": "DELETE", "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/{attachment-id}", - "operationId": "groups.calendar.events.DeleteAttachments", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments/{attachment-id}", - "legacyOperationId": "group.calendar.event_DeleteAttachment" + "operationId": "group.calendar.event_DeleteAttachment" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/$count", - "operationId": "groups.calendar.events.attachments.GetCount-a03a", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments/$count", - "legacyOperationId": "group.calendar.event.attachment_GetCount" + "operationId": "group.calendar.event.attachment_GetCount" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/attachments/createUploadSession", - "operationId": "groups.group.calendar.events.event.attachments.createUploadSession", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/attachments/microsoft.graph.createUploadSession", - "legacyOperationId": "group.calendar.event.attachment_createUploadSession", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event.attachment_createUploadSession" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/calendar", - "operationId": "groups.calendar.events.GetCalendar", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/calendar", - "legacyOperationId": "group.calendar.event_GetCalendar" + "operationId": "group.calendar.event_GetCalendar" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/extensions", - "operationId": "groups.calendar.events.ListExtensions", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions", - "legacyOperationId": "group.calendar.event_ListExtension" + "operationId": "group.calendar.event_ListExtension" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/extensions", - "operationId": "groups.calendar.events.CreateExtensions", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions", - "legacyOperationId": "group.calendar.event_CreateExtension" + "operationId": "group.calendar.event_CreateExtension" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", - "operationId": "groups.calendar.events.GetExtensions", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "group.calendar.event_GetExtension" + "operationId": "group.calendar.event_GetExtension" }, { "method": "PATCH", "path": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", - "operationId": "groups.calendar.events.UpdateExtensions", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "group.calendar.event_UpdateExtension" + "operationId": "group.calendar.event_UpdateExtension" }, { "method": "DELETE", "path": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", - "operationId": "groups.calendar.events.DeleteExtensions", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "group.calendar.event_DeleteExtension" + "operationId": "group.calendar.event_DeleteExtension" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/extensions/$count", - "operationId": "groups.calendar.events.extensions.GetCount-d77e", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/extensions/$count", - "legacyOperationId": "group.calendar.event.extension_GetCount" + "operationId": "group.calendar.event.extension_GetCount" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/instances", - "operationId": "groups.calendar.events.ListInstances", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/instances", - "legacyOperationId": "group.calendar.event_ListInstance" + "operationId": "group.calendar.event_ListInstance" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/{event-id}/instances/delta()", - "operationId": "groups.group.calendar.events.event.instances.delta", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/instances/microsoft.graph.delta()", - "legacyOperationId": "group.calendar.event.instance_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event.instance_delta" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/accept", - "operationId": "groups.group.calendar.events.event.accept", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.accept", - "legacyOperationId": "group.calendar.event_accept", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event_accept" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/cancel", - "operationId": "groups.group.calendar.events.event.cancel", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.cancel", - "legacyOperationId": "group.calendar.event_cancel", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event_cancel" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/decline", - "operationId": "groups.group.calendar.events.event.decline", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.decline", - "legacyOperationId": "group.calendar.event_decline", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event_decline" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/dismissReminder", - "operationId": "groups.group.calendar.events.event.dismissReminder", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.dismissReminder", - "legacyOperationId": "group.calendar.event_dismissReminder", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event_dismissReminder" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/forward", - "operationId": "groups.group.calendar.events.event.forward", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.forward", - "legacyOperationId": "group.calendar.event_forward", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event_forward" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/permanentDelete", - "operationId": "groups.group.calendar.events.event.permanentDelete", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.permanentDelete", - "legacyOperationId": "group.calendar.event_permanentDelete", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event_permanentDelete" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/snoozeReminder", - "operationId": "groups.group.calendar.events.event.snoozeReminder", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.snoozeReminder", - "legacyOperationId": "group.calendar.event_snoozeReminder", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event_snoozeReminder" }, { "method": "POST", "path": "/groups/{group-id}/calendar/events/{event-id}/tentativelyAccept", - "operationId": "groups.group.calendar.events.event.tentativelyAccept", - "legacyPath": "/groups/{group-id}/calendar/events/{event-id}/microsoft.graph.tentativelyAccept", - "legacyOperationId": "group.calendar.event_tentativelyAccept", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event_tentativelyAccept" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/$count", - "operationId": "groups.calendar.events.GetCount-b856", - "legacyPath": "/groups/{group-id}/calendar/events/$count", - "legacyOperationId": "group.calendar.event_GetCount" + "operationId": "group.calendar.event_GetCount" }, { "method": "GET", "path": "/groups/{group-id}/calendar/events/delta()", - "operationId": "groups.group.calendar.events.delta", - "legacyPath": "/groups/{group-id}/calendar/events/microsoft.graph.delta()", - "legacyOperationId": "group.calendar.event_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendar.event_delta" }, { "method": "GET", "path": "/groups/{group-id}/calendarView", - "operationId": "groups.ListCalendarView", - "legacyPath": "/groups/{group-id}/calendarView", - "legacyOperationId": "group_ListCalendarView" + "operationId": "group_ListCalendarView" }, { "method": "GET", "path": "/groups/{group-id}/calendarView/delta()", - "operationId": "groups.group.calendarView.delta", - "legacyPath": "/groups/{group-id}/calendarView/microsoft.graph.delta()", - "legacyOperationId": "group.calendarView_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "group.calendarView_delta" }, { "method": "PATCH", "path": "/users/{user-id}/calendar", - "operationId": "users.UpdateCalendar", - "legacyPath": "/users/{user-id}/calendar", - "legacyOperationId": "user_UpdateCalendar" + "operationId": "user_UpdateCalendar" }, { "method": "GET", "path": "/users/{user-id}/calendar/calendarView/delta()", - "operationId": "users.user.calendar.calendarView.delta", - "legacyPath": "/users/{user-id}/calendar/calendarView/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.calendarView_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.calendarView_delta" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}", - "operationId": "users.calendar.GetEvents", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}", - "legacyOperationId": "user.calendar_GetEvent" + "operationId": "user.calendar_GetEvent" }, { "method": "PATCH", "path": "/users/{user-id}/calendar/events/{event-id}", - "operationId": "users.calendar.UpdateEvents", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}", - "legacyOperationId": "user.calendar_UpdateEvent" + "operationId": "user.calendar_UpdateEvent" }, { "method": "DELETE", "path": "/users/{user-id}/calendar/events/{event-id}", - "operationId": "users.calendar.DeleteEvents", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}", - "legacyOperationId": "user.calendar_DeleteEvent" + "operationId": "user.calendar_DeleteEvent" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/attachments", - "operationId": "users.calendar.events.ListAttachments", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments", - "legacyOperationId": "user.calendar.event_ListAttachment" + "operationId": "user.calendar.event_ListAttachment" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/attachments", - "operationId": "users.calendar.events.CreateAttachments", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments", - "legacyOperationId": "user.calendar.event_CreateAttachment" + "operationId": "user.calendar.event_CreateAttachment" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/attachments/{attachment-id}", - "operationId": "users.calendar.events.GetAttachments", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments/{attachment-id}", - "legacyOperationId": "user.calendar.event_GetAttachment" + "operationId": "user.calendar.event_GetAttachment" }, { "method": "DELETE", "path": "/users/{user-id}/calendar/events/{event-id}/attachments/{attachment-id}", - "operationId": "users.calendar.events.DeleteAttachments", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments/{attachment-id}", - "legacyOperationId": "user.calendar.event_DeleteAttachment" + "operationId": "user.calendar.event_DeleteAttachment" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/attachments/$count", - "operationId": "users.calendar.events.attachments.GetCount-114f", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments/$count", - "legacyOperationId": "user.calendar.event.attachment_GetCount" + "operationId": "user.calendar.event.attachment_GetCount" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/attachments/createUploadSession", - "operationId": "users.user.calendar.events.event.attachments.createUploadSession", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/attachments/microsoft.graph.createUploadSession", - "legacyOperationId": "user.calendar.event.attachment_createUploadSession", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event.attachment_createUploadSession" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/calendar", - "operationId": "users.calendar.events.GetCalendar", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/calendar", - "legacyOperationId": "user.calendar.event_GetCalendar" + "operationId": "user.calendar.event_GetCalendar" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/extensions", - "operationId": "users.calendar.events.ListExtensions", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions", - "legacyOperationId": "user.calendar.event_ListExtension" + "operationId": "user.calendar.event_ListExtension" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/extensions", - "operationId": "users.calendar.events.CreateExtensions", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions", - "legacyOperationId": "user.calendar.event_CreateExtension" + "operationId": "user.calendar.event_CreateExtension" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", - "operationId": "users.calendar.events.GetExtensions", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "user.calendar.event_GetExtension" + "operationId": "user.calendar.event_GetExtension" }, { "method": "PATCH", "path": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", - "operationId": "users.calendar.events.UpdateExtensions", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "user.calendar.event_UpdateExtension" + "operationId": "user.calendar.event_UpdateExtension" }, { "method": "DELETE", "path": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", - "operationId": "users.calendar.events.DeleteExtensions", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "user.calendar.event_DeleteExtension" + "operationId": "user.calendar.event_DeleteExtension" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/extensions/$count", - "operationId": "users.calendar.events.extensions.GetCount-15ec", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/extensions/$count", - "legacyOperationId": "user.calendar.event.extension_GetCount" + "operationId": "user.calendar.event.extension_GetCount" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/instances", - "operationId": "users.calendar.events.ListInstances", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/instances", - "legacyOperationId": "user.calendar.event_ListInstance" + "operationId": "user.calendar.event_ListInstance" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/{event-id}/instances/delta()", - "operationId": "users.user.calendar.events.event.instances.delta", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/instances/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.event.instance_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event.instance_delta" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/accept", - "operationId": "users.user.calendar.events.event.accept", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.accept", - "legacyOperationId": "user.calendar.event_accept", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_accept" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/cancel", - "operationId": "users.user.calendar.events.event.cancel", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.cancel", - "legacyOperationId": "user.calendar.event_cancel", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_cancel" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/decline", - "operationId": "users.user.calendar.events.event.decline", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.decline", - "legacyOperationId": "user.calendar.event_decline", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_decline" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/dismissReminder", - "operationId": "users.user.calendar.events.event.dismissReminder", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.dismissReminder", - "legacyOperationId": "user.calendar.event_dismissReminder", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_dismissReminder" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/forward", - "operationId": "users.user.calendar.events.event.forward", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.forward", - "legacyOperationId": "user.calendar.event_forward", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_forward" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/permanentDelete", - "operationId": "users.user.calendar.events.event.permanentDelete", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.permanentDelete", - "legacyOperationId": "user.calendar.event_permanentDelete", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_permanentDelete" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/snoozeReminder", - "operationId": "users.user.calendar.events.event.snoozeReminder", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.snoozeReminder", - "legacyOperationId": "user.calendar.event_snoozeReminder", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_snoozeReminder" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/tentativelyAccept", - "operationId": "users.user.calendar.events.event.tentativelyAccept", - "legacyPath": "/users/{user-id}/calendar/events/{event-id}/microsoft.graph.tentativelyAccept", - "legacyOperationId": "user.calendar.event_tentativelyAccept", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_tentativelyAccept" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/$count", - "operationId": "users.calendar.events.GetCount-1a22", - "legacyPath": "/users/{user-id}/calendar/events/$count", - "legacyOperationId": "user.calendar.event_GetCount" + "operationId": "user.calendar.event_GetCount" }, { "method": "GET", "path": "/users/{user-id}/calendar/events/delta()", - "operationId": "users.user.calendar.events.delta", - "legacyPath": "/users/{user-id}/calendar/events/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.event_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_delta" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", - "operationId": "users.calendarGroups.GetCalendars", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", - "legacyOperationId": "user.calendarGroup_GetCalendar" + "operationId": "user.calendarGroup_GetCalendar" }, { "method": "PATCH", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", - "operationId": "users.calendarGroups.UpdateCalendars", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", - "legacyOperationId": "user.calendarGroup_UpdateCalendar" + "operationId": "user.calendarGroup_UpdateCalendar" }, { "method": "DELETE", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", - "operationId": "users.calendarGroups.DeleteCalendars", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}", - "legacyOperationId": "user.calendarGroup_DeleteCalendar" + "operationId": "user.calendarGroup_DeleteCalendar" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions", - "operationId": "users.calendarGroups.calendars.ListCalendarPermissions", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions", - "legacyOperationId": "user.calendarGroup.calendar_ListCalendarPermission" + "operationId": "user.calendarGroup.calendar_ListCalendarPermission" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions", - "operationId": "users.calendarGroups.calendars.CreateCalendarPermissions", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions", - "legacyOperationId": "user.calendarGroup.calendar_CreateCalendarPermission" + "operationId": "user.calendarGroup.calendar_CreateCalendarPermission" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", - "operationId": "users.calendarGroups.calendars.GetCalendarPermissions", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", - "legacyOperationId": "user.calendarGroup.calendar_GetCalendarPermission" + "operationId": "user.calendarGroup.calendar_GetCalendarPermission" }, { "method": "PATCH", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", - "operationId": "users.calendarGroups.calendars.UpdateCalendarPermissions", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", - "legacyOperationId": "user.calendarGroup.calendar_UpdateCalendarPermission" + "operationId": "user.calendarGroup.calendar_UpdateCalendarPermission" }, { "method": "DELETE", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", - "operationId": "users.calendarGroups.calendars.DeleteCalendarPermissions", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/{calendarPermission-id}", - "legacyOperationId": "user.calendarGroup.calendar_DeleteCalendarPermission" + "operationId": "user.calendarGroup.calendar_DeleteCalendarPermission" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/$count", - "operationId": "users.calendarGroups.calendars.calendarPermissions.GetCount-98a8", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarPermissions/$count", - "legacyOperationId": "user.calendarGroup.calendar.calendarPermission_GetCount" + "operationId": "user.calendarGroup.calendar.calendarPermission_GetCount" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView", - "operationId": "users.calendarGroups.calendars.ListCalendarView", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView", - "legacyOperationId": "user.calendarGroup.calendar_ListCalendarView" + "operationId": "user.calendarGroup.calendar_ListCalendarView" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/delta()", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.calendarView.delta", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/calendarView/microsoft.graph.delta()", - "legacyOperationId": "user.calendarGroup.calendar.calendarView_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.calendarView_delta" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events", - "operationId": "users.calendarGroups.calendars.ListEvents", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events", - "legacyOperationId": "user.calendarGroup.calendar_ListEvent" + "operationId": "user.calendarGroup.calendar_ListEvent" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events", - "operationId": "users.calendarGroups.calendars.CreateEvents", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events", - "legacyOperationId": "user.calendarGroup.calendar_CreateEvent" + "operationId": "user.calendarGroup.calendar_CreateEvent" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", - "operationId": "users.calendarGroups.calendars.GetEvents", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", - "legacyOperationId": "user.calendarGroup.calendar_GetEvent" + "operationId": "user.calendarGroup.calendar_GetEvent" }, { "method": "PATCH", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", - "operationId": "users.calendarGroups.calendars.UpdateEvents", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", - "legacyOperationId": "user.calendarGroup.calendar_UpdateEvent" + "operationId": "user.calendarGroup.calendar_UpdateEvent" }, { "method": "DELETE", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", - "operationId": "users.calendarGroups.calendars.DeleteEvents", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}", - "legacyOperationId": "user.calendarGroup.calendar_DeleteEvent" + "operationId": "user.calendarGroup.calendar_DeleteEvent" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments", - "operationId": "users.calendarGroups.calendars.events.ListAttachments", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments", - "legacyOperationId": "user.calendarGroup.calendar.event_ListAttachment" + "operationId": "user.calendarGroup.calendar.event_ListAttachment" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments", - "operationId": "users.calendarGroups.calendars.events.CreateAttachments", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments", - "legacyOperationId": "user.calendarGroup.calendar.event_CreateAttachment" + "operationId": "user.calendarGroup.calendar.event_CreateAttachment" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", - "operationId": "users.calendarGroups.calendars.events.GetAttachments", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", - "legacyOperationId": "user.calendarGroup.calendar.event_GetAttachment" + "operationId": "user.calendarGroup.calendar.event_GetAttachment" }, { "method": "DELETE", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", - "operationId": "users.calendarGroups.calendars.events.DeleteAttachments", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", - "legacyOperationId": "user.calendarGroup.calendar.event_DeleteAttachment" + "operationId": "user.calendarGroup.calendar.event_DeleteAttachment" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/$count", - "operationId": "users.calendarGroups.calendars.events.attachments.GetCount-e742", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/$count", - "legacyOperationId": "user.calendarGroup.calendar.event.attachment_GetCount" + "operationId": "user.calendarGroup.calendar.event.attachment_GetCount" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/createUploadSession", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.attachments.createUploadSession", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/attachments/microsoft.graph.createUploadSession", - "legacyOperationId": "user.calendarGroup.calendar.event.attachment_createUploadSession", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event.attachment_createUploadSession" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/calendar", - "operationId": "users.calendarGroups.calendars.events.GetCalendar", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/calendar", - "legacyOperationId": "user.calendarGroup.calendar.event_GetCalendar" + "operationId": "user.calendarGroup.calendar.event_GetCalendar" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions", - "operationId": "users.calendarGroups.calendars.events.ListExtensions", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions", - "legacyOperationId": "user.calendarGroup.calendar.event_ListExtension" + "operationId": "user.calendarGroup.calendar.event_ListExtension" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions", - "operationId": "users.calendarGroups.calendars.events.CreateExtensions", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions", - "legacyOperationId": "user.calendarGroup.calendar.event_CreateExtension" + "operationId": "user.calendarGroup.calendar.event_CreateExtension" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "operationId": "users.calendarGroups.calendars.events.GetExtensions", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "user.calendarGroup.calendar.event_GetExtension" + "operationId": "user.calendarGroup.calendar.event_GetExtension" }, { "method": "PATCH", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "operationId": "users.calendarGroups.calendars.events.UpdateExtensions", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "user.calendarGroup.calendar.event_UpdateExtension" + "operationId": "user.calendarGroup.calendar.event_UpdateExtension" }, { "method": "DELETE", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "operationId": "users.calendarGroups.calendars.events.DeleteExtensions", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "user.calendarGroup.calendar.event_DeleteExtension" + "operationId": "user.calendarGroup.calendar.event_DeleteExtension" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/$count", - "operationId": "users.calendarGroups.calendars.events.extensions.GetCount-4cca", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/extensions/$count", - "legacyOperationId": "user.calendarGroup.calendar.event.extension_GetCount" + "operationId": "user.calendarGroup.calendar.event.extension_GetCount" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances", - "operationId": "users.calendarGroups.calendars.events.ListInstances", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances", - "legacyOperationId": "user.calendarGroup.calendar.event_ListInstance" + "operationId": "user.calendarGroup.calendar.event_ListInstance" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances/delta()", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.instances.delta", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/instances/microsoft.graph.delta()", - "legacyOperationId": "user.calendarGroup.calendar.event.instance_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event.instance_delta" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/accept", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.accept", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.accept", - "legacyOperationId": "user.calendarGroup.calendar.event_accept", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event_accept" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/cancel", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.cancel", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.cancel", - "legacyOperationId": "user.calendarGroup.calendar.event_cancel", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event_cancel" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/decline", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.decline", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.decline", - "legacyOperationId": "user.calendarGroup.calendar.event_decline", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event_decline" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/dismissReminder", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.dismissReminder", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.dismissReminder", - "legacyOperationId": "user.calendarGroup.calendar.event_dismissReminder", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event_dismissReminder" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/forward", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.forward", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.forward", - "legacyOperationId": "user.calendarGroup.calendar.event_forward", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event_forward" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/permanentDelete", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.permanentDelete", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.permanentDelete", - "legacyOperationId": "user.calendarGroup.calendar.event_permanentDelete", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event_permanentDelete" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/snoozeReminder", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.snoozeReminder", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.snoozeReminder", - "legacyOperationId": "user.calendarGroup.calendar.event_snoozeReminder", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event_snoozeReminder" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/tentativelyAccept", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.event.tentativelyAccept", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.tentativelyAccept", - "legacyOperationId": "user.calendarGroup.calendar.event_tentativelyAccept", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event_tentativelyAccept" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/$count", - "operationId": "users.calendarGroups.calendars.events.GetCount-f3ad", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/$count", - "legacyOperationId": "user.calendarGroup.calendar.event_GetCount" + "operationId": "user.calendarGroup.calendar.event_GetCount" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/delta()", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.events.delta", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/events/microsoft.graph.delta()", - "legacyOperationId": "user.calendarGroup.calendar.event_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar.event_delta" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/allowedCalendarSharingRoles(User='{User}')", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.allowedCalendarSharingRoles", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/microsoft.graph.allowedCalendarSharingRoles(User='{User}')", - "legacyOperationId": "user.calendarGroup.calendar_allowedCalendarSharingRole", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar_allowedCalendarSharingRole" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/getSchedule", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.getSchedule", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/microsoft.graph.getSchedule", - "legacyOperationId": "user.calendarGroup.calendar_getSchedule", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar_getSchedule" }, { "method": "POST", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/permanentDelete", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.calendar.permanentDelete", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}/microsoft.graph.permanentDelete", - "legacyOperationId": "user.calendarGroup.calendar_permanentDelete", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar_permanentDelete" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/$count", - "operationId": "users.calendarGroups.calendars.GetCount-8e45", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/$count", - "legacyOperationId": "user.calendarGroup.calendar_GetCount" + "operationId": "user.calendarGroup.calendar_GetCount" }, { "method": "GET", "path": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/delta()", - "operationId": "users.user.calendarGroups.calendarGroup.calendars.delta", - "legacyPath": "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/microsoft.graph.delta()", - "legacyOperationId": "user.calendarGroup.calendar_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarGroup.calendar_delta" }, { "method": "PATCH", "path": "/users/{user-id}/calendars/{calendar-id}", - "operationId": "users.UpdateCalendars", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}", - "legacyOperationId": "user_UpdateCalendar" + "operationId": "user_UpdateCalendar" }, { "method": "DELETE", "path": "/users/{user-id}/calendars/{calendar-id}", - "operationId": "users.DeleteCalendars", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}", - "legacyOperationId": "user_DeleteCalendar" + "operationId": "user_DeleteCalendar" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/calendarView/delta()", - "operationId": "users.user.calendars.calendar.calendarView.delta", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/calendarView/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.calendarView_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.calendarView_delta" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", - "operationId": "users.calendars.GetEvents", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", - "legacyOperationId": "user.calendar_GetEvent" + "operationId": "user.calendar_GetEvent" }, { "method": "PATCH", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", - "operationId": "users.calendars.UpdateEvents", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", - "legacyOperationId": "user.calendar_UpdateEvent" + "operationId": "user.calendar_UpdateEvent" }, { "method": "DELETE", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", - "operationId": "users.calendars.DeleteEvents", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}", - "legacyOperationId": "user.calendar_DeleteEvent" + "operationId": "user.calendar_DeleteEvent" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments", - "operationId": "users.calendars.events.ListAttachments", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments", - "legacyOperationId": "user.calendar.event_ListAttachment" + "operationId": "user.calendar.event_ListAttachment" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments", - "operationId": "users.calendars.events.CreateAttachments", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments", - "legacyOperationId": "user.calendar.event_CreateAttachment" + "operationId": "user.calendar.event_CreateAttachment" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", - "operationId": "users.calendars.events.GetAttachments", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", - "legacyOperationId": "user.calendar.event_GetAttachment" + "operationId": "user.calendar.event_GetAttachment" }, { "method": "DELETE", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", - "operationId": "users.calendars.events.DeleteAttachments", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/{attachment-id}", - "legacyOperationId": "user.calendar.event_DeleteAttachment" + "operationId": "user.calendar.event_DeleteAttachment" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/$count", - "operationId": "users.calendars.events.attachments.GetCount-8147", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/$count", - "legacyOperationId": "user.calendar.event.attachment_GetCount" + "operationId": "user.calendar.event.attachment_GetCount" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/createUploadSession", - "operationId": "users.user.calendars.calendar.events.event.attachments.createUploadSession", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/attachments/microsoft.graph.createUploadSession", - "legacyOperationId": "user.calendar.event.attachment_createUploadSession", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event.attachment_createUploadSession" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/calendar", - "operationId": "users.calendars.events.GetCalendar", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/calendar", - "legacyOperationId": "user.calendar.event_GetCalendar" + "operationId": "user.calendar.event_GetCalendar" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions", - "operationId": "users.calendars.events.ListExtensions", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions", - "legacyOperationId": "user.calendar.event_ListExtension" + "operationId": "user.calendar.event_ListExtension" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions", - "operationId": "users.calendars.events.CreateExtensions", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions", - "legacyOperationId": "user.calendar.event_CreateExtension" + "operationId": "user.calendar.event_CreateExtension" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "operationId": "users.calendars.events.GetExtensions", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "user.calendar.event_GetExtension" + "operationId": "user.calendar.event_GetExtension" }, { "method": "PATCH", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "operationId": "users.calendars.events.UpdateExtensions", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "user.calendar.event_UpdateExtension" + "operationId": "user.calendar.event_UpdateExtension" }, { "method": "DELETE", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "operationId": "users.calendars.events.DeleteExtensions", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/{extension-id}", - "legacyOperationId": "user.calendar.event_DeleteExtension" + "operationId": "user.calendar.event_DeleteExtension" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/$count", - "operationId": "users.calendars.events.extensions.GetCount-b44d", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/extensions/$count", - "legacyOperationId": "user.calendar.event.extension_GetCount" + "operationId": "user.calendar.event.extension_GetCount" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/instances", - "operationId": "users.calendars.events.ListInstances", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/instances", - "legacyOperationId": "user.calendar.event_ListInstance" + "operationId": "user.calendar.event_ListInstance" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/instances/delta()", - "operationId": "users.user.calendars.calendar.events.event.instances.delta", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/instances/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.event.instance_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event.instance_delta" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/accept", - "operationId": "users.user.calendars.calendar.events.event.accept", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.accept", - "legacyOperationId": "user.calendar.event_accept", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_accept" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/cancel", - "operationId": "users.user.calendars.calendar.events.event.cancel", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.cancel", - "legacyOperationId": "user.calendar.event_cancel", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_cancel" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/decline", - "operationId": "users.user.calendars.calendar.events.event.decline", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.decline", - "legacyOperationId": "user.calendar.event_decline", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_decline" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/dismissReminder", - "operationId": "users.user.calendars.calendar.events.event.dismissReminder", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.dismissReminder", - "legacyOperationId": "user.calendar.event_dismissReminder", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_dismissReminder" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/forward", - "operationId": "users.user.calendars.calendar.events.event.forward", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.forward", - "legacyOperationId": "user.calendar.event_forward", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_forward" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/permanentDelete", - "operationId": "users.user.calendars.calendar.events.event.permanentDelete", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.permanentDelete", - "legacyOperationId": "user.calendar.event_permanentDelete", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_permanentDelete" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/snoozeReminder", - "operationId": "users.user.calendars.calendar.events.event.snoozeReminder", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.snoozeReminder", - "legacyOperationId": "user.calendar.event_snoozeReminder", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_snoozeReminder" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/tentativelyAccept", - "operationId": "users.user.calendars.calendar.events.event.tentativelyAccept", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/{event-id}/microsoft.graph.tentativelyAccept", - "legacyOperationId": "user.calendar.event_tentativelyAccept", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_tentativelyAccept" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/$count", - "operationId": "users.calendars.events.GetCount-efc7", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/$count", - "legacyOperationId": "user.calendar.event_GetCount" + "operationId": "user.calendar.event_GetCount" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/delta()", - "operationId": "users.user.calendars.calendar.events.delta", - "legacyPath": "/users/{user-id}/calendars/{calendar-id}/events/microsoft.graph.delta()", - "legacyOperationId": "user.calendar.event_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendar.event_delta" }, { "method": "GET", "path": "/users/{user-id}/calendarView", - "operationId": "users.ListCalendarView", - "legacyPath": "/users/{user-id}/calendarView", - "legacyOperationId": "user_ListCalendarView" + "operationId": "user_ListCalendarView" }, { "method": "GET", "path": "/users/{user-id}/calendarView/delta()", - "operationId": "users.user.calendarView.delta", - "legacyPath": "/users/{user-id}/calendarView/microsoft.graph.delta()", - "legacyOperationId": "user.calendarView_delta", - "legacyPathTranslation": "UnqualifyFinalOperation" + "operationId": "user.calendarView_delta" } ] } @@ -2136,7 +1481,7 @@ { "method": "GET", "path": "/users/{user-id}/calendar/allowedCalendarSharingRoles(User='{User}')", - "operationId": "users.user.calendar.allowedCalendarSharingRoles" + "operationId": "user.calendar_allowedCalendarSharingRole" } ] }, @@ -2146,7 +1491,7 @@ { "method": "GET", "path": "/users/{user-id}/calendar/allowedCalendarSharingRoles(User='{User}')", - "operationId": "users.user.calendar.allowedCalendarSharingRoles" + "operationId": "user.calendar_allowedCalendarSharingRole" } ] } @@ -2166,7 +1511,7 @@ { "method": "GET", "path": "/users/{user-id}/calendar", - "operationId": "users.GetCalendar" + "operationId": "user_GetCalendar" } ] }, @@ -2176,7 +1521,7 @@ { "method": "GET", "path": "/users/{user-id}/calendar", - "operationId": "users.GetCalendar" + "operationId": "user_GetCalendar" } ] } @@ -2196,17 +1541,17 @@ { "method": "GET", "path": "/users/{user-id}/calendar/events", - "operationId": "users.calendar.ListEvents" + "operationId": "user.calendar_ListEvent" }, { "method": "POST", "path": "/users/{user-id}/calendar/events", - "operationId": "users.calendar.CreateEvents" + "operationId": "user.calendar_CreateEvent" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/cancel", - "operationId": "users.user.calendar.events.event.cancel" + "operationId": "user.calendar.event_cancel" } ] }, @@ -2216,17 +1561,17 @@ { "method": "GET", "path": "/users/{user-id}/calendar/events", - "operationId": "users.calendar.ListEvents" + "operationId": "user.calendar_ListEvent" }, { "method": "POST", "path": "/users/{user-id}/calendar/events", - "operationId": "users.calendar.CreateEvents" + "operationId": "user.calendar_CreateEvent" }, { "method": "POST", "path": "/users/{user-id}/calendar/events/{event-id}/cancel", - "operationId": "users.user.calendar.events.event.cancel" + "operationId": "user.calendar.event_cancel" } ] } @@ -2246,12 +1591,12 @@ { "method": "POST", "path": "/users/{user-id}/calendar/getSchedule", - "operationId": "users.user.calendar.getSchedule" + "operationId": "user.calendar_getSchedule" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/getSchedule", - "operationId": "users.user.calendars.calendar.getSchedule" + "operationId": "user.calendar_getSchedule" } ] }, @@ -2261,12 +1606,12 @@ { "method": "POST", "path": "/users/{user-id}/calendar/getSchedule", - "operationId": "users.user.calendar.getSchedule" + "operationId": "user.calendar_getSchedule" }, { "method": "POST", "path": "/users/{user-id}/calendars/{calendar-id}/getSchedule", - "operationId": "users.user.calendars.calendar.getSchedule" + "operationId": "user.calendar_getSchedule" } ] } @@ -2286,12 +1631,12 @@ { "method": "GET", "path": "/users/{user-id}/calendar/events/delta()", - "operationId": "users.user.calendar.events.delta" + "operationId": "user.calendar.event_delta" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/delta()", - "operationId": "users.user.calendars.calendar.events.delta" + "operationId": "user.calendar.event_delta" } ] }, @@ -2301,12 +1646,12 @@ { "method": "GET", "path": "/users/{user-id}/calendar/events/delta()", - "operationId": "users.user.calendar.events.delta" + "operationId": "user.calendar.event_delta" }, { "method": "GET", "path": "/users/{user-id}/calendars/{calendar-id}/events/delta()", - "operationId": "users.user.calendars.calendar.events.delta" + "operationId": "user.calendar.event_delta" } ] } @@ -2316,5 +1661,6 @@ "legacySpecBlobs": { "v1.0": "7103e6e3a02ff3a5b63e577910ea0863516b468c", "beta": "8b01cbfc54946d1e5f49a760c43eb2b1663811dc" - } + }, + "reviewedTargetCommit": "abab9dac88dd1e1d15e8e43fa766ab9be7cba34d" } diff --git a/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs b/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs index 8e619e9f74d..3054533bcc1 100644 --- a/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs +++ b/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs @@ -53,54 +53,56 @@ public void ReviewedLedgerMatchesEveryExactOperationAndOriginalSelector(string p var pattern = Regex.Match(source, @"(?m)^\s*- remove-path-by-operation: (.+)\r?$").Groups[1].Value.Trim(); var regex = new Regex(pattern); var legacy = LegacySpec(profile); - var legacyMap = directives[0].GetProperty("profiles").GetProperty(profile); - Assert.Equal("Legacy", legacyMap.GetProperty("operationIdSource").GetString()); - Assert.False(legacyMap.TryGetProperty("removedLegacyOperations", out _)); + var profileMap = directives[0].GetProperty("profiles").GetProperty(profile); + Assert.False(profileMap.TryGetProperty("operationIdSource", out _)); + Assert.False(profileMap.TryGetProperty("removedLegacyOperations", out _)); var matched = legacy.Paths.SelectMany(p => p.Value.Operations! .Where(o => regex.IsMatch(o.Value.OperationId!)) - .Select(o => $"{o.Key.Method.ToUpperInvariant()} {p.Key} [{o.Value.OperationId}]")) - .OrderBy(x => x, StringComparer.Ordinal).ToArray(); - var operations = legacyMap.GetProperty("operations").EnumerateArray().ToArray(); + .Select(o => (Method: o.Key, Path: p.Key, Operation: o.Value))).ToArray(); + var operations = profileMap.GetProperty("operations").EnumerateArray().ToArray(); var reviewed = operations.Select(o => - $"{o.GetProperty("method").GetString()} {o.GetProperty("legacyPath").GetString()} [{o.GetProperty("legacyOperationId").GetString()}]") + $"{o.GetProperty("method").GetString()} {o.GetProperty("path").GetString()} [{o.GetProperty("operationId").GetString()}]") .OrderBy(x => x, StringComparer.Ordinal).ToArray(); Assert.Equal(profile == "v1.0" ? 136 : 137, matched.Length); - Assert.Equal(matched, reviewed); + Assert.Equal(matched.Length, operations.Length); var translatedCalls = 0; - foreach (var operation in operations) + var survivors = matched.Select(old => { - var method = new HttpMethod(operation.GetProperty("method").GetString()!); - var oldPath = operation.GetProperty("legacyPath").GetString()!; - var path = operation.GetProperty("path").GetString()!; - var oldOperation = legacy.Paths[oldPath].Operations![method]; - Assert.Equal(operation.GetProperty("legacyOperationId").GetString(), oldOperation.OperationId); - if (CmdletConfigurator.NormalizePathTemplate(oldPath) != CmdletConfigurator.NormalizePathTemplate(path)) + var oldPath = CmdletConfigurator.NormalizePathTemplate(old.Path); + var kind = OperationType(old.Operation); + var parts = old.Path.Split('/'); + var translated = parts[^1].StartsWith("microsoft.graph.", StringComparison.Ordinal); + if (translated) { - Assert.Equal("UnqualifyFinalOperation", operation.GetProperty("legacyPathTranslation").GetString()); - var kind = OperationType(oldOperation); Assert.True(kind is "action" or "function"); - Assert.Equal(kind, OperationType(spec.Paths[path].Operations![method])); - Assert.Equal(kind == "action" ? HttpMethod.Post : HttpMethod.Get, method); - var parts = oldPath.Split('/'); - Assert.StartsWith("microsoft.graph.", parts[^1]); + Assert.Equal(kind == "action" ? HttpMethod.Post : HttpMethod.Get, old.Method); parts[^1] = parts[^1]["microsoft.graph.".Length..]; - Assert.Equal(CmdletConfigurator.NormalizePathTemplate(string.Join("/", parts)), - CmdletConfigurator.NormalizePathTemplate(path)); + oldPath = CmdletConfigurator.NormalizePathTemplate(string.Join("/", parts)); translatedCalls++; } - else - { - Assert.False(operation.TryGetProperty("legacyPathTranslation", out _)); - } - } + var successor = Assert.Single(spec.Paths + .Where(p => CmdletConfigurator.NormalizePathTemplate(p.Key) == oldPath + && p.Value.Operations!.ContainsKey(old.Method))); + var current = successor.Value.Operations![old.Method]; + if (translated) + Assert.Equal(kind, OperationType(current)); + Assert.Equal(old.Operation.OperationId, current.OperationId); + return $"{old.Method.Method.ToUpperInvariant()} {successor.Key} [{current.OperationId}]"; + }).OrderBy(x => x, StringComparer.Ordinal).ToArray(); + Assert.Equal(survivors.Length, survivors.Distinct(StringComparer.Ordinal).Count()); + Assert.Equal(survivors, reviewed); Assert.Equal(profile == "v1.0" ? 53 : 54, translatedCalls); var currentLiteralMatches = spec.Paths.SelectMany(p => p.Value.Operations! .Where(o => regex.IsMatch(o.Value.OperationId!)) - .Select(o => $"{o.Key.Method.ToUpperInvariant()} {p.Key} [{o.Value.OperationId}]")).ToArray(); - Assert.Equal(26, currentLiteralMatches.Length); - foreach (var literal in currentLiteralMatches) - Assert.Contains(operations, o => - $"{o.GetProperty("method").GetString()} {o.GetProperty("path").GetString()} [{o.GetProperty("operationId").GetString()}]" == literal); + .Select(o => $"{o.Key.Method.ToUpperInvariant()} {p.Key} [{o.Value.OperationId}]")) + .OrderBy(x => x, StringComparer.Ordinal).ToArray(); + Assert.Equal(survivors, currentLiteralMatches); + foreach (var operation in operations) + { + Assert.False(operation.TryGetProperty("legacyPath", out _)); + Assert.False(operation.TryGetProperty("legacyOperationId", out _)); + Assert.False(operation.TryGetProperty("legacyPathTranslation", out _)); + } } [Theory] @@ -173,7 +175,7 @@ public void SharingRoleRenameAlsoWorksWithoutAnyGeneratorConfiguration() [Theory] [InlineData("v1.0")] [InlineData("beta")] - public void RenamedLegacyCrudOperationsAreNotMisclassifiedAsAbsent(string profile) + public void AlignedLegacyCrudOperationsStaySuppressed(string profile) { var spec = Spec(profile); Assert.DoesNotContain(spec.Paths.Keys, p => @@ -182,12 +184,12 @@ public void RenamedLegacyCrudOperationsAreNotMisclassifiedAsAbsent(string profil Assert.Equal("user_UpdateCalendar", LegacySpec(profile).Paths["/users/{user-id}/calendar"].Operations![HttpMethod.Patch].OperationId); const string groupItem = "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}"; Assert.Equal("user.calendarGroup_GetCalendar", LegacySpec(profile).Paths[groupItem].Operations![HttpMethod.Get].OperationId); - Assert.Equal("users.calendarGroups.GetCalendars", spec.Paths[groupItem].Operations![HttpMethod.Get].OperationId); + Assert.Equal("user.calendarGroup_GetCalendar", spec.Paths[groupItem].Operations![HttpMethod.Get].OperationId); Assert.True(CmdletConfigurator.IsSuppressed(HttpMethod.Get, groupItem)); Assert.True(CmdletConfigurator.IsSuppressed(HttpMethod.Get, groupItem + "/allowedCalendarSharingRoles(User='{User}')")); - Assert.Equal("users.UpdateCalendar", spec.Paths["/users/{user-id}/calendar"].Operations![HttpMethod.Patch].OperationId); - Assert.Equal("users.calendar.GetEvents", spec.Paths["/users/{user-id}/calendar/events/{event-id}"].Operations![HttpMethod.Get].OperationId); + Assert.Equal("user_UpdateCalendar", spec.Paths["/users/{user-id}/calendar"].Operations![HttpMethod.Patch].OperationId); + Assert.Equal("user.calendar_GetEvent", spec.Paths["/users/{user-id}/calendar/events/{event-id}"].Operations![HttpMethod.Get].OperationId); Assert.True(CmdletConfigurator.IsSuppressed(HttpMethod.Patch, "/users/{user-id}/calendar")); } From 1827359dea3b5fe007ef0b393f587a6b5236b585 Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Tue, 27 Oct 2026 12:05:21 -0700 Subject: [PATCH 11/24] Regenerate Calendar v1.0 from current aligned specifications Run the real full queued Kiota 1.36.1 and wrapper Release pipeline against powershell-v3 abab9dac current compatible spec 9371766a. Use process-local generation parallelism 1 and official Authentication 2.38.1. The freshly imported module exports 268 commands and all 136 source-selected suppressions, required renames and retained neighbors pass compiled route assertions. Client/cmdlet source, projects and wrapper lock regenerate unchanged after canonical normalization; record the actual client input hash in this combined profile generation boundary. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- src/Calendar/wrapper/v1.0/Client/kiota-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Calendar/wrapper/v1.0/Client/kiota-lock.json b/src/Calendar/wrapper/v1.0/Client/kiota-lock.json index d6e0a39b315..91a7bbfd80a 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": "F1B2B684A74FCC834C973FEED70BC00D5D9F17F7BFABC40F688CE6356D1A786253B08618B40BB55C22E5A6DBB0CC5BA7C15124F21CE375976254F6A91F53B6A9", + "descriptionHash": "3219E99346CBCCEEF7621BA02EDB74A4650B312F65CEB5424505F22BF11AA7F80E391D6227B4D51D90C6C9F82320EC63E61E445B187751E972BC944669FF85E5", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/v1.0/Calendar.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.36.1", From adc6abc60b165d2497c7f92ca00aa6dceea39b84 Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Tue, 27 Oct 2026 12:06:05 -0700 Subject: [PATCH 12/24] Regenerate Calendar beta from current aligned specifications Run the real full queued Kiota 1.36.1 and wrapper Release pipeline against powershell-v3 abab9dac current compatible spec 5baa13cd. Use process-local generation parallelism 1 and official Authentication 2.38.1. The freshly imported module exports 312 commands and all 137 source-selected suppressions, required renames and retained neighbors pass compiled assertions. Record the updated input hash and two spec-derived calendar-delta documentation updates together in this beta generation boundary; cmdlets, generated projects and wrapper lock regenerate unchanged. Preserve all prior generation commits and unrelated naming behavior. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../Item/Calendars/Delta/DeltaRequestBuilder.cs | 8 ++++---- .../Users/Item/Calendars/Delta/DeltaRequestBuilder.cs | 8 ++++---- src/Calendar/wrapper/beta/Client/kiota-lock.json | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Delta/DeltaRequestBuilder.cs index 9121946be8d..a72a6aa0598 100644 --- a/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Delta/DeltaRequestBuilder.cs +++ b/src/Calendar/wrapper/beta/Client/Users/Item/CalendarGroups/Item/Calendars/Delta/DeltaRequestBuilder.cs @@ -34,7 +34,7 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base { } /// - /// Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. + /// Get a set of calendar resources added, updated, or deleted in a user's mailbox. Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. /// Find more info here /// /// A @@ -58,7 +58,7 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. + /// Get a set of calendar resources added, updated, or deleted in a user's mailbox. Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. /// Find more info here /// /// A @@ -83,7 +83,7 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.CalendarGroups.Item.Calendars.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. + /// Get a set of calendar resources added, updated, or deleted in a user's mailbox. Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,7 +111,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. + /// Get a set of calendar resources added, updated, or deleted in a user's mailbox. Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class DeltaRequestBuilderGetQueryParameters diff --git a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Delta/DeltaRequestBuilder.cs b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Delta/DeltaRequestBuilder.cs index a594f2af534..a0245a108c4 100644 --- a/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Delta/DeltaRequestBuilder.cs +++ b/src/Calendar/wrapper/beta/Client/Users/Item/Calendars/Delta/DeltaRequestBuilder.cs @@ -34,7 +34,7 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base { } /// - /// Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. + /// Get a set of calendar resources added, updated, or deleted in a user's mailbox. Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. /// Find more info here /// /// A @@ -58,7 +58,7 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Delta.DeltaGetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. + /// Get a set of calendar resources added, updated, or deleted in a user's mailbox. Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. /// Find more info here /// /// A @@ -83,7 +83,7 @@ public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base return await RequestAdapter.SendAsync(requestInfo, global::Microsoft.Graph.PowerShell.Calendar.Client.Users.Item.Calendars.Delta.DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. + /// Get a set of calendar resources added, updated, or deleted in a user's mailbox. Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -111,7 +111,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. + /// Get a set of calendar resources added, updated, or deleted in a user's mailbox. Typically, synchronizing calendars in a mailbox in a local store entails a round of multiple delta function calls. The initial call is a full synchronization, and every subsequent delta call in the same round gets the incremental changes (additions, deletions, or updates). Using deltas allows you to incrementally maintain and synchronize a local store of calendars in the specified mailbox. /// [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] public partial class DeltaRequestBuilderGetQueryParameters diff --git a/src/Calendar/wrapper/beta/Client/kiota-lock.json b/src/Calendar/wrapper/beta/Client/kiota-lock.json index df2ba1813fc..19852889073 100644 --- a/src/Calendar/wrapper/beta/Client/kiota-lock.json +++ b/src/Calendar/wrapper/beta/Client/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "8D2493579F5BAD63C5895CDB1748570A16B79ED4DF121EB2C1A5F409C0B648387FD10C8316765EAB062E336D07F5D112B46B4779A7D80A22192D0943CD47AF35", + "descriptionHash": "9AC805BDAF9EEE18B94D5C4BBCE0173014F73BD32ACBB8B34D3771045A69D47006A09EC9A10931A589451EEB114FC85A687E60E81F5C8EAD5F52DF5285923D30", "descriptionLocation": "../../../../../openApiDocs_KiotaCompat/beta/Calendar.yml", "lockFileVersion": "1.0.0", "kiotaVersion": "1.36.1", From 057f3a9182f3014707f169b5bd86efd9bd90b6ad Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Thu, 29 Oct 2026 18:15:34 -0700 Subject: [PATCH 13/24] Update Calendar tests for separate generation profile context Normally integrate powershell-v3 08e409a6 after framework PR 3849. Use the actual three-setting GeneratorConfig and explicitly propagate the separate API profile through every Calendar naming, suppression, verb and generation-service call. Pin derived-data enabled/disabled naming differences and null-config behavior for both profiles so beta cannot silently use the v1 oracle. Preserve the exact 136/137-operation source set and all curated neighbors; all six strict mappings and 136 combined targeted tests pass. Fresh full profile generation follows in separate commits. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../Calendar_directiveMigrationMap.json | 4 +- .../CalendarDirectiveMigrationTests.cs | 82 ++++++++++--------- 2 files changed, 45 insertions(+), 41 deletions(-) diff --git a/src/Calendar/wrapper/Calendar_directiveMigrationMap.json b/src/Calendar/wrapper/Calendar_directiveMigrationMap.json index bb90b5ad014..7e769faf7d0 100644 --- a/src/Calendar/wrapper/Calendar_directiveMigrationMap.json +++ b/src/Calendar/wrapper/Calendar_directiveMigrationMap.json @@ -1,6 +1,6 @@ { "scope": "Only src/Calendar/Calendar.md; global and profile-local directives are excluded. Parameter aliases/transforms and schema/response directives remain deferred.", - "prerequisite": "Reviewed inventory #3837 and verb support #3838 are merged. Current powershell-v3 target abab9dac88dd1e1d15e8e43fa766ab9be7cba34d includes aligned operation IDs #3861 and refreshed compatible specs #3863: the existing literal inventory schema now validates the complete 136/137-operation source set without unmerged #3847 or reserved Legacy translation fields. Independent legacy proof remains in these notes, source blob hashes, and module tests.", + "prerequisite": "Reviewed inventory #3837, verb support #3838 and natural-ID operation variant framework #3849 are merged. Current powershell-v3 target 08e409a6aa8fd48736b8f9a9199559f46fc0d1ad retains aligned operation IDs #3861 and refreshed compatible specs #3863: the existing literal inventory schema validates the complete 136/137-operation source set without unmerged #3847 or reserved Legacy translation fields. Module tests use the three-setting GeneratorConfig and separate profile context for derived data, including beta with collision data enabled and disabled. No Calendar variant grouping is introduced; independent legacy proof remains in notes, source blob hashes and tests.", "specBlobs": { "v1.0": "9371766a3e422aec32ba2b68d096e2fd4d115042", "beta": "5baa13cd8fe2804cea0ecf4a59f7815728b55a67" @@ -1662,5 +1662,5 @@ "v1.0": "7103e6e3a02ff3a5b63e577910ea0863516b468c", "beta": "8b01cbfc54946d1e5f49a760c43eb2b1663811dc" }, - "reviewedTargetCommit": "abab9dac88dd1e1d15e8e43fa766ab9be7cba34d" + "reviewedTargetCommit": "08e409a6aa8fd48736b8f9a9199559f46fc0d1ad" } diff --git a/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs b/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs index 3054533bcc1..82014f20579 100644 --- a/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs +++ b/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs @@ -112,7 +112,7 @@ public void ReviewedLedgerMatchesEveryExactOperationAndOriginalSelector(string p [InlineData("beta", true)] public void ReviewedSuppressionsWorkWithAndWithoutDerivedData(string profile, bool useCollisionData) { - var config = new GeneratorConfig("Test.Client", "", profile, useCollisionData); + var config = new GeneratorConfig("Test.Client", "", useCollisionData); using var ledger = ReadLedger(); foreach (var directive in ledger.RootElement.GetProperty("mappings").EnumerateArray() .Where(d => d.GetProperty("directiveIndex").GetInt32() is 1 or 5 or 6)) @@ -121,20 +121,20 @@ public void ReviewedSuppressionsWorkWithAndWithoutDerivedData(string profile, bo { var method = new HttpMethod(operation.GetProperty("method").GetString()!); var path = operation.GetProperty("path").GetString()!; - Assert.True(CmdletConfigurator.IsSuppressed(method, path, config), $"{profile} {method} {path}"); + Assert.True(CmdletConfigurator.IsSuppressed(method, path, config, apiVersion: profile), $"{profile} {method} {path}"); } } - Assert.True(CmdletConfigurator.IsSuppressed(HttpMethod.Post, "/users/{user-id}/calendar/events/{event-id}/cancel", config)); - Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Get, "/users/{user-id}/calendar", config)); - Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Get, "/users/{user-id}/events/delta()", config)); - Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Post, "/users/{user-id}/events/{event-id}/cancel", config)); - Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Post, "/groups/{group-id}/calendar/getSchedule", config)); - Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Get, "/groups/{group-id}/calendar/events/{event-id}", config)); - Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Patch, "/groups/{group-id}/calendar/events/{event-id}", config)); - Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Delete, "/groups/{group-id}/calendar/events/{event-id}", config)); - Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Post, "/groups/{group-id}/calendar/events", config)); - Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Get, "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars", config)); - Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Post, "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars", config)); + Assert.True(CmdletConfigurator.IsSuppressed(HttpMethod.Post, "/users/{user-id}/calendar/events/{event-id}/cancel", config, apiVersion: profile)); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Get, "/users/{user-id}/calendar", config, apiVersion: profile)); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Get, "/users/{user-id}/events/delta()", config, apiVersion: profile)); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Post, "/users/{user-id}/events/{event-id}/cancel", config, apiVersion: profile)); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Post, "/groups/{group-id}/calendar/getSchedule", config, apiVersion: profile)); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Get, "/groups/{group-id}/calendar/events/{event-id}", config, apiVersion: profile)); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Patch, "/groups/{group-id}/calendar/events/{event-id}", config, apiVersion: profile)); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Delete, "/groups/{group-id}/calendar/events/{event-id}", config, apiVersion: profile)); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Post, "/groups/{group-id}/calendar/events", config, apiVersion: profile)); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Get, "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars", config, apiVersion: profile)); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Post, "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars", config, apiVersion: profile)); } [Theory] @@ -144,32 +144,36 @@ public void ReviewedSuppressionsWorkWithAndWithoutDerivedData(string profile, bo [InlineData("beta", true)] public void RenamesStayExactAndStructuralNeighborsNeedNoOverrides(string profile, bool useCollisionData) { - var config = new GeneratorConfig("Test.Client", "", profile, useCollisionData); - Assert.Equal("MgUserDefaultCalendar", Resolve(HttpMethod.Get, "/users/{user-id}/calendar", config).Noun); - Assert.Equal("MgUserDefaultCalendarEvent", Resolve(HttpMethod.Get, "/users/{user-id}/calendar/events", config).Noun); - Assert.Equal("MgUserDefaultCalendarEvent", Resolve(HttpMethod.Post, "/users/{user-id}/calendar/events", config).Noun); - Assert.Equal("MgUserCalendar", Resolve(HttpMethod.Get, "/users/{user-id}/calendars", config).Noun); - Assert.Equal("MgUserCalendar", Resolve(HttpMethod.Get, "/users/{user-id}/calendars/{calendar-id}", config).Noun); - Assert.Equal("MgGroupCalendarEvent", Resolve(HttpMethod.Get, "/groups/{group-id}/calendar/events/{event-id}", config).Noun); - Assert.Equal("MgUserEvent", Resolve(HttpMethod.Get, "/users/{user-id}/events/{event-id}", config).Noun); + var config = new GeneratorConfig("Test.Client", "", useCollisionData); + Assert.Equal("MgUserDefaultCalendar", Resolve(HttpMethod.Get, "/users/{user-id}/calendar", config, profile).Noun); + Assert.Equal("MgUserDefaultCalendarEvent", Resolve(HttpMethod.Get, "/users/{user-id}/calendar/events", config, profile).Noun); + Assert.Equal("MgUserDefaultCalendarEvent", Resolve(HttpMethod.Post, "/users/{user-id}/calendar/events", config, profile).Noun); + Assert.Equal("MgUserCalendar", Resolve(HttpMethod.Get, "/users/{user-id}/calendars", config, profile).Noun); + Assert.Equal("MgUserCalendar", Resolve(HttpMethod.Get, "/users/{user-id}/calendars/{calendar-id}", config, profile).Noun); + Assert.Equal("MgGroupCalendarEvent", Resolve(HttpMethod.Get, "/groups/{group-id}/calendar/events/{event-id}", config, profile).Noun); + Assert.Equal("MgUserEvent", Resolve(HttpMethod.Get, "/users/{user-id}/events/{event-id}", config, profile).Noun); - var sharing = Resolve(HttpMethod.Get, SharingPath, config, OperationKind.Function); + var sharing = Resolve(HttpMethod.Get, SharingPath, config, profile, OperationKind.Function); Assert.Equal("MgCalendarUserCalendarAllowedCalendarSharingRoles", sharing.Noun); Assert.Equal("Invoke", sharing.VerbName); Assert.Equal("InvokeMgCalendarUserCalendarAllowedCalendarSharingRolesCommand", sharing.ClassName); - Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Get, SharingPath, config)); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Get, SharingPath, config, apiVersion: profile)); + Assert.Equal(profile == "v1.0" && useCollisionData ? "Stop" : "Invoke", + Resolve(HttpMethod.Post, "/users/{user-id}/events/{event-id}/cancel", config, profile, OperationKind.Action).VerbName); } - [Fact] - public void SharingRoleRenameAlsoWorksWithoutAnyGeneratorConfiguration() + [Theory] + [InlineData("v1.0")] + [InlineData("beta")] + public void SharingRoleRenameAlsoWorksWithoutAnyGeneratorConfiguration(string profile) { - var naming = Naming.Resolve(new OperationInfo(HttpMethod.Get, SharingPath, Kind: OperationKind.Function)); + var naming = Naming.Resolve(new OperationInfo(HttpMethod.Get, SharingPath, Kind: OperationKind.Function), apiVersion: profile); Assert.Equal("Invoke", naming.VerbName); Assert.Equal("MgCalendarUserCalendarAllowedCalendarSharingRoles", naming.Noun); Assert.Equal("InvokeMgCalendarUserCalendarAllowedCalendarSharingRolesCommand", naming.ClassName); - Assert.Null(CmdletConfigurator.TryGetOverriddenVerb(HttpMethod.Post, SharingPath, null)); + Assert.Null(CmdletConfigurator.TryGetOverriddenVerb(HttpMethod.Post, SharingPath, null, apiVersion: profile)); Assert.Null(CmdletConfigurator.TryGetOverriddenVerb(HttpMethod.Get, - "/users/{user-id}/events/{event-id}/calendar/allowedCalendarSharingRoles(User='{User}')", null)); + "/users/{user-id}/events/{event-id}/calendar/allowedCalendarSharingRoles(User='{User}')", null, apiVersion: profile)); } [Theory] @@ -185,12 +189,12 @@ public void AlignedLegacyCrudOperationsStaySuppressed(string profile) const string groupItem = "/users/{user-id}/calendarGroups/{calendarGroup-id}/calendars/{calendar-id}"; Assert.Equal("user.calendarGroup_GetCalendar", LegacySpec(profile).Paths[groupItem].Operations![HttpMethod.Get].OperationId); Assert.Equal("user.calendarGroup_GetCalendar", spec.Paths[groupItem].Operations![HttpMethod.Get].OperationId); - Assert.True(CmdletConfigurator.IsSuppressed(HttpMethod.Get, groupItem)); + Assert.True(CmdletConfigurator.IsSuppressed(HttpMethod.Get, groupItem, apiVersion: profile)); Assert.True(CmdletConfigurator.IsSuppressed(HttpMethod.Get, - groupItem + "/allowedCalendarSharingRoles(User='{User}')")); + groupItem + "/allowedCalendarSharingRoles(User='{User}')", apiVersion: profile)); Assert.Equal("user_UpdateCalendar", spec.Paths["/users/{user-id}/calendar"].Operations![HttpMethod.Patch].OperationId); Assert.Equal("user.calendar_GetEvent", spec.Paths["/users/{user-id}/calendar/events/{event-id}"].Operations![HttpMethod.Get].OperationId); - Assert.True(CmdletConfigurator.IsSuppressed(HttpMethod.Patch, "/users/{user-id}/calendar")); + Assert.True(CmdletConfigurator.IsSuppressed(HttpMethod.Patch, "/users/{user-id}/calendar", apiVersion: profile)); } [Theory] @@ -221,19 +225,19 @@ public void ExistingCollisionSuppressionsHaveExactSpecAndBothProfileOracleEviden && row.GetProperty("Method").GetString() == method.Method && row.GetProperty("Uri").GetString() is { } uri && CmdletConfigurator.NormalizePathTemplate(uri) == normalized); - Assert.True(CmdletConfigurator.IsSuppressed(method, path, new GeneratorConfig("Test.Client", "", profile))); - Assert.True(CmdletConfigurator.IsSuppressed(method, path)); + Assert.True(CmdletConfigurator.IsSuppressed(method, path, new GeneratorConfig("Test.Client", ""), apiVersion: profile)); + Assert.True(CmdletConfigurator.IsSuppressed(method, path, apiVersion: profile)); } foreach (var path in new[] { "/groups/{group-id}/calendar/calendarView", "/users/{user-id}/calendar/calendarView" }) { - Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Get, path, new GeneratorConfig("Test.Client", "", profile))); + Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Get, path, new GeneratorConfig("Test.Client", ""), apiVersion: profile)); Assert.Contains(oracle.RootElement.EnumerateArray(), row => row.GetProperty("ApiVersion").GetString() == profile && row.GetProperty("Method").GetString() == "GET" && row.GetProperty("Uri").GetString() == path); } Assert.False(CmdletConfigurator.IsSuppressed(HttpMethod.Post, "/users/{user-id}/calendar/permanentDelete", - new GeneratorConfig("Test.Client", "", profile))); + new GeneratorConfig("Test.Client", ""), apiVersion: profile)); } [Theory] @@ -288,8 +292,8 @@ public async Task TargetedGenerationUsesRealProfileOperationsAndPreservesNeighbo Directory.CreateDirectory(output); try { - var config = new GeneratorConfig("Test.Client", output, profile); - await new PowerShellWrapperGenerationService(subset, config, NullLogger.Instance) + var config = new GeneratorConfig("Test.Client", output); + await new PowerShellWrapperGenerationService(subset, config, NullLogger.Instance, apiVersion: profile) .GenerateAsync(CancellationToken.None); var files = Directory.GetFiles(output, "*.g.cs").Select(Path.GetFileName).ToArray(); Assert.Contains("GetMgUserDefaultCalendar.g.cs", files); @@ -318,9 +322,9 @@ public async Task TargetedGenerationUsesRealProfileOperationsAndPreservesNeighbo } } - private static CmdletNaming Resolve(HttpMethod method, string path, GeneratorConfig config, + private static CmdletNaming Resolve(HttpMethod method, string path, GeneratorConfig config, string profile, OperationKind kind = OperationKind.Resource) => - Naming.Resolve(new OperationInfo(method, path, Kind: kind), config); + Naming.Resolve(new OperationInfo(method, path, Kind: kind), config, apiVersion: profile); private static OpenApiDocument Spec(string profile) => profile == "v1.0" ? V1.Value : Beta.Value; From 83df45786bcabb112288661b04220a78b5b769e4 Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Thu, 29 Oct 2026 18:23:11 -0700 Subject: [PATCH 14/24] Revalidate full Calendar v1.0 generation after operation variant framework Run the actual queued full Kiota 1.36.1 and wrapper Release pipeline on normally merged target 08e409a6 after PR 3849, with process-local model parallelism 1 and official Authentication 2.38.1. Exit 0/status OK in 156.6 seconds; freshly imported module has 268 exports and compiled routes. All 136 source-selected suppressions, curated renames and untouched neighbors pass. Client, cmdlets, generated projects and locks are unchanged after canonical Git normalization. This explicitly empty combined profile-generation commit records the real full run without fabricating a source delta. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> From 0cb3da36d2194f439d35f8bf50f647590c9ac5b0 Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Thu, 29 Oct 2026 18:25:59 -0700 Subject: [PATCH 15/24] Revalidate full Calendar beta generation after operation variant framework Run the actual queued full Kiota 1.36.1 and wrapper Release pipeline on normally merged target 08e409a6 after PR 3849, with process-local model parallelism 1 and official Authentication 2.38.1. Exit 0/status OK in 156.2 seconds; freshly imported module has 312 exports and compiled routes. All 137 source-selected suppressions, curated renames and untouched neighbors pass. Client, cmdlets, generated projects and locks are unchanged after canonical Git normalization. This explicitly empty combined beta profile-generation commit records the real full run without fabricating source changes or altering baseline beta names. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> From 25033e9788a0930abf8c0a63850c149bf68be617 Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Mon, 2 Nov 2026 16:42:53 -0800 Subject: [PATCH 16/24] Validate Calendar emitted service roots after Authentication sync Normally integrate powershell-v3 844672d7 Authentication 2.41.2 ownership and profile-aware transport. Pin emitted GetRequestAdapter profile calls across both Calendar subsets, retain the complete 136/137 actual legacy survivor set and separate profile context, and record the current acceptance target. All six strict mappings and 153 combined Calendar/naming/action/configurator/emitter tests pass. Fresh full profile generations and adapted-package real transport verification follow separately. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../wrapper/Calendar_directiveMigrationMap.json | 4 ++-- .../CalendarDirectiveMigrationTests.cs | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/Calendar/wrapper/Calendar_directiveMigrationMap.json b/src/Calendar/wrapper/Calendar_directiveMigrationMap.json index 7e769faf7d0..ccfab5c8a23 100644 --- a/src/Calendar/wrapper/Calendar_directiveMigrationMap.json +++ b/src/Calendar/wrapper/Calendar_directiveMigrationMap.json @@ -1,6 +1,6 @@ { "scope": "Only src/Calendar/Calendar.md; global and profile-local directives are excluded. Parameter aliases/transforms and schema/response directives remain deferred.", - "prerequisite": "Reviewed inventory #3837, verb support #3838 and natural-ID operation variant framework #3849 are merged. Current powershell-v3 target 08e409a6aa8fd48736b8f9a9199559f46fc0d1ad retains aligned operation IDs #3861 and refreshed compatible specs #3863: the existing literal inventory schema validates the complete 136/137-operation source set without unmerged #3847 or reserved Legacy translation fields. Module tests use the three-setting GeneratorConfig and separate profile context for derived data, including beta with collision data enabled and disabled. No Calendar variant grouping is introduced; independent legacy proof remains in notes, source blob hashes and tests.", + "prerequisite": "Reviewed inventory, curated verbs, natural-ID variants, required-path ID alignment and adapted Authentication #3891 are normally merged in powershell-v3 target 844672d7c2238f6b29a208f9ba73fe28e9e29cef. The existing literal inventory schema still validates the complete 136/137-operation source set with unchanged Calendar specs and no reserved Legacy fields. Module tests use the three-setting GeneratorConfig and separate profile context for derived data and emitted service roots, including beta with collision data enabled and disabled. No Calendar variant grouping is introduced. Fresh acceptance uses normally packaged adapted Authentication 2.41.2 as the sole owner of its Kiota closure; independent legacy proof remains in notes, source blob hashes and tests.", "specBlobs": { "v1.0": "9371766a3e422aec32ba2b68d096e2fd4d115042", "beta": "5baa13cd8fe2804cea0ecf4a59f7815728b55a67" @@ -1662,5 +1662,5 @@ "v1.0": "7103e6e3a02ff3a5b63e577910ea0863516b468c", "beta": "8b01cbfc54946d1e5f49a760c43eb2b1663811dc" }, - "reviewedTargetCommit": "08e409a6aa8fd48736b8f9a9199559f46fc0d1ad" + "reviewedTargetCommit": "844672d7c2238f6b29a208f9ba73fe28e9e29cef" } diff --git a/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs b/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs index 82014f20579..878a621c9f6 100644 --- a/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs +++ b/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs @@ -315,6 +315,17 @@ public async Task TargetedGenerationUsesRealProfileOperationsAndPreservesNeighbo Assert.DoesNotContain(files, f => f!.Contains("CalendarGetSchedule", StringComparison.Ordinal)); Assert.DoesNotContain(files, f => f!.Contains("CalendarEventCancel", StringComparison.Ordinal)); Assert.Contains("InvokeMgCalendarUserCalendarAllowedCalendarSharingRoles.g.cs", files); + foreach (var file in files) + { + var emitted = File.ReadAllText(Path.Combine(output, file!)); + if (emitted.Contains("GetRequestAdapter(", StringComparison.Ordinal)) + { + Assert.Contains($"GetRequestAdapter(\"{profile}\")", emitted); + Assert.DoesNotContain("GetRequestAdapter()", emitted); + } + } + Assert.Contains($"GetRequestAdapter(\"{profile}\")", + File.ReadAllText(Path.Combine(output, "GetMgUserDefaultCalendar.g.cs"))); } finally { From 8423142b8a197e6fcb61f7911c411b45849a89b9 Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Mon, 2 Nov 2026 16:51:24 -0800 Subject: [PATCH 17/24] Regenerate Calendar v1.0 for adapted Authentication and explicit service root Run the actual queued full Kiota 1.36.1 and wrapper Release pipeline on normally merged 844672d7 with adapted packaged Authentication 2.41.2 and model parallelism 1. Status OK/exit 0 in 28.1 seconds; fresh manifest imports 268 commands and compiled routes. Preserve all 136 source-selected suppressions and exact renamed/neighbor routes. Regenerate v1.0 cmdlets with GetRequestAdapter("v1.0") and project dependency pruning; manifests require Authentication 2.41.2 without dependency preloads, and bins/packages contain only three owned DLLs. Client and lock regenerate unchanged. Actual authenticated global/USGov transport, typed bodies/results, safety/binding/load contexts pass; existing bound-header refetch limitation remains explicitly recorded for PR 3886. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../wrapper/v1.0/Cmdlets/GetMgGroupCalendar.g.cs | 2 +- ...pCalendarAllowedCalendarSharingRolesWithUser.g.cs | 2 +- .../v1.0/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs | 2 +- .../v1.0/Cmdlets/GetMgGroupCalendarEvent_List.g.cs | 2 +- .../Cmdlets/GetMgGroupCalendarPermissionCount.g.cs | 2 +- .../Cmdlets/GetMgGroupCalendarPermission_Get.g.cs | 2 +- .../Cmdlets/GetMgGroupCalendarPermission_List.g.cs | 2 +- .../v1.0/Cmdlets/GetMgGroupCalendarSchedule.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgGroupCalendarView.g.cs | 2 +- .../v1.0/Cmdlets/GetMgGroupEventAttachmentCount.g.cs | 2 +- .../v1.0/Cmdlets/GetMgGroupEventAttachment_Get.g.cs | 2 +- .../v1.0/Cmdlets/GetMgGroupEventAttachment_List.g.cs | 2 +- .../v1.0/Cmdlets/GetMgGroupEventCalendar.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgGroupEventCount.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgGroupEventDelta.g.cs | 2 +- .../v1.0/Cmdlets/GetMgGroupEventExtensionCount.g.cs | 2 +- .../v1.0/Cmdlets/GetMgGroupEventExtension_Get.g.cs | 2 +- .../v1.0/Cmdlets/GetMgGroupEventExtension_List.g.cs | 2 +- .../v1.0/Cmdlets/GetMgGroupEventInstance.g.cs | 2 +- .../v1.0/Cmdlets/GetMgGroupEventInstanceDelta.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgGroupEvent_Get.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgGroupEvent_List.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsBuildingCheckInCount.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsBuildingMap.g.cs | 2 +- .../GetMgPlaceAsBuildingMapFootprintCount.g.cs | 2 +- .../GetMgPlaceAsBuildingMapFootprint_Get.g.cs | 2 +- .../GetMgPlaceAsBuildingMapFootprint_List.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsBuildingMapLevelCount.g.cs | 2 +- .../GetMgPlaceAsBuildingMapLevelFixtureCount.g.cs | 2 +- .../GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs | 2 +- .../GetMgPlaceAsBuildingMapLevelFixture_List.g.cs | 2 +- .../GetMgPlaceAsBuildingMapLevelSectionCount.g.cs | 2 +- .../GetMgPlaceAsBuildingMapLevelSection_Get.g.cs | 2 +- .../GetMgPlaceAsBuildingMapLevelSection_List.g.cs | 2 +- .../GetMgPlaceAsBuildingMapLevelUnitCount.g.cs | 2 +- .../GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs | 2 +- .../GetMgPlaceAsBuildingMapLevelUnit_List.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsBuilding_List.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsDeskCheckInCount.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk_Get.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk_List.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsFloorCheckInCount.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor_Get.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor_List.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsRoomCheckInCount.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsRoomListCheckInCount.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs | 2 +- .../GetMgPlaceAsRoomListRoomCheckInCount.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs | 2 +- .../GetMgPlaceAsRoomListRoomCheckIn_List.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCount.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs | 2 +- .../GetMgPlaceAsRoomListWorkspaceCheckInCount.g.cs | 2 +- .../GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs | 2 +- .../GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsRoomListWorkspaceCount.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsRoomList_List.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom_Get.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom_List.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsSectionCheckInCount.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsSection_Get.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsSection_List.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsWorkspaceCheckInCount.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgPlaceCheckInCount.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn_Get.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn_List.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgPlaceCount.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceCountAsBuilding.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgPlaceCountAsDesk.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgPlaceCountAsFloor.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgPlaceCountAsRoom.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceCountAsRoomList.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceCountAsSection.g.cs | 2 +- .../v1.0/Cmdlets/GetMgPlaceCountAsWorkspace.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgUserCalendarCount.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgUserCalendarEvent.g.cs | 2 +- .../v1.0/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs | 2 +- .../v1.0/Cmdlets/GetMgUserCalendarGroupCount.g.cs | 2 +- .../v1.0/Cmdlets/GetMgUserCalendarGroup_Get.g.cs | 2 +- .../v1.0/Cmdlets/GetMgUserCalendarGroup_List.g.cs | 2 +- .../Cmdlets/GetMgUserCalendarPermissionCount.g.cs | 2 +- .../Cmdlets/GetMgUserCalendarPermission_Get.g.cs | 2 +- .../Cmdlets/GetMgUserCalendarPermission_List.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgUserCalendarView.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgUserCalendar_Get.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgUserCalendar_List.g.cs | 2 +- .../v1.0/Cmdlets/GetMgUserDefaultCalendar.g.cs | 2 +- .../v1.0/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs | 2 +- .../v1.0/Cmdlets/GetMgUserEventAttachmentCount.g.cs | 2 +- .../v1.0/Cmdlets/GetMgUserEventAttachment_Get.g.cs | 2 +- .../v1.0/Cmdlets/GetMgUserEventAttachment_List.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgUserEventCalendar.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgUserEventCount.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgUserEventDelta.g.cs | 2 +- .../v1.0/Cmdlets/GetMgUserEventExtensionCount.g.cs | 2 +- .../v1.0/Cmdlets/GetMgUserEventExtension_Get.g.cs | 2 +- .../v1.0/Cmdlets/GetMgUserEventExtension_List.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgUserEventInstance.g.cs | 2 +- .../v1.0/Cmdlets/GetMgUserEventInstanceDelta.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgUserEvent_Get.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/GetMgUserEvent_List.g.cs | 2 +- .../v1.0/Cmdlets/InvokeMgAcceptGroupEvent.g.cs | 2 +- .../Cmdlets/InvokeMgAcceptGroupEventTentatively.g.cs | 2 +- .../v1.0/Cmdlets/InvokeMgAcceptUserEvent.g.cs | 2 +- .../Cmdlets/InvokeMgAcceptUserEventTentatively.g.cs | 2 +- ...endarUserCalendarAllowedCalendarSharingRoles.g.cs | 2 +- .../v1.0/Cmdlets/InvokeMgDeclineGroupEvent.g.cs | 2 +- .../v1.0/Cmdlets/InvokeMgDeclineUserEvent.g.cs | 2 +- .../v1.0/Cmdlets/InvokeMgDescendantPlace.g.cs | 2 +- .../Cmdlets/InvokeMgDismissGroupEventReminder.g.cs | 2 +- .../Cmdlets/InvokeMgDismissUserEventReminder.g.cs | 2 +- .../v1.0/Cmdlets/InvokeMgForwardGroupEvent.g.cs | 2 +- .../v1.0/Cmdlets/InvokeMgForwardUserEvent.g.cs | 2 +- .../Cmdlets/InvokeMgSnoozeGroupEventReminder.g.cs | 2 +- .../Cmdlets/InvokeMgSnoozeUserEventReminder.g.cs | 2 +- .../v1.0/Cmdlets/NewMgGroupCalendarEvent.g.cs | 2 +- .../v1.0/Cmdlets/NewMgGroupCalendarPermission.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/NewMgGroupEvent.g.cs | 2 +- .../v1.0/Cmdlets/NewMgGroupEventAttachment.g.cs | 2 +- .../NewMgGroupEventAttachmentUploadSession.g.cs | 2 +- .../v1.0/Cmdlets/NewMgGroupEventExtension.g.cs | 2 +- src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlace.g.cs | 2 +- .../v1.0/Cmdlets/NewMgPlaceAsBuildingCheckIn.g.cs | 2 +- .../Cmdlets/NewMgPlaceAsBuildingMapFootprint.g.cs | 2 +- .../v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevel.g.cs | 2 +- .../Cmdlets/NewMgPlaceAsBuildingMapLevelFixture.g.cs | 2 +- .../Cmdlets/NewMgPlaceAsBuildingMapLevelSection.g.cs | 2 +- .../Cmdlets/NewMgPlaceAsBuildingMapLevelUnit.g.cs | 2 +- .../v1.0/Cmdlets/NewMgPlaceAsDeskCheckIn.g.cs | 2 +- .../v1.0/Cmdlets/NewMgPlaceAsFloorCheckIn.g.cs | 2 +- .../v1.0/Cmdlets/NewMgPlaceAsRoomCheckIn.g.cs | 2 +- .../v1.0/Cmdlets/NewMgPlaceAsRoomListCheckIn.g.cs | 2 +- .../v1.0/Cmdlets/NewMgPlaceAsRoomListRoom.g.cs | 2 +- .../Cmdlets/NewMgPlaceAsRoomListRoomCheckIn.g.cs | 2 +- .../v1.0/Cmdlets/NewMgPlaceAsRoomListWorkspace.g.cs | 2 +- .../NewMgPlaceAsRoomListWorkspaceCheckIn.g.cs | 2 +- .../v1.0/Cmdlets/NewMgPlaceAsSectionCheckIn.g.cs | 2 +- .../v1.0/Cmdlets/NewMgPlaceAsWorkspaceCheckIn.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/NewMgPlaceCheckIn.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/NewMgUserCalendar.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/NewMgUserCalendarEvent.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/NewMgUserCalendarGroup.g.cs | 2 +- .../v1.0/Cmdlets/NewMgUserCalendarGroupCalendar.g.cs | 2 +- .../v1.0/Cmdlets/NewMgUserCalendarPermission.g.cs | 2 +- .../v1.0/Cmdlets/NewMgUserDefaultCalendarEvent.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/NewMgUserEvent.g.cs | 2 +- .../v1.0/Cmdlets/NewMgUserEventAttachment.g.cs | 2 +- .../NewMgUserEventAttachmentUploadSession.g.cs | 2 +- .../v1.0/Cmdlets/NewMgUserEventExtension.g.cs | 2 +- .../v1.0/Cmdlets/RemoveMgGroupCalendarEvent.g.cs | 2 +- .../v1.0/Cmdlets/RemoveMgGroupCalendarPermanent.g.cs | 2 +- .../Cmdlets/RemoveMgGroupCalendarPermission.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/RemoveMgGroupEvent.g.cs | 2 +- .../v1.0/Cmdlets/RemoveMgGroupEventAttachment.g.cs | 2 +- .../v1.0/Cmdlets/RemoveMgGroupEventExtension.g.cs | 2 +- .../v1.0/Cmdlets/RemoveMgGroupEventPermanent.g.cs | 2 +- src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlace.g.cs | 2 +- .../v1.0/Cmdlets/RemoveMgPlaceAsBuildingCheckIn.g.cs | 2 +- .../v1.0/Cmdlets/RemoveMgPlaceAsBuildingMap.g.cs | 2 +- .../Cmdlets/RemoveMgPlaceAsBuildingMapFootprint.g.cs | 2 +- .../Cmdlets/RemoveMgPlaceAsBuildingMapLevel.g.cs | 2 +- .../RemoveMgPlaceAsBuildingMapLevelFixture.g.cs | 2 +- .../RemoveMgPlaceAsBuildingMapLevelSection.g.cs | 2 +- .../Cmdlets/RemoveMgPlaceAsBuildingMapLevelUnit.g.cs | 2 +- .../v1.0/Cmdlets/RemoveMgPlaceAsDeskCheckIn.g.cs | 2 +- .../v1.0/Cmdlets/RemoveMgPlaceAsFloorCheckIn.g.cs | 2 +- .../v1.0/Cmdlets/RemoveMgPlaceAsRoomCheckIn.g.cs | 2 +- .../v1.0/Cmdlets/RemoveMgPlaceAsRoomListCheckIn.g.cs | 2 +- .../v1.0/Cmdlets/RemoveMgPlaceAsRoomListRoom.g.cs | 2 +- .../Cmdlets/RemoveMgPlaceAsRoomListRoomCheckIn.g.cs | 2 +- .../Cmdlets/RemoveMgPlaceAsRoomListWorkspace.g.cs | 2 +- .../RemoveMgPlaceAsRoomListWorkspaceCheckIn.g.cs | 2 +- .../v1.0/Cmdlets/RemoveMgPlaceAsSectionCheckIn.g.cs | 2 +- .../Cmdlets/RemoveMgPlaceAsWorkspaceCheckIn.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/RemoveMgPlaceCheckIn.g.cs | 2 +- .../v1.0/Cmdlets/RemoveMgUserCalendarGroup.g.cs | 2 +- .../v1.0/Cmdlets/RemoveMgUserCalendarPermanent.g.cs | 2 +- .../v1.0/Cmdlets/RemoveMgUserCalendarPermission.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/RemoveMgUserEvent.g.cs | 2 +- .../v1.0/Cmdlets/RemoveMgUserEventAttachment.g.cs | 2 +- .../v1.0/Cmdlets/RemoveMgUserEventExtension.g.cs | 2 +- .../v1.0/Cmdlets/RemoveMgUserEventPermanent.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/StopMgGroupEvent.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/StopMgUserEvent.g.cs | 2 +- .../v1.0/Cmdlets/UpdateMgGroupCalendarEvent.g.cs | 2 +- .../Cmdlets/UpdateMgGroupCalendarPermission.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/UpdateMgGroupEvent.g.cs | 2 +- .../v1.0/Cmdlets/UpdateMgGroupEventExtension.g.cs | 2 +- src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlace.g.cs | 2 +- .../v1.0/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs | 2 +- .../v1.0/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs | 2 +- .../Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs | 2 +- .../Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs | 2 +- .../UpdateMgPlaceAsBuildingMapLevelFixture.g.cs | 2 +- .../UpdateMgPlaceAsBuildingMapLevelSection.g.cs | 2 +- .../Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs | 2 +- .../v1.0/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs | 2 +- .../v1.0/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs | 2 +- .../v1.0/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs | 2 +- .../v1.0/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs | 2 +- .../v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs | 2 +- .../Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs | 2 +- .../Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs | 2 +- .../UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs | 2 +- .../v1.0/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs | 2 +- .../Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/UpdateMgPlaceCheckIn.g.cs | 2 +- .../v1.0/Cmdlets/UpdateMgUserCalendarGroup.g.cs | 2 +- .../v1.0/Cmdlets/UpdateMgUserCalendarPermission.g.cs | 2 +- .../wrapper/v1.0/Cmdlets/UpdateMgUserEvent.g.cs | 2 +- .../v1.0/Cmdlets/UpdateMgUserEventExtension.g.cs | 2 +- .../v1.0/Microsoft.Graph.Wrapper.Calendar.csproj | 12 +++++------- 234 files changed, 238 insertions(+), 240 deletions(-) diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendar.g.cs index 5aba11116c7..787bf5b0eca 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendar.g.cs @@ -34,7 +34,7 @@ public class GetMgGroupCalendarCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs index c51e144f725..dc748fb4f7d 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs @@ -48,7 +48,7 @@ public class GetMgGroupCalendarAllowedCalendarSharingRolesWithUserCommand : Grap protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); var pathParameters = new Dictionary 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 94e1cd63cc1..9ec2f5cfce7 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgGroupCalendarEvent_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; 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 950a55d22c6..6aa55ce5b10 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent_List.g.cs @@ -60,7 +60,7 @@ public class GetMgGroupCalendarEvent_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermissionCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermissionCount.g.cs index 541250ada98..e0bd911d78c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermissionCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermissionCount.g.cs @@ -32,7 +32,7 @@ public class GetMgGroupCalendarPermissionCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 534e6ef4a5e..4ae5eb36fae 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgGroupCalendarPermission_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission? result; 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 555dc10e481..7210e950476 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission_List.g.cs @@ -60,7 +60,7 @@ public class GetMgGroupCalendarPermission_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermissionCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarSchedule.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarSchedule.g.cs index 12146d6e467..51177358fd5 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarSchedule.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarSchedule.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(StartTime))) body.StartTime = StartTime; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetSchedulePostResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarView.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarView.g.cs index 803efaf0dea..0ea93f68045 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarView.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarView.g.cs @@ -60,7 +60,7 @@ public class GetMgGroupCalendarViewCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachmentCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachmentCount.g.cs index 0aa3810bfad..4b5fd283cde 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachmentCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachmentCount.g.cs @@ -34,7 +34,7 @@ public class GetMgGroupEventAttachmentCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 60b5d4c1788..764c2914d99 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment_Get.g.cs @@ -38,7 +38,7 @@ public class GetMgGroupEventAttachment_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment? result; 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 42c948c9ca8..a968e5f5379 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment_List.g.cs @@ -62,7 +62,7 @@ public class GetMgGroupEventAttachment_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventCalendar.g.cs index fd439bbef75..c109588a77e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventCalendar.g.cs @@ -36,7 +36,7 @@ public class GetMgGroupEventCalendarCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventCount.g.cs index 85a0badd66c..2ab75d6856f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventCount.g.cs @@ -32,7 +32,7 @@ public class GetMgGroupEventCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventDelta.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventDelta.g.cs index 331e381bff1..2cc50df9400 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventDelta.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventDelta.g.cs @@ -72,7 +72,7 @@ public class GetMgGroupEventDeltaCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // Cleared before the request so a failed or interrupted run cannot leave the previous diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtensionCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtensionCount.g.cs index f4ae3fd73c6..a864ffdcf86 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtensionCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtensionCount.g.cs @@ -34,7 +34,7 @@ public class GetMgGroupEventExtensionCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 1486b1dc391..4cbaaf84a82 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension_Get.g.cs @@ -38,7 +38,7 @@ public class GetMgGroupEventExtension_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; 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 f0c1a26337a..95f679e1a8e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension_List.g.cs @@ -62,7 +62,7 @@ public class GetMgGroupEventExtension_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.ExtensionCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstance.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstance.g.cs index dc11b2f1d75..cef0d34a482 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstance.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstance.g.cs @@ -62,7 +62,7 @@ public class GetMgGroupEventInstanceCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstanceDelta.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstanceDelta.g.cs index 4f70bc1220a..4c07e4c4408 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstanceDelta.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstanceDelta.g.cs @@ -74,7 +74,7 @@ public class GetMgGroupEventInstanceDeltaCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // Cleared before the request so a failed or interrupted run cannot leave the previous 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 16236f9380e..ad40a792fb4 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgGroupEvent_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; 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 f60f7c1c162..e938c6bf347 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent_List.g.cs @@ -60,7 +60,7 @@ public class GetMgGroupEvent_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckInCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckInCount.g.cs index 13345384970..8757d79741f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckInCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckInCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsBuildingCheckInCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 80318e0060f..b2b50acfa80 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsBuildingCheckIn_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; 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 2338a42333b..580e72930eb 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsBuildingCheckIn_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMap.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMap.g.cs index f0eb58353c9..66cc7e393ba 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMap.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMap.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsBuildingMapCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingMap? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprintCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprintCount.g.cs index 9d4e743a200..1f7199afc4d 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprintCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprintCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsBuildingMapFootprintCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 8fc7c0712d6..cea0e1507d3 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsBuildingMapFootprint_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap? result; 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 02675962dd8..442fd9a569c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsBuildingMapFootprint_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMapCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelCount.g.cs index f94f17199ea..1d98f311d36 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsBuildingMapLevelCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixtureCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixtureCount.g.cs index 3e1b673a25f..bf8a67e8fb0 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixtureCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixtureCount.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsBuildingMapLevelFixtureCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 d935b69ac09..49b799e8667 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs @@ -38,7 +38,7 @@ public class GetMgPlaceAsBuildingMapLevelFixture_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap? result; 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 791a8ab0a94..c56944af0bb 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_List.g.cs @@ -62,7 +62,7 @@ public class GetMgPlaceAsBuildingMapLevelFixture_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMapCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSectionCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSectionCount.g.cs index f30ed7b74ad..78b41b13838 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSectionCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSectionCount.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsBuildingMapLevelSectionCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 d1a1a84404c..fe188f51a6c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_Get.g.cs @@ -38,7 +38,7 @@ public class GetMgPlaceAsBuildingMapLevelSection_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap? result; 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 6b6fd5af092..9b2167f5fc2 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_List.g.cs @@ -62,7 +62,7 @@ public class GetMgPlaceAsBuildingMapLevelSection_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMapCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnitCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnitCount.g.cs index 3db492fd891..9c824258622 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnitCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnitCount.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsBuildingMapLevelUnitCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 f636f67d196..e2d4f4ea5fa 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs @@ -38,7 +38,7 @@ public class GetMgPlaceAsBuildingMapLevelUnit_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap? result; 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 1afa6f39414..2960f273d0f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_List.g.cs @@ -62,7 +62,7 @@ public class GetMgPlaceAsBuildingMapLevelUnit_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMapCollectionResponse? result; 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 37a7c18d8a4..7288a280a56 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsBuildingMapLevel_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap? result; 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 92a79071843..e641b2f8af0 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsBuildingMapLevel_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMapCollectionResponse? result; 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 14b5ddaa743..ab8bf633ed2 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsBuilding_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Building? result; 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 5ba23a2dcf5..969846d3b84 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding_List.g.cs @@ -59,7 +59,7 @@ public class GetMgPlaceAsBuilding_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckInCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckInCount.g.cs index cc195af070b..eea2de78e5b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckInCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckInCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsDeskCheckInCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 17a517a18b3..26a05717892 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsDeskCheckIn_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; 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 9f71609f781..d2d27d69d0b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsDeskCheckIn_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse? result; 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 48c9d29d65d..ef40a8e6845 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk_Get.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsDesk_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Desk? result; 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 96559480a43..2d6df8c0914 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk_List.g.cs @@ -59,7 +59,7 @@ public class GetMgPlaceAsDesk_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.DeskCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckInCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckInCount.g.cs index c36582f6865..d0d48723224 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckInCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckInCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsFloorCheckInCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 42ac2f6143b..0bde9be7b63 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsFloorCheckIn_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; 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 7aab502b9c3..d382b09995c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsFloorCheckIn_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse? result; 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 4b6054ca3b1..21e5d6b440f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor_Get.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsFloor_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Floor? result; 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 b2240265ac6..3da2fb497c3 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor_List.g.cs @@ -59,7 +59,7 @@ public class GetMgPlaceAsFloor_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.FloorCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckInCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckInCount.g.cs index 7338b797793..1ed02b04e96 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckInCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckInCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsRoomCheckInCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 c08921be70c..dca2c19b6b7 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsRoomCheckIn_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; 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 068f4ed872a..150cd6ddd55 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsRoomCheckIn_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckInCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckInCount.g.cs index 12c014f8e25..90b393d3241 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckInCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckInCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsRoomListCheckInCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 ce6a3b2c241..45c9ae291f7 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsRoomListCheckIn_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; 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 43be5f5cadd..7c1a95c2610 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsRoomListCheckIn_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckInCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckInCount.g.cs index 5818433b336..cf25d1755ef 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckInCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckInCount.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsRoomListRoomCheckInCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 d9b814ae39e..b00af43aca6 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs @@ -38,7 +38,7 @@ public class GetMgPlaceAsRoomListRoomCheckIn_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; 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 5e39cf1dcad..5da53d18121 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_List.g.cs @@ -62,7 +62,7 @@ public class GetMgPlaceAsRoomListRoomCheckIn_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCount.g.cs index 054edcfa41a..5937b98e602 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsRoomListRoomCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 b5c4a498e0f..d3edc7ed929 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsRoomListRoom_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Room? result; 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 3edb1d42df5..d4095cf96f6 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsRoomListRoom_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckInCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckInCount.g.cs index aac3775cb4f..025eab6dfeb 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckInCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckInCount.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsRoomListWorkspaceCheckInCountCommand : GraphClientCmdle protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 9d10f318513..eddca34eb95 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs @@ -38,7 +38,7 @@ public class GetMgPlaceAsRoomListWorkspaceCheckIn_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; 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 baaeea4c142..0458a477117 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs @@ -62,7 +62,7 @@ public class GetMgPlaceAsRoomListWorkspaceCheckIn_ListCommand : GraphClientCmdle protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCount.g.cs index e1ffdbd36d6..afd81d59261 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsRoomListWorkspaceCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 339cd505ac7..9797a2f118f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsRoomListWorkspace_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace? result; 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 3820de80715..d706273998b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsRoomListWorkspace_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.WorkspaceCollectionResponse? result; 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 31d78ccd284..d2de71324d5 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsRoomList_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomList? result; 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 f161e4f9f9a..f0be4e340c3 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList_List.g.cs @@ -59,7 +59,7 @@ public class GetMgPlaceAsRoomList_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomListCollectionResponse? result; 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 0c80c54b485..9218e60c071 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom_Get.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsRoom_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Room? result; 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 d63120b250e..2fef0bb18fb 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom_List.g.cs @@ -59,7 +59,7 @@ public class GetMgPlaceAsRoom_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckInCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckInCount.g.cs index dd70bcfc98a..33a89643e24 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckInCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckInCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsSectionCheckInCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 27c481b0325..caf0bb6d18e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsSectionCheckIn_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; 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 343a695c87e..bb46886d945 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsSectionCheckIn_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse? result; 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 47c1d587199..08cab298464 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection_Get.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsSection_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Section? result; 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 61ac3f3b976..8cb35be40b2 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection_List.g.cs @@ -59,7 +59,7 @@ public class GetMgPlaceAsSection_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckInCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckInCount.g.cs index 897dfabd3c6..ecd37267b2a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckInCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckInCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsWorkspaceCheckInCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 ce09c34858c..e51313f10d2 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsWorkspaceCheckIn_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; 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 2931d51f6da..4c43967f439 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsWorkspaceCheckIn_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse? result; 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 d5622782fa2..d542537dc38 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsWorkspace_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace? result; 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 10fd5adf781..a02c402e0fd 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs @@ -59,7 +59,7 @@ public class GetMgPlaceAsWorkspace_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.WorkspaceCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckInCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckInCount.g.cs index fc546681805..1377c05d300 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckInCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckInCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceCheckInCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 aae9acf16c7..928eb8322d0 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceCheckIn_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; 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 56c8a6a20c8..ff664ad3491 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceCheckIn_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCount.g.cs index 5c9aff063ae..a7a9dbd693a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCount.g.cs @@ -31,7 +31,7 @@ public class GetMgPlaceCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsBuilding.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsBuilding.g.cs index aa900e54b5c..43ac6a2ceec 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsBuilding.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsBuilding.g.cs @@ -31,7 +31,7 @@ public class GetMgPlaceCountAsBuildingCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsDesk.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsDesk.g.cs index ee49c494665..d85bbdb8e06 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsDesk.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsDesk.g.cs @@ -31,7 +31,7 @@ public class GetMgPlaceCountAsDeskCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsFloor.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsFloor.g.cs index f922922abde..eeae18b2aeb 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsFloor.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsFloor.g.cs @@ -31,7 +31,7 @@ public class GetMgPlaceCountAsFloorCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsRoom.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsRoom.g.cs index ff09723dc9e..e9bf108399a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsRoom.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsRoom.g.cs @@ -31,7 +31,7 @@ public class GetMgPlaceCountAsRoomCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsRoomList.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsRoomList.g.cs index cfedf7ba6c4..076fe106079 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsRoomList.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsRoomList.g.cs @@ -31,7 +31,7 @@ public class GetMgPlaceCountAsRoomListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsSection.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsSection.g.cs index 5dbafcd1baf..53fbde82ef8 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsSection.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsSection.g.cs @@ -31,7 +31,7 @@ public class GetMgPlaceCountAsSectionCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsWorkspace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsWorkspace.g.cs index f2886cff66a..1e38f65515b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsWorkspace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCountAsWorkspace.g.cs @@ -31,7 +31,7 @@ public class GetMgPlaceCountAsWorkspaceCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarCount.g.cs index 4c28b5dca16..e95ba769938 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarCount.g.cs @@ -32,7 +32,7 @@ public class GetMgUserCalendarCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarEvent.g.cs index 2e1a92edbe8..ba76fa26c9c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarEvent.g.cs @@ -62,7 +62,7 @@ public class GetMgUserCalendarEventCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs index ff3d3865aa3..36f279e91a4 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs @@ -62,7 +62,7 @@ public class GetMgUserCalendarGroupCalendarCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCount.g.cs index c02aca2cda6..ab42ca76c61 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCount.g.cs @@ -32,7 +32,7 @@ public class GetMgUserCalendarGroupCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 1759945a395..feaed31fa3f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgUserCalendarGroup_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup? result; 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 aeff8b33a50..0bd9d8705f5 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup_List.g.cs @@ -60,7 +60,7 @@ public class GetMgUserCalendarGroup_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroupCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermissionCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermissionCount.g.cs index 202aa14272d..6acddb6104f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermissionCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermissionCount.g.cs @@ -32,7 +32,7 @@ public class GetMgUserCalendarPermissionCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 5dee1a8e417..525bec4a75c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgUserCalendarPermission_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission? result; 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 7bc00d7b93a..0de5842fc7e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission_List.g.cs @@ -60,7 +60,7 @@ public class GetMgUserCalendarPermission_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermissionCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarView.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarView.g.cs index 451e7ccf7d8..c0086c30b2e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarView.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarView.g.cs @@ -60,7 +60,7 @@ public class GetMgUserCalendarViewCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse? result; 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 ee5be114a47..facb2f82baa 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgUserCalendar_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar? result; 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 f11f64618fd..0cc757eb154 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar_List.g.cs @@ -60,7 +60,7 @@ public class GetMgUserCalendar_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendar.g.cs index 475d3c7fd2a..0f57509b031 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendar.g.cs @@ -34,7 +34,7 @@ public class GetMgUserDefaultCalendarCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs index 10dbd44ab72..b4fd5c74f58 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs @@ -60,7 +60,7 @@ public class GetMgUserDefaultCalendarEventCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachmentCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachmentCount.g.cs index 1468bc09845..75c8d6538d1 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachmentCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachmentCount.g.cs @@ -34,7 +34,7 @@ public class GetMgUserEventAttachmentCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 58aafb4bf8d..bbaab793f72 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment_Get.g.cs @@ -38,7 +38,7 @@ public class GetMgUserEventAttachment_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment? result; 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 2e09a8ee09e..fb5cde420c4 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment_List.g.cs @@ -62,7 +62,7 @@ public class GetMgUserEventAttachment_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventCalendar.g.cs index f73dac92119..6b000617d4a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventCalendar.g.cs @@ -36,7 +36,7 @@ public class GetMgUserEventCalendarCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventCount.g.cs index 1274bc78915..c49c3c13e06 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventCount.g.cs @@ -32,7 +32,7 @@ public class GetMgUserEventCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventDelta.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventDelta.g.cs index 9d0c0040f9f..52b09868c44 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventDelta.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventDelta.g.cs @@ -72,7 +72,7 @@ public class GetMgUserEventDeltaCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // Cleared before the request so a failed or interrupted run cannot leave the previous diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtensionCount.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtensionCount.g.cs index 7afbe906cb6..3b37d7c3fd4 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtensionCount.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtensionCount.g.cs @@ -34,7 +34,7 @@ public class GetMgUserEventExtensionCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); int? result; 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 fba66a25ecd..13f8b027c7f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension_Get.g.cs @@ -38,7 +38,7 @@ public class GetMgUserEventExtension_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; 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 1c94212e25c..b82cbe88629 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension_List.g.cs @@ -62,7 +62,7 @@ public class GetMgUserEventExtension_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.ExtensionCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstance.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstance.g.cs index ec8618ce44b..c1270c098bd 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstance.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstance.g.cs @@ -62,7 +62,7 @@ public class GetMgUserEventInstanceCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstanceDelta.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstanceDelta.g.cs index c450c4f6fa8..6b93883d915 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstanceDelta.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstanceDelta.g.cs @@ -74,7 +74,7 @@ public class GetMgUserEventInstanceDeltaCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // Cleared before the request so a failed or interrupted run cannot leave the previous 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 6bce61c8de4..d9048f7d335 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgUserEvent_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; 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 82468a1f7e6..1045904fe25 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent_List.g.cs @@ -60,7 +60,7 @@ public class GetMgUserEvent_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptGroupEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptGroupEvent.g.cs index 840b8ef43c7..1ecc0cc55cd 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptGroupEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptGroupEvent.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(Comment))) body.Comment = Comment; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptGroupEventTentatively.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptGroupEventTentatively.g.cs index e718ba54318..60c9645fe69 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptGroupEventTentatively.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptGroupEventTentatively.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ProposedNewTime))) body.ProposedNewTime = ProposedNewTime; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptUserEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptUserEvent.g.cs index e7eaa43ca88..23099b4d343 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptUserEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptUserEvent.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(Comment))) body.Comment = Comment; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptUserEventTentatively.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptUserEventTentatively.g.cs index 362d27769bb..45ae2ba69f6 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptUserEventTentatively.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgAcceptUserEventTentatively.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ProposedNewTime))) body.ProposedNewTime = ProposedNewTime; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgCalendarUserCalendarAllowedCalendarSharingRoles.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgCalendarUserCalendarAllowedCalendarSharingRoles.g.cs index e5bb5dacea9..d90f0ef56e2 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgCalendarUserCalendarAllowedCalendarSharingRoles.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgCalendarUserCalendarAllowedCalendarSharingRoles.g.cs @@ -48,7 +48,7 @@ public class InvokeMgCalendarUserCalendarAllowedCalendarSharingRolesCommand : Gr protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); var pathParameters = new Dictionary diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDeclineGroupEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDeclineGroupEvent.g.cs index c8641c63406..ec696bac321 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDeclineGroupEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDeclineGroupEvent.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ProposedNewTime))) body.ProposedNewTime = ProposedNewTime; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDeclineUserEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDeclineUserEvent.g.cs index 5814b94d638..4afa0e2a199 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDeclineUserEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDeclineUserEvent.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ProposedNewTime))) body.ProposedNewTime = ProposedNewTime; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDescendantPlace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDescendantPlace.g.cs index 92d05f0c492..9a1c33a64cb 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDescendantPlace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDescendantPlace.g.cs @@ -57,7 +57,7 @@ public class InvokeMgDescendantPlaceCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDismissGroupEventReminder.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDismissGroupEventReminder.g.cs index b4a87037f67..acf8baeb396 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDismissGroupEventReminder.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDismissGroupEventReminder.g.cs @@ -37,7 +37,7 @@ protected override void ProcessRecord() return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDismissUserEventReminder.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDismissUserEventReminder.g.cs index cc3d004bfb5..3b637355440 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDismissUserEventReminder.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgDismissUserEventReminder.g.cs @@ -37,7 +37,7 @@ protected override void ProcessRecord() return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupEvent.g.cs index ed711ba9d1f..abeb821d226 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgForwardGroupEvent.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ToRecipients))) body.ToRecipients = ToRecipients!.ToList(); - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgForwardUserEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgForwardUserEvent.g.cs index 96d80e01937..cf4bd70e8c0 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgForwardUserEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgForwardUserEvent.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ToRecipients))) body.ToRecipients = ToRecipients!.ToList(); - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgSnoozeGroupEventReminder.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgSnoozeGroupEventReminder.g.cs index 1f11803b3df..1446bb3d8fe 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgSnoozeGroupEventReminder.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgSnoozeGroupEventReminder.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(NewReminderTime))) body.NewReminderTime = NewReminderTime; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgSnoozeUserEventReminder.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgSnoozeUserEventReminder.g.cs index 0d0dad7a5e6..f1db3311488 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgSnoozeUserEventReminder.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/InvokeMgSnoozeUserEventReminder.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(NewReminderTime))) body.NewReminderTime = NewReminderTime; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupCalendarEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupCalendarEvent.g.cs index bfac52391ae..ce8ad34ad6f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupCalendarEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupCalendarEvent.g.cs @@ -279,7 +279,7 @@ protected override void ProcessRecord() body.Type = Type; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupCalendarPermission.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupCalendarPermission.g.cs index 4a3037b828d..1fc1b8b7317 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupCalendarPermission.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupCalendarPermission.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() body.Role = Role; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEvent.g.cs index 4c0e4d6a7eb..7a9cfb5f3d2 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEvent.g.cs @@ -279,7 +279,7 @@ protected override void ProcessRecord() body.Type = Type; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventAttachment.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventAttachment.g.cs index 176db279d46..a71e6e58b81 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventAttachment.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventAttachment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventAttachmentUploadSession.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventAttachmentUploadSession.g.cs index 198dad4e297..b87445f3d38 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventAttachmentUploadSession.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventAttachmentUploadSession.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(AttachmentItem))) body.AttachmentItem = AttachmentItem; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.UploadSession? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventExtension.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventExtension.g.cs index 87c76b54a7f..852b3268b7e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventExtension.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgGroupEventExtension.g.cs @@ -39,7 +39,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlace.g.cs index 2d90c11a262..78288775411 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlace.g.cs @@ -86,7 +86,7 @@ protected override void ProcessRecord() body.GeoCoordinates = GeoCoordinates; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Place? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingCheckIn.g.cs index f7794c4d341..2eca641eb5c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingCheckIn.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapFootprint.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapFootprint.g.cs index 53274d42ce9..0da9d8477a0 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapFootprint.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapFootprint.g.cs @@ -41,7 +41,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevel.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevel.g.cs index a3b39cf43d4..7f623885727 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevel.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevel.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelFixture.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelFixture.g.cs index 969f04dc598..6de476dcc05 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelFixture.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelFixture.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelSection.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelSection.g.cs index 9ceffd11462..37f22834060 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelSection.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelSection.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelUnit.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelUnit.g.cs index 8a9b652d364..f49cf9179f8 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelUnit.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsBuildingMapLevelUnit.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsDeskCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsDeskCheckIn.g.cs index 49ee8a3e35f..6f699149d4a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsDeskCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsDeskCheckIn.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsFloorCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsFloorCheckIn.g.cs index 0bc4bb67049..198162cbfe6 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsFloorCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsFloorCheckIn.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomCheckIn.g.cs index 29979b916ef..cc15bec5035 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomCheckIn.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListCheckIn.g.cs index edd77e53719..f8f292b7270 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListCheckIn.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListRoom.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListRoom.g.cs index fdd14bab819..8344c954a9a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListRoom.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListRoom.g.cs @@ -153,7 +153,7 @@ protected override void ProcessRecord() body.TeamsEnabledState = TeamsEnabledState; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Room? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListRoomCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListRoomCheckIn.g.cs index f5d01c6236e..42241f5c4c0 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListRoomCheckIn.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListWorkspace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListWorkspace.g.cs index a2c707f5f5e..98bdd6c0839 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListWorkspace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListWorkspace.g.cs @@ -117,7 +117,7 @@ protected override void ProcessRecord() body.Mode = Mode; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListWorkspaceCheckIn.g.cs index e87e3791337..0fc8644b2b2 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsRoomListWorkspaceCheckIn.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsSectionCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsSectionCheckIn.g.cs index df40f4428a1..825a8efbc72 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsSectionCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsSectionCheckIn.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsWorkspaceCheckIn.g.cs index 761ea75b9d7..8b77f1797a0 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceAsWorkspaceCheckIn.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceCheckIn.g.cs index 9a31e2619cb..d396d0f5462 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgPlaceCheckIn.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendar.g.cs index 45d98f6614e..19426a68419 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendar.g.cs @@ -111,7 +111,7 @@ protected override void ProcessRecord() body.Owner = Owner; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarEvent.g.cs index 1bad6419fcb..a59e200366f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarEvent.g.cs @@ -281,7 +281,7 @@ protected override void ProcessRecord() body.Type = Type; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarGroup.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarGroup.g.cs index 3852ab39d46..2365b272dfb 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarGroup.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarGroupCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarGroupCalendar.g.cs index 5c7d52ec53d..81a10ece44b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarGroupCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarGroupCalendar.g.cs @@ -113,7 +113,7 @@ protected override void ProcessRecord() body.Owner = Owner; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarPermission.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarPermission.g.cs index 3121c516ae7..ea07b72b5e5 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarPermission.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserCalendarPermission.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() body.Role = Role; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserDefaultCalendarEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserDefaultCalendarEvent.g.cs index 58421ce8b17..6a5f9aa2056 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserDefaultCalendarEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserDefaultCalendarEvent.g.cs @@ -279,7 +279,7 @@ protected override void ProcessRecord() body.Type = Type; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEvent.g.cs index 0b8c77f6ef6..a2a045174a4 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEvent.g.cs @@ -279,7 +279,7 @@ protected override void ProcessRecord() body.Type = Type; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventAttachment.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventAttachment.g.cs index 4434c19f248..0cfc4046734 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventAttachment.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventAttachment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventAttachmentUploadSession.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventAttachmentUploadSession.g.cs index ea1be6d4206..a2c4766adae 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventAttachmentUploadSession.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventAttachmentUploadSession.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(AttachmentItem))) body.AttachmentItem = AttachmentItem; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.UploadSession? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventExtension.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventExtension.g.cs index a29a2b3cac8..21ae8d73e9c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventExtension.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/NewMgUserEventExtension.g.cs @@ -39,7 +39,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarEvent.g.cs index ca15145135c..26d8a4014da 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarEvent.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(EventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarPermanent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarPermanent.g.cs index 7d95c18b31d..80bf98abfbc 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarPermanent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarPermanent.g.cs @@ -35,7 +35,7 @@ protected override void ProcessRecord() return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarPermission.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarPermission.g.cs index ed2f9774480..cde1d58accc 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarPermission.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupCalendarPermission.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CalendarPermissionId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEvent.g.cs index 45b5c6a7373..7eb7d6269c9 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEvent.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(EventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventAttachment.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventAttachment.g.cs index a83b9ae5fef..f1031c1245b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventAttachment.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventAttachment.g.cs @@ -34,7 +34,7 @@ protected override void ProcessRecord() if (!ShouldProcess(AttachmentId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventExtension.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventExtension.g.cs index a8b772c7d8a..f81baef2984 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventExtension.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventExtension.g.cs @@ -34,7 +34,7 @@ protected override void ProcessRecord() if (!ShouldProcess(ExtensionId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventPermanent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventPermanent.g.cs index b328b50b41e..e02d37e9876 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventPermanent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgGroupEventPermanent.g.cs @@ -37,7 +37,7 @@ protected override void ProcessRecord() return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlace.g.cs index 5620c6e8302..6974a0ea19f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlace.g.cs @@ -30,7 +30,7 @@ protected override void ProcessRecord() if (!ShouldProcess(PlaceId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingCheckIn.g.cs index 82ecc79b37c..f299e6c5ed3 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingCheckIn.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CheckInClaimCalendarEventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMap.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMap.g.cs index 85fc2be9c98..5f01d9f4a7c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMap.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMap.g.cs @@ -30,7 +30,7 @@ protected override void ProcessRecord() if (!ShouldProcess(PlaceId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapFootprint.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapFootprint.g.cs index 0b548a14282..50233ced57f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapFootprint.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapFootprint.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(FootprintMapId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevel.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevel.g.cs index 306fbe19859..284d1e7124f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevel.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevel.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(LevelMapId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelFixture.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelFixture.g.cs index e447726cb2a..e6fe1e5b117 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelFixture.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelFixture.g.cs @@ -34,7 +34,7 @@ protected override void ProcessRecord() if (!ShouldProcess(FixtureMapId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelSection.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelSection.g.cs index a7a3f8d7497..ae44d17a9c6 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelSection.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelSection.g.cs @@ -34,7 +34,7 @@ protected override void ProcessRecord() if (!ShouldProcess(SectionMapId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelUnit.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelUnit.g.cs index bde8a2158dd..0cfb0ad38a2 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelUnit.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsBuildingMapLevelUnit.g.cs @@ -34,7 +34,7 @@ protected override void ProcessRecord() if (!ShouldProcess(UnitMapId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsDeskCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsDeskCheckIn.g.cs index 524921eb43a..678716e8123 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsDeskCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsDeskCheckIn.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CheckInClaimCalendarEventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsFloorCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsFloorCheckIn.g.cs index 50a2f2f4f95..aafa95847cf 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsFloorCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsFloorCheckIn.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CheckInClaimCalendarEventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomCheckIn.g.cs index d4b534e4809..42a21c49955 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomCheckIn.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CheckInClaimCalendarEventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListCheckIn.g.cs index 312597a9010..54d907ee68b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListCheckIn.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CheckInClaimCalendarEventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListRoom.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListRoom.g.cs index e98b844812a..40ccc3bfa4b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListRoom.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListRoom.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(RoomId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListRoomCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListRoomCheckIn.g.cs index cb76fed0a9a..1dd718b6de1 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListRoomCheckIn.g.cs @@ -34,7 +34,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CheckInClaimCalendarEventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListWorkspace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListWorkspace.g.cs index 8b8eebc9513..2c26439e60d 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListWorkspace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListWorkspace.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(WorkspaceId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListWorkspaceCheckIn.g.cs index b8c617cdcfa..c00b478c018 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsRoomListWorkspaceCheckIn.g.cs @@ -34,7 +34,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CheckInClaimCalendarEventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsSectionCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsSectionCheckIn.g.cs index 9923b69cbcb..868dbac5f6b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsSectionCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsSectionCheckIn.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CheckInClaimCalendarEventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsWorkspaceCheckIn.g.cs index 8cabdb12c3b..6ba211f43cc 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceAsWorkspaceCheckIn.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CheckInClaimCalendarEventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceCheckIn.g.cs index 049b4b8f8e5..1826bb7e19f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgPlaceCheckIn.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CheckInClaimCalendarEventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarGroup.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarGroup.g.cs index 70cbbcf59a8..d02fabe16ee 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarGroup.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarGroup.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CalendarGroupId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarPermanent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarPermanent.g.cs index 129506e1357..f3b11691c2e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarPermanent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarPermanent.g.cs @@ -35,7 +35,7 @@ protected override void ProcessRecord() return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarPermission.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarPermission.g.cs index ac41a11617c..af2059859bf 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarPermission.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserCalendarPermission.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CalendarPermissionId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEvent.g.cs index 28d0c079c95..a608abbc827 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEvent.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(EventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventAttachment.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventAttachment.g.cs index 560c2d03cd7..fb065de04c0 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventAttachment.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventAttachment.g.cs @@ -34,7 +34,7 @@ protected override void ProcessRecord() if (!ShouldProcess(AttachmentId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventExtension.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventExtension.g.cs index 7f00d0b791f..4fc0f8cba08 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventExtension.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventExtension.g.cs @@ -34,7 +34,7 @@ protected override void ProcessRecord() if (!ShouldProcess(ExtensionId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventPermanent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventPermanent.g.cs index 963dee2d8bd..cca30e284aa 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventPermanent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/RemoveMgUserEventPermanent.g.cs @@ -37,7 +37,7 @@ protected override void ProcessRecord() return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/StopMgGroupEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/StopMgGroupEvent.g.cs index b8f18a621a8..fe2ba7cfb06 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/StopMgGroupEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/StopMgGroupEvent.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(Comment))) body.Comment = Comment; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/StopMgUserEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/StopMgUserEvent.g.cs index f58e70ac496..b8f7a347c57 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/StopMgUserEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/StopMgUserEvent.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(Comment))) body.Comment = Comment; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarEvent.g.cs index cebae3fc842..21b246163fc 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarEvent.g.cs @@ -281,7 +281,7 @@ protected override void ProcessRecord() body.Type = Type; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarPermission.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarPermission.g.cs index 3ad73837a98..fbc1690cbcb 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarPermission.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarPermission.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() body.Role = Role; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEvent.g.cs index b22ebb1916e..146d8eb70e4 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEvent.g.cs @@ -281,7 +281,7 @@ protected override void ProcessRecord() body.Type = Type; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEventExtension.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEventExtension.g.cs index 635032eae3b..02b6cb9644d 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEventExtension.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEventExtension.g.cs @@ -41,7 +41,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlace.g.cs index 9e3ff00f10c..dd308325441 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlace.g.cs @@ -87,7 +87,7 @@ protected override void ProcessRecord() body.GeoCoordinates = GeoCoordinates; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Place? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs index 822ffef7b0b..0a7c724b6df 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs index 5d9c4949a9c..5f65318fc75 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingMap? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs index 6261e0b9f8c..5874675df74 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs index 5165cd20555..a3e35729d89 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs index 89ce63957f6..75783ee9bac 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs index fddfe786554..376abf7b326 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs index 6f9c43ea217..31f6421cfee 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs index df1c6ce8f48..5efaa4addce 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs index 4f23c635b5a..b367d1240f5 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs index c894a66dcb8..dff0e4a4fb5 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs index de1cce28833..2b8ee697553 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs index edada1fdcfb..d4fb4a819a6 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs @@ -155,7 +155,7 @@ protected override void ProcessRecord() body.TeamsEnabledState = TeamsEnabledState; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Room? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs index 58458d00063..7a973b306eb 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs index 22d05bc8def..0eae159bc67 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs @@ -119,7 +119,7 @@ protected override void ProcessRecord() body.Mode = Mode; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs index f54f700fe41..02761ab39b9 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs index 2b73a47de80..a23194ce511 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs index d2a21e087ef..0ce3c59202a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceCheckIn.g.cs index ced8509caa9..0d7478c3b3a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceCheckIn.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarGroup.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarGroup.g.cs index 95ee561f37a..f6e385709d8 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarGroup.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarGroup.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarPermission.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarPermission.g.cs index 5c3e9567306..c73b96e0148 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarPermission.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarPermission.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() body.Role = Role; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEvent.g.cs index d96952670c4..7e771884c0a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEvent.g.cs @@ -281,7 +281,7 @@ protected override void ProcessRecord() body.Type = Type; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEventExtension.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEventExtension.g.cs index a9d3e700ef4..15d00c4ad7f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEventExtension.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEventExtension.g.cs @@ -41,7 +41,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("v1.0"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; diff --git a/src/Calendar/wrapper/v1.0/Microsoft.Graph.Wrapper.Calendar.csproj b/src/Calendar/wrapper/v1.0/Microsoft.Graph.Wrapper.Calendar.csproj index 3bd88b28b46..b5b22fcd0ba 100644 --- a/src/Calendar/wrapper/v1.0/Microsoft.Graph.Wrapper.Calendar.csproj +++ b/src/Calendar/wrapper/v1.0/Microsoft.Graph.Wrapper.Calendar.csproj @@ -48,18 +48,16 @@ - + Removal is by package identity, not filename. --> + Condition="'%(ReferenceCopyLocalPaths.NuGetPackageId)' != ''" /> From 8f2c3d3b235352dbde930df086dba313c80b5afb Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Mon, 2 Nov 2026 16:52:35 -0800 Subject: [PATCH 18/24] Regenerate Calendar beta for adapted Authentication and explicit service root Run the actual queued full Kiota 1.36.1 and wrapper Release pipeline on normally merged 844672d7 with adapted packaged Authentication 2.41.2 and model parallelism 1. Status OK/exit 0 in 29.7 seconds; fresh manifest imports 312 commands and compiled routes. Preserve all 137 original source-selected suppressions and exact renamed/neighbor routes. Regenerate beta cmdlets with GetRequestAdapter("beta") and normal project dependency pruning; manifests require Authentication 2.41.2 with no dependency preloads and bins/packages contain only three owned DLLs. Client and lock regenerate unchanged. Actual real authenticated global/USGov requests assert /beta roots despite factory /v1.0 BaseAddress. Typed mutation, safety and load-context gates pass; the bound generic header refetch failure remains explicitly recorded for unmerged PR 3886, not fixed by an overlay. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../wrapper/beta/Cmdlets/GetMgGroupCalendar.g.cs | 2 +- ...pCalendarAllowedCalendarSharingRolesWithUser.g.cs | 2 +- .../beta/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs | 2 +- .../beta/Cmdlets/GetMgGroupCalendarEvent_List.g.cs | 2 +- .../Cmdlets/GetMgGroupCalendarPermissionCount.g.cs | 2 +- .../Cmdlets/GetMgGroupCalendarPermission_Get.g.cs | 2 +- .../Cmdlets/GetMgGroupCalendarPermission_List.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgGroupCalendarView.g.cs | 2 +- .../beta/Cmdlets/GetMgGroupEventAttachmentCount.g.cs | 2 +- .../beta/Cmdlets/GetMgGroupEventAttachment_Get.g.cs | 2 +- .../beta/Cmdlets/GetMgGroupEventAttachment_List.g.cs | 2 +- .../beta/Cmdlets/GetMgGroupEventCalendar.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgGroupEventCount.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgGroupEventDelta.g.cs | 2 +- .../beta/Cmdlets/GetMgGroupEventExtensionCount.g.cs | 2 +- .../beta/Cmdlets/GetMgGroupEventExtension_Get.g.cs | 2 +- .../beta/Cmdlets/GetMgGroupEventExtension_List.g.cs | 2 +- .../beta/Cmdlets/GetMgGroupEventInstance.g.cs | 2 +- .../beta/Cmdlets/GetMgGroupEventInstanceDelta.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgGroupEvent_Get.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgGroupEvent_List.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsBuildingCheckInCount.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsBuildingChildCount.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsBuildingChild_Get.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsBuildingChild_List.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsBuildingMap.g.cs | 2 +- .../GetMgPlaceAsBuildingMapFootprintCount.g.cs | 2 +- .../GetMgPlaceAsBuildingMapFootprint_Get.g.cs | 2 +- .../GetMgPlaceAsBuildingMapFootprint_List.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsBuildingMapLevelCount.g.cs | 2 +- .../GetMgPlaceAsBuildingMapLevelFixtureCount.g.cs | 2 +- .../GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs | 2 +- .../GetMgPlaceAsBuildingMapLevelFixture_List.g.cs | 2 +- .../GetMgPlaceAsBuildingMapLevelSectionCount.g.cs | 2 +- .../GetMgPlaceAsBuildingMapLevelSection_Get.g.cs | 2 +- .../GetMgPlaceAsBuildingMapLevelSection_List.g.cs | 2 +- .../GetMgPlaceAsBuildingMapLevelUnitCount.g.cs | 2 +- .../GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs | 2 +- .../GetMgPlaceAsBuildingMapLevelUnit_List.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsBuilding_List.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsDeskCheckInCount.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsDeskChildCount.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsDeskChild_Get.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsDeskChild_List.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgPlaceAsDesk_Get.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgPlaceAsDesk_List.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsFloorCheckInCount.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsFloorChildCount.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsFloorChild_Get.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsFloorChild_List.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgPlaceAsFloor_Get.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgPlaceAsFloor_List.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsRoomCheckInCount.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsRoomChildCount.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsRoomChild_Get.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsRoomChild_List.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsRoomListCheckInCount.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsRoomListChildCount.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsRoomListChild_Get.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsRoomListChild_List.g.cs | 2 +- .../GetMgPlaceAsRoomListRoomCheckInCount.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs | 2 +- .../GetMgPlaceAsRoomListRoomCheckIn_List.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsRoomListRoomChildCount.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsRoomListRoomChild_Get.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsRoomListRoomChild_List.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsRoomListRoomCount.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs | 2 +- .../GetMgPlaceAsRoomListWorkspaceCheckInCount.g.cs | 2 +- .../GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs | 2 +- .../GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs | 2 +- .../GetMgPlaceAsRoomListWorkspaceChildCount.g.cs | 2 +- .../GetMgPlaceAsRoomListWorkspaceChild_Get.g.cs | 2 +- .../GetMgPlaceAsRoomListWorkspaceChild_List.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsRoomListWorkspaceCount.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsRoomList_List.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgPlaceAsRoom_Get.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgPlaceAsRoom_List.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsSectionCheckInCount.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsSectionChildCount.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsSectionChild_Get.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsSectionChild_List.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsSection_Get.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsSection_List.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsWorkspaceCheckInCount.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsWorkspaceChildCount.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsWorkspaceChild_Get.g.cs | 2 +- .../Cmdlets/GetMgPlaceAsWorkspaceChild_List.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgPlaceCheckInCount.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgPlaceCheckIn_Get.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgPlaceCheckIn_List.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgPlaceChildCount.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgPlaceChild_Get.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgPlaceChild_List.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgPlaceCount.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceCountAsBuilding.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgPlaceCountAsDesk.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgPlaceCountAsFloor.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgPlaceCountAsRoom.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceCountAsRoomList.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceCountAsSection.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceCountAsWorkspace.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgPlaceDescendants.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceGetOperationWithId.g.cs | 2 +- .../beta/Cmdlets/GetMgPlaceListOperations.g.cs | 2 +- ...rCalendarAllowedCalendarSharingRolesWithUser.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgUserCalendarCount.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgUserCalendarDelta.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgUserCalendarEvent.g.cs | 2 +- .../beta/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs | 2 +- .../beta/Cmdlets/GetMgUserCalendarGroupCount.g.cs | 2 +- .../beta/Cmdlets/GetMgUserCalendarGroup_Get.g.cs | 2 +- .../beta/Cmdlets/GetMgUserCalendarGroup_List.g.cs | 2 +- .../Cmdlets/GetMgUserCalendarPermissionCount.g.cs | 2 +- .../Cmdlets/GetMgUserCalendarPermission_Get.g.cs | 2 +- .../Cmdlets/GetMgUserCalendarPermission_List.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgUserCalendarView.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgUserCalendar_Get.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgUserCalendar_List.g.cs | 2 +- .../beta/Cmdlets/GetMgUserDefaultCalendar.g.cs | 2 +- .../beta/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs | 2 +- .../beta/Cmdlets/GetMgUserEventAttachmentCount.g.cs | 2 +- .../beta/Cmdlets/GetMgUserEventAttachment_Get.g.cs | 2 +- .../beta/Cmdlets/GetMgUserEventAttachment_List.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgUserEventCalendar.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgUserEventCount.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgUserEventDelta.g.cs | 2 +- .../beta/Cmdlets/GetMgUserEventExtensionCount.g.cs | 2 +- .../beta/Cmdlets/GetMgUserEventExtension_Get.g.cs | 2 +- .../beta/Cmdlets/GetMgUserEventExtension_List.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgUserEventInstance.g.cs | 2 +- .../beta/Cmdlets/GetMgUserEventInstanceDelta.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgUserEvent_Get.g.cs | 2 +- .../wrapper/beta/Cmdlets/GetMgUserEvent_List.g.cs | 2 +- ...endarUserCalendarAllowedCalendarSharingRoles.g.cs | 2 +- .../Cmdlets/InvokeMgGroupCalendarGetSchedule.g.cs | 2 +- .../InvokeMgGroupCalendarPermanentDelete.g.cs | 2 +- .../beta/Cmdlets/InvokeMgGroupEventAccept.g.cs | 2 +- ...okeMgGroupEventAttachmentCreateUploadSession.g.cs | 2 +- .../beta/Cmdlets/InvokeMgGroupEventCancel.g.cs | 2 +- .../beta/Cmdlets/InvokeMgGroupEventDecline.g.cs | 2 +- .../Cmdlets/InvokeMgGroupEventDismissReminder.g.cs | 2 +- .../beta/Cmdlets/InvokeMgGroupEventForward.g.cs | 2 +- .../Cmdlets/InvokeMgGroupEventPermanentDelete.g.cs | 2 +- .../Cmdlets/InvokeMgGroupEventSnoozeReminder.g.cs | 2 +- .../Cmdlets/InvokeMgGroupEventTentativelyAccept.g.cs | 2 +- .../Cmdlets/InvokeMgUserCalendarPermanentDelete.g.cs | 2 +- .../beta/Cmdlets/InvokeMgUserEventAccept.g.cs | 2 +- ...vokeMgUserEventAttachmentCreateUploadSession.g.cs | 2 +- .../beta/Cmdlets/InvokeMgUserEventCancel.g.cs | 2 +- .../beta/Cmdlets/InvokeMgUserEventDecline.g.cs | 2 +- .../Cmdlets/InvokeMgUserEventDismissReminder.g.cs | 2 +- .../beta/Cmdlets/InvokeMgUserEventForward.g.cs | 2 +- .../Cmdlets/InvokeMgUserEventPermanentDelete.g.cs | 2 +- .../Cmdlets/InvokeMgUserEventSnoozeReminder.g.cs | 2 +- .../Cmdlets/InvokeMgUserEventTentativelyAccept.g.cs | 2 +- .../beta/Cmdlets/NewMgGroupCalendarEvent.g.cs | 2 +- .../beta/Cmdlets/NewMgGroupCalendarPermission.g.cs | 2 +- .../wrapper/beta/Cmdlets/NewMgGroupEvent.g.cs | 2 +- .../beta/Cmdlets/NewMgGroupEventAttachment.g.cs | 2 +- .../beta/Cmdlets/NewMgGroupEventExtension.g.cs | 2 +- src/Calendar/wrapper/beta/Cmdlets/NewMgPlace.g.cs | 2 +- .../beta/Cmdlets/NewMgPlaceAsBuildingCheckIn.g.cs | 2 +- .../Cmdlets/NewMgPlaceAsBuildingMapFootprint.g.cs | 2 +- .../beta/Cmdlets/NewMgPlaceAsBuildingMapLevel.g.cs | 2 +- .../Cmdlets/NewMgPlaceAsBuildingMapLevelFixture.g.cs | 2 +- .../Cmdlets/NewMgPlaceAsBuildingMapLevelSection.g.cs | 2 +- .../Cmdlets/NewMgPlaceAsBuildingMapLevelUnit.g.cs | 2 +- .../beta/Cmdlets/NewMgPlaceAsDeskCheckIn.g.cs | 2 +- .../beta/Cmdlets/NewMgPlaceAsFloorCheckIn.g.cs | 2 +- .../beta/Cmdlets/NewMgPlaceAsRoomCheckIn.g.cs | 2 +- .../beta/Cmdlets/NewMgPlaceAsRoomListCheckIn.g.cs | 2 +- .../beta/Cmdlets/NewMgPlaceAsRoomListRoom.g.cs | 2 +- .../Cmdlets/NewMgPlaceAsRoomListRoomCheckIn.g.cs | 2 +- .../beta/Cmdlets/NewMgPlaceAsRoomListWorkspace.g.cs | 2 +- .../NewMgPlaceAsRoomListWorkspaceCheckIn.g.cs | 2 +- .../beta/Cmdlets/NewMgPlaceAsSectionCheckIn.g.cs | 2 +- .../beta/Cmdlets/NewMgPlaceAsWorkspaceCheckIn.g.cs | 2 +- .../wrapper/beta/Cmdlets/NewMgPlaceCheckIn.g.cs | 2 +- .../wrapper/beta/Cmdlets/NewMgUserCalendar.g.cs | 2 +- .../wrapper/beta/Cmdlets/NewMgUserCalendarEvent.g.cs | 2 +- .../wrapper/beta/Cmdlets/NewMgUserCalendarGroup.g.cs | 2 +- .../beta/Cmdlets/NewMgUserCalendarGroupCalendar.g.cs | 2 +- .../beta/Cmdlets/NewMgUserCalendarPermission.g.cs | 2 +- .../beta/Cmdlets/NewMgUserDefaultCalendarEvent.g.cs | 2 +- .../wrapper/beta/Cmdlets/NewMgUserEvent.g.cs | 2 +- .../beta/Cmdlets/NewMgUserEventAttachment.g.cs | 2 +- .../beta/Cmdlets/NewMgUserEventExtension.g.cs | 2 +- .../beta/Cmdlets/RemoveMgGroupCalendarEvent.g.cs | 2 +- .../Cmdlets/RemoveMgGroupCalendarPermission.g.cs | 2 +- .../wrapper/beta/Cmdlets/RemoveMgGroupEvent.g.cs | 2 +- .../beta/Cmdlets/RemoveMgGroupEventAttachment.g.cs | 2 +- .../beta/Cmdlets/RemoveMgGroupEventExtension.g.cs | 2 +- src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlace.g.cs | 2 +- .../beta/Cmdlets/RemoveMgPlaceAsBuildingCheckIn.g.cs | 2 +- .../beta/Cmdlets/RemoveMgPlaceAsBuildingMap.g.cs | 2 +- .../Cmdlets/RemoveMgPlaceAsBuildingMapFootprint.g.cs | 2 +- .../Cmdlets/RemoveMgPlaceAsBuildingMapLevel.g.cs | 2 +- .../RemoveMgPlaceAsBuildingMapLevelFixture.g.cs | 2 +- .../RemoveMgPlaceAsBuildingMapLevelSection.g.cs | 2 +- .../Cmdlets/RemoveMgPlaceAsBuildingMapLevelUnit.g.cs | 2 +- .../beta/Cmdlets/RemoveMgPlaceAsDeskCheckIn.g.cs | 2 +- .../beta/Cmdlets/RemoveMgPlaceAsFloorCheckIn.g.cs | 2 +- .../beta/Cmdlets/RemoveMgPlaceAsRoomCheckIn.g.cs | 2 +- .../beta/Cmdlets/RemoveMgPlaceAsRoomListCheckIn.g.cs | 2 +- .../beta/Cmdlets/RemoveMgPlaceAsRoomListRoom.g.cs | 2 +- .../Cmdlets/RemoveMgPlaceAsRoomListRoomCheckIn.g.cs | 2 +- .../Cmdlets/RemoveMgPlaceAsRoomListWorkspace.g.cs | 2 +- .../RemoveMgPlaceAsRoomListWorkspaceCheckIn.g.cs | 2 +- .../beta/Cmdlets/RemoveMgPlaceAsSectionCheckIn.g.cs | 2 +- .../Cmdlets/RemoveMgPlaceAsWorkspaceCheckIn.g.cs | 2 +- .../wrapper/beta/Cmdlets/RemoveMgPlaceCheckIn.g.cs | 2 +- .../beta/Cmdlets/RemoveMgUserCalendarGroup.g.cs | 2 +- .../beta/Cmdlets/RemoveMgUserCalendarPermission.g.cs | 2 +- .../wrapper/beta/Cmdlets/RemoveMgUserEvent.g.cs | 2 +- .../beta/Cmdlets/RemoveMgUserEventAttachment.g.cs | 2 +- .../beta/Cmdlets/RemoveMgUserEventExtension.g.cs | 2 +- .../beta/Cmdlets/UpdateMgGroupCalendarEvent.g.cs | 2 +- .../Cmdlets/UpdateMgGroupCalendarPermission.g.cs | 2 +- .../wrapper/beta/Cmdlets/UpdateMgGroupEvent.g.cs | 2 +- .../beta/Cmdlets/UpdateMgGroupEventExtension.g.cs | 2 +- src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlace.g.cs | 2 +- .../beta/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs | 2 +- .../beta/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs | 2 +- .../Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs | 2 +- .../Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs | 2 +- .../UpdateMgPlaceAsBuildingMapLevelFixture.g.cs | 2 +- .../UpdateMgPlaceAsBuildingMapLevelSection.g.cs | 2 +- .../Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs | 2 +- .../beta/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs | 2 +- .../beta/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs | 2 +- .../beta/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs | 2 +- .../beta/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs | 2 +- .../beta/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs | 2 +- .../Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs | 2 +- .../Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs | 2 +- .../UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs | 2 +- .../beta/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs | 2 +- .../Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs | 2 +- .../wrapper/beta/Cmdlets/UpdateMgPlaceCheckIn.g.cs | 2 +- .../beta/Cmdlets/UpdateMgUserCalendarGroup.g.cs | 2 +- .../beta/Cmdlets/UpdateMgUserCalendarPermission.g.cs | 2 +- .../wrapper/beta/Cmdlets/UpdateMgUserEvent.g.cs | 2 +- .../beta/Cmdlets/UpdateMgUserEventExtension.g.cs | 2 +- .../beta/Microsoft.Graph.Wrapper.Calendar.csproj | 12 +++++------- 268 files changed, 272 insertions(+), 274 deletions(-) diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendar.g.cs index 5aba11116c7..0258ebcba90 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendar.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendar.g.cs @@ -34,7 +34,7 @@ public class GetMgGroupCalendarCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs index c51e144f725..74abed71fcb 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarAllowedCalendarSharingRolesWithUser.g.cs @@ -48,7 +48,7 @@ public class GetMgGroupCalendarAllowedCalendarSharingRolesWithUserCommand : Grap protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); var pathParameters = new Dictionary diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs index 94e1cd63cc1..46c8af15f7f 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgGroupCalendarEvent_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_List.g.cs index 950a55d22c6..a76507dc264 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_List.g.cs @@ -60,7 +60,7 @@ public class GetMgGroupCalendarEvent_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermissionCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermissionCount.g.cs index 541250ada98..f30b083fa4a 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermissionCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermissionCount.g.cs @@ -32,7 +32,7 @@ public class GetMgGroupCalendarPermissionCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_Get.g.cs index 534e6ef4a5e..73f828e99ff 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgGroupCalendarPermission_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_List.g.cs index 555dc10e481..991b67eee8e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_List.g.cs @@ -60,7 +60,7 @@ public class GetMgGroupCalendarPermission_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermissionCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarView.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarView.g.cs index 803efaf0dea..53dc35748be 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarView.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarView.g.cs @@ -60,7 +60,7 @@ public class GetMgGroupCalendarViewCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachmentCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachmentCount.g.cs index 0aa3810bfad..d3cc3daf788 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachmentCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachmentCount.g.cs @@ -34,7 +34,7 @@ public class GetMgGroupEventAttachmentCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_Get.g.cs index 60b5d4c1788..10ba84fcfd8 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_Get.g.cs @@ -38,7 +38,7 @@ public class GetMgGroupEventAttachment_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_List.g.cs index 42c948c9ca8..c10f05d06c6 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_List.g.cs @@ -62,7 +62,7 @@ public class GetMgGroupEventAttachment_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventCalendar.g.cs index fd439bbef75..a4008902da3 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventCalendar.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventCalendar.g.cs @@ -36,7 +36,7 @@ public class GetMgGroupEventCalendarCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventCount.g.cs index 85a0badd66c..8fe028c6dfb 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventCount.g.cs @@ -32,7 +32,7 @@ public class GetMgGroupEventCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventDelta.g.cs index 331e381bff1..871d377d129 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventDelta.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventDelta.g.cs @@ -72,7 +72,7 @@ public class GetMgGroupEventDeltaCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // Cleared before the request so a failed or interrupted run cannot leave the previous diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtensionCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtensionCount.g.cs index f4ae3fd73c6..f26188a98e8 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtensionCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtensionCount.g.cs @@ -34,7 +34,7 @@ public class GetMgGroupEventExtensionCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_Get.g.cs index 1486b1dc391..b57c24f136e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_Get.g.cs @@ -38,7 +38,7 @@ public class GetMgGroupEventExtension_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_List.g.cs index f0c1a26337a..5e8e0539ec3 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_List.g.cs @@ -62,7 +62,7 @@ public class GetMgGroupEventExtension_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.ExtensionCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstance.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstance.g.cs index dc11b2f1d75..9d4a61e56ae 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstance.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstance.g.cs @@ -62,7 +62,7 @@ public class GetMgGroupEventInstanceCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstanceDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstanceDelta.g.cs index 4f70bc1220a..bc19fd995a6 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstanceDelta.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstanceDelta.g.cs @@ -74,7 +74,7 @@ public class GetMgGroupEventInstanceDeltaCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // Cleared before the request so a failed or interrupted run cannot leave the previous diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_Get.g.cs index 16236f9380e..78d716bb719 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgGroupEvent_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_List.g.cs index f60f7c1c162..92d23528d75 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_List.g.cs @@ -60,7 +60,7 @@ public class GetMgGroupEvent_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckInCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckInCount.g.cs index 13345384970..a07e1e09a1d 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckInCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckInCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsBuildingCheckInCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs index 80318e0060f..fc93ba4873b 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsBuildingCheckIn_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs index 2338a42333b..5d4b1dac991 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsBuildingCheckIn_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChildCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChildCount.g.cs index 4fb8313d1ac..21e8a035aab 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChildCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChildCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsBuildingChildCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_Get.g.cs index 65b76d22506..42da3066299 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsBuildingChild_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Place? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_List.g.cs index f8edc1a7b59..afcaa0d6e8d 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsBuildingChild_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMap.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMap.g.cs index f0eb58353c9..b2557c959fc 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMap.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMap.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsBuildingMapCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingMap? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprintCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprintCount.g.cs index 9d4e743a200..382c37ecf81 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprintCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprintCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsBuildingMapFootprintCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_Get.g.cs index 8fc7c0712d6..bca41e8e92f 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsBuildingMapFootprint_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_List.g.cs index 02675962dd8..43e12003b48 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsBuildingMapFootprint_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMapCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelCount.g.cs index f94f17199ea..f20b62c5398 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsBuildingMapLevelCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixtureCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixtureCount.g.cs index 3e1b673a25f..ecf5024e926 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixtureCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixtureCount.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsBuildingMapLevelFixtureCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs index d935b69ac09..21bd4abe6e8 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs @@ -38,7 +38,7 @@ public class GetMgPlaceAsBuildingMapLevelFixture_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_List.g.cs index 791a8ab0a94..bef61639654 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_List.g.cs @@ -62,7 +62,7 @@ public class GetMgPlaceAsBuildingMapLevelFixture_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMapCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSectionCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSectionCount.g.cs index f30ed7b74ad..5d54b55d651 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSectionCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSectionCount.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsBuildingMapLevelSectionCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_Get.g.cs index d1a1a84404c..26a7151f281 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_Get.g.cs @@ -38,7 +38,7 @@ public class GetMgPlaceAsBuildingMapLevelSection_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_List.g.cs index 6b6fd5af092..2d1ada18c13 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_List.g.cs @@ -62,7 +62,7 @@ public class GetMgPlaceAsBuildingMapLevelSection_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMapCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnitCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnitCount.g.cs index 3db492fd891..c3ae26cea68 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnitCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnitCount.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsBuildingMapLevelUnitCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs index f636f67d196..3b37f352bd7 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs @@ -38,7 +38,7 @@ public class GetMgPlaceAsBuildingMapLevelUnit_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_List.g.cs index 1afa6f39414..d3c8d6edc9f 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_List.g.cs @@ -62,7 +62,7 @@ public class GetMgPlaceAsBuildingMapLevelUnit_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMapCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs index 37a7c18d8a4..944f75f55a1 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsBuildingMapLevel_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs index 92a79071843..9cd0933bf8a 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsBuildingMapLevel_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMapCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs index 14b5ddaa743..99c4b595b79 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsBuilding_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Building? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_List.g.cs index 5ba23a2dcf5..d0e02cf3f8c 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_List.g.cs @@ -59,7 +59,7 @@ public class GetMgPlaceAsBuilding_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckInCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckInCount.g.cs index cc195af070b..9aec6cb7778 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckInCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckInCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsDeskCheckInCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs index 17a517a18b3..cb924f7342a 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsDeskCheckIn_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs index 9f71609f781..d03cbe3c4eb 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsDeskCheckIn_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChildCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChildCount.g.cs index f47406627c7..3c0cc944aa7 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChildCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChildCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsDeskChildCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_Get.g.cs index 53295aa8d77..8ac1ca66eac 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsDeskChild_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Place? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_List.g.cs index 367b6c6a1e2..3b38462a1c9 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsDeskChild_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_Get.g.cs index 48c9d29d65d..a217fdb5a54 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_Get.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsDesk_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Desk? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_List.g.cs index 96559480a43..aa03d433c6a 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_List.g.cs @@ -59,7 +59,7 @@ public class GetMgPlaceAsDesk_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.DeskCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckInCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckInCount.g.cs index c36582f6865..1cbb76715d4 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckInCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckInCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsFloorCheckInCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs index 42ac2f6143b..0b7037a1161 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsFloorCheckIn_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs index 7aab502b9c3..7ac28209604 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsFloorCheckIn_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChildCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChildCount.g.cs index 5f5a34a8641..e154183cc8d 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChildCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChildCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsFloorChildCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_Get.g.cs index c27f631a6c0..fe46de6f622 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsFloorChild_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Place? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_List.g.cs index 7e3555f83f6..2fcd6343c63 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsFloorChild_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_Get.g.cs index 4b6054ca3b1..8a4c93c1c1b 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_Get.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsFloor_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Floor? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_List.g.cs index b2240265ac6..8559c6774c3 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_List.g.cs @@ -59,7 +59,7 @@ public class GetMgPlaceAsFloor_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.FloorCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckInCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckInCount.g.cs index 7338b797793..f45a5e04dd9 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckInCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckInCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsRoomCheckInCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs index c08921be70c..65938cdb036 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsRoomCheckIn_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs index 068f4ed872a..525a4e6c19b 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsRoomCheckIn_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChildCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChildCount.g.cs index 820aa4b69a4..e466e7b344b 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChildCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChildCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsRoomChildCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_Get.g.cs index 1a4c54cafb2..9399563f752 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsRoomChild_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Place? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_List.g.cs index 6f62119703a..9bfb1e6e638 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsRoomChild_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckInCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckInCount.g.cs index 12c014f8e25..2e0af787e07 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckInCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckInCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsRoomListCheckInCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs index ce6a3b2c241..2017327a4b9 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsRoomListCheckIn_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs index 43be5f5cadd..300e03903bb 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsRoomListCheckIn_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChildCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChildCount.g.cs index fb057e2b817..10d9d284b33 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChildCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChildCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsRoomListChildCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_Get.g.cs index 5c205dbfb18..93b5f6fe5e3 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsRoomListChild_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Place? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_List.g.cs index 0bdfd256cb4..9a480644d5b 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsRoomListChild_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckInCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckInCount.g.cs index 5818433b336..1da0e8cf8c5 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckInCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckInCount.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsRoomListRoomCheckInCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs index d9b814ae39e..51e254075df 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs @@ -38,7 +38,7 @@ public class GetMgPlaceAsRoomListRoomCheckIn_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_List.g.cs index 5e39cf1dcad..1461be1cebc 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_List.g.cs @@ -62,7 +62,7 @@ public class GetMgPlaceAsRoomListRoomCheckIn_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChildCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChildCount.g.cs index 7f277c91482..9f6c46ec885 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChildCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChildCount.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsRoomListRoomChildCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_Get.g.cs index 6f2e51da03f..07e4a8e3c15 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_Get.g.cs @@ -38,7 +38,7 @@ public class GetMgPlaceAsRoomListRoomChild_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Place? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_List.g.cs index 9fd943223ac..f9667eee9b5 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_List.g.cs @@ -62,7 +62,7 @@ public class GetMgPlaceAsRoomListRoomChild_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCount.g.cs index 054edcfa41a..268e19f13aa 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsRoomListRoomCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs index b5c4a498e0f..5dbb631f2b4 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsRoomListRoom_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Room? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs index 3edb1d42df5..bbc06cd4f10 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsRoomListRoom_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckInCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckInCount.g.cs index aac3775cb4f..5868c871b5c 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckInCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckInCount.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsRoomListWorkspaceCheckInCountCommand : GraphClientCmdle protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs index 9d10f318513..dff5a5954ea 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs @@ -38,7 +38,7 @@ public class GetMgPlaceAsRoomListWorkspaceCheckIn_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs index baaeea4c142..5e7eb3ffbcc 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs @@ -62,7 +62,7 @@ public class GetMgPlaceAsRoomListWorkspaceCheckIn_ListCommand : GraphClientCmdle protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChildCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChildCount.g.cs index 69aa806b1ee..533434acb6a 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChildCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChildCount.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsRoomListWorkspaceChildCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_Get.g.cs index d996912c6cf..e4ac1cb4c48 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_Get.g.cs @@ -38,7 +38,7 @@ public class GetMgPlaceAsRoomListWorkspaceChild_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Place? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_List.g.cs index a23c8494ae5..86e138cedf6 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_List.g.cs @@ -62,7 +62,7 @@ public class GetMgPlaceAsRoomListWorkspaceChild_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCount.g.cs index e1ffdbd36d6..9546df7e5da 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsRoomListWorkspaceCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs index 339cd505ac7..3721dcbe31e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsRoomListWorkspace_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs index 3820de80715..07a1b11ba75 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsRoomListWorkspace_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.WorkspaceCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs index 31d78ccd284..a8b1eaee2dc 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsRoomList_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomList? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_List.g.cs index f161e4f9f9a..5e990da95f9 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_List.g.cs @@ -59,7 +59,7 @@ public class GetMgPlaceAsRoomList_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomListCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_Get.g.cs index 0c80c54b485..fe4be35edf2 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_Get.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsRoom_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Room? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_List.g.cs index d63120b250e..6bd77888176 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_List.g.cs @@ -59,7 +59,7 @@ public class GetMgPlaceAsRoom_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.RoomCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckInCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckInCount.g.cs index dd70bcfc98a..b5a4622b23c 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckInCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckInCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsSectionCheckInCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs index 27c481b0325..7530c62dda5 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsSectionCheckIn_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs index 343a695c87e..e8d0e3a9a95 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsSectionCheckIn_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChildCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChildCount.g.cs index a0cd9a17cfd..500fa051931 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChildCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChildCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsSectionChildCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_Get.g.cs index 4053a02d797..1315ae64f59 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsSectionChild_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Place? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_List.g.cs index 8cd76de19ed..127cc7b19f1 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsSectionChild_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_Get.g.cs index 47c1d587199..337ac58415e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_Get.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsSection_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Section? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_List.g.cs index 61ac3f3b976..8b2a90b1c17 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_List.g.cs @@ -59,7 +59,7 @@ public class GetMgPlaceAsSection_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckInCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckInCount.g.cs index 897dfabd3c6..c1a9d2f7315 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckInCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckInCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsWorkspaceCheckInCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs index ce09c34858c..55ceb3d9c27 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsWorkspaceCheckIn_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs index 2931d51f6da..671ddd27886 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsWorkspaceCheckIn_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChildCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChildCount.g.cs index 6c85930a891..dcd6dca6279 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChildCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChildCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceAsWorkspaceChildCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_Get.g.cs index 2e98a258c6c..67066215c59 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceAsWorkspaceChild_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Place? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_List.g.cs index 52f80597710..d91950afbd9 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceAsWorkspaceChild_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs index d5622782fa2..711b2240a4c 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceAsWorkspace_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs index 10fd5adf781..fb6d904008d 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs @@ -59,7 +59,7 @@ public class GetMgPlaceAsWorkspace_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.WorkspaceCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckInCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckInCount.g.cs index fc546681805..f53f202efd2 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckInCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckInCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceCheckInCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_Get.g.cs index aae9acf16c7..df059337091 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceCheckIn_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_List.g.cs index 56c8a6a20c8..66104235fbb 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceCheckIn_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaimCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChildCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChildCount.g.cs index 8b93239de46..d462f24b428 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChildCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChildCount.g.cs @@ -32,7 +32,7 @@ public class GetMgPlaceChildCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_Get.g.cs index 4d7634c8abb..72bc8f5351f 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgPlaceChild_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Place? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_List.g.cs index 8f1db2aa156..a623f523e48 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_List.g.cs @@ -60,7 +60,7 @@ public class GetMgPlaceChild_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.PlaceCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCount.g.cs index 5c9aff063ae..c2fd874ab7c 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCount.g.cs @@ -31,7 +31,7 @@ public class GetMgPlaceCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsBuilding.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsBuilding.g.cs index aa900e54b5c..dcc06327e5d 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsBuilding.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsBuilding.g.cs @@ -31,7 +31,7 @@ public class GetMgPlaceCountAsBuildingCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsDesk.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsDesk.g.cs index ee49c494665..78e4dc1d116 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsDesk.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsDesk.g.cs @@ -31,7 +31,7 @@ public class GetMgPlaceCountAsDeskCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsFloor.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsFloor.g.cs index f922922abde..5420fcdc1e5 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsFloor.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsFloor.g.cs @@ -31,7 +31,7 @@ public class GetMgPlaceCountAsFloorCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsRoom.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsRoom.g.cs index ff09723dc9e..cc041b51300 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsRoom.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsRoom.g.cs @@ -31,7 +31,7 @@ public class GetMgPlaceCountAsRoomCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsRoomList.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsRoomList.g.cs index cfedf7ba6c4..14be4926c32 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsRoomList.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsRoomList.g.cs @@ -31,7 +31,7 @@ public class GetMgPlaceCountAsRoomListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsSection.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsSection.g.cs index 5dbafcd1baf..a3e2e329abd 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsSection.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsSection.g.cs @@ -31,7 +31,7 @@ public class GetMgPlaceCountAsSectionCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsWorkspace.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsWorkspace.g.cs index f2886cff66a..033ad397c5b 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsWorkspace.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCountAsWorkspace.g.cs @@ -31,7 +31,7 @@ public class GetMgPlaceCountAsWorkspaceCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceDescendants.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceDescendants.g.cs index a5ca22bacc3..f53e36a543d 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceDescendants.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceDescendants.g.cs @@ -57,7 +57,7 @@ public class GetMgPlaceDescendantsCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceGetOperationWithId.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceGetOperationWithId.g.cs index 2fc6ebfc12b..08758623be2 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceGetOperationWithId.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceGetOperationWithId.g.cs @@ -34,7 +34,7 @@ public class GetMgPlaceGetOperationWithIdCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); var pathParameters = new Dictionary diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceListOperations.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceListOperations.g.cs index fe302f3e322..9b3b994a1e8 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceListOperations.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceListOperations.g.cs @@ -56,7 +56,7 @@ public class GetMgPlaceListOperationsCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarAllowedCalendarSharingRolesWithUser.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarAllowedCalendarSharingRolesWithUser.g.cs index c0d1def3ed0..fed351f7c52 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarAllowedCalendarSharingRolesWithUser.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarAllowedCalendarSharingRolesWithUser.g.cs @@ -50,7 +50,7 @@ public class GetMgUserCalendarAllowedCalendarSharingRolesWithUserCommand : Graph protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); var pathParameters = new Dictionary diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarCount.g.cs index 4c28b5dca16..3ebd022f128 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarCount.g.cs @@ -32,7 +32,7 @@ public class GetMgUserCalendarCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarDelta.g.cs index ce1534d2e49..cabeeab71e2 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarDelta.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarDelta.g.cs @@ -72,7 +72,7 @@ public class GetMgUserCalendarDeltaCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // Cleared before the request so a failed or interrupted run cannot leave the previous diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarEvent.g.cs index 2e1a92edbe8..eac566911b2 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarEvent.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarEvent.g.cs @@ -62,7 +62,7 @@ public class GetMgUserCalendarEventCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs index ff3d3865aa3..79071b576b2 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs @@ -62,7 +62,7 @@ public class GetMgUserCalendarGroupCalendarCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCount.g.cs index c02aca2cda6..fc444ca3dec 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCount.g.cs @@ -32,7 +32,7 @@ public class GetMgUserCalendarGroupCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_Get.g.cs index 1759945a395..10dc39c9a78 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgUserCalendarGroup_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_List.g.cs index aeff8b33a50..b55907d4ea4 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_List.g.cs @@ -60,7 +60,7 @@ public class GetMgUserCalendarGroup_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroupCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermissionCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermissionCount.g.cs index 202aa14272d..73d5cfa16e2 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermissionCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermissionCount.g.cs @@ -32,7 +32,7 @@ public class GetMgUserCalendarPermissionCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_Get.g.cs index 5dee1a8e417..587e42ab107 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgUserCalendarPermission_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_List.g.cs index 7bc00d7b93a..6e3df63e7be 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_List.g.cs @@ -60,7 +60,7 @@ public class GetMgUserCalendarPermission_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermissionCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarView.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarView.g.cs index 451e7ccf7d8..b3b292ba06a 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarView.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarView.g.cs @@ -60,7 +60,7 @@ public class GetMgUserCalendarViewCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_Get.g.cs index ee5be114a47..c77437fbc1b 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgUserCalendar_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_List.g.cs index f11f64618fd..713166618c9 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_List.g.cs @@ -60,7 +60,7 @@ public class GetMgUserCalendar_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendar.g.cs index 475d3c7fd2a..b0d87d03564 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendar.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendar.g.cs @@ -34,7 +34,7 @@ public class GetMgUserDefaultCalendarCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs index 10dbd44ab72..a22b4fa8ea1 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs @@ -60,7 +60,7 @@ public class GetMgUserDefaultCalendarEventCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachmentCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachmentCount.g.cs index 1468bc09845..b655cfd80b4 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachmentCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachmentCount.g.cs @@ -34,7 +34,7 @@ public class GetMgUserEventAttachmentCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_Get.g.cs index 58aafb4bf8d..55f6e4ce8c2 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_Get.g.cs @@ -38,7 +38,7 @@ public class GetMgUserEventAttachment_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_List.g.cs index 2e09a8ee09e..a835973f277 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_List.g.cs @@ -62,7 +62,7 @@ public class GetMgUserEventAttachment_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.AttachmentCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventCalendar.g.cs index f73dac92119..07e033f5a20 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventCalendar.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventCalendar.g.cs @@ -36,7 +36,7 @@ public class GetMgUserEventCalendarCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventCount.g.cs index 1274bc78915..1f43f072e2f 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventCount.g.cs @@ -32,7 +32,7 @@ public class GetMgUserEventCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventDelta.g.cs index 9d0c0040f9f..503717b0c80 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventDelta.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventDelta.g.cs @@ -72,7 +72,7 @@ public class GetMgUserEventDeltaCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // Cleared before the request so a failed or interrupted run cannot leave the previous diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtensionCount.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtensionCount.g.cs index 7afbe906cb6..d4610f3742f 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtensionCount.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtensionCount.g.cs @@ -34,7 +34,7 @@ public class GetMgUserEventExtensionCountCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); int? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_Get.g.cs index fba66a25ecd..a07a6d797d7 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_Get.g.cs @@ -38,7 +38,7 @@ public class GetMgUserEventExtension_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_List.g.cs index 1c94212e25c..184a603c2ca 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_List.g.cs @@ -62,7 +62,7 @@ public class GetMgUserEventExtension_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.ExtensionCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstance.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstance.g.cs index ec8618ce44b..1c6feb82bf4 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstance.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstance.g.cs @@ -62,7 +62,7 @@ public class GetMgUserEventInstanceCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstanceDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstanceDelta.g.cs index c450c4f6fa8..f15ff5ae80e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstanceDelta.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstanceDelta.g.cs @@ -74,7 +74,7 @@ public class GetMgUserEventInstanceDeltaCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // Cleared before the request so a failed or interrupted run cannot leave the previous diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_Get.g.cs index 6bce61c8de4..1b22f3698bb 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_Get.g.cs @@ -36,7 +36,7 @@ public class GetMgUserEvent_GetCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_List.g.cs index 82468a1f7e6..017026966f2 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_List.g.cs @@ -60,7 +60,7 @@ public class GetMgUserEvent_ListCommand : GraphClientCmdlet protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.EventCollectionResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgCalendarUserCalendarAllowedCalendarSharingRoles.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgCalendarUserCalendarAllowedCalendarSharingRoles.g.cs index e5bb5dacea9..9665fa6ea69 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgCalendarUserCalendarAllowedCalendarSharingRoles.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgCalendarUserCalendarAllowedCalendarSharingRoles.g.cs @@ -48,7 +48,7 @@ public class InvokeMgCalendarUserCalendarAllowedCalendarSharingRolesCommand : Gr protected override void ProcessRecord() { - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); var pathParameters = new Dictionary diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupCalendarGetSchedule.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupCalendarGetSchedule.g.cs index 5d175d9bf20..3794aaeae81 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupCalendarGetSchedule.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupCalendarGetSchedule.g.cs @@ -57,7 +57,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(StartTime))) body.StartTime = StartTime; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); global::Microsoft.Graph.PowerShell.Calendar.Client.Groups.Item.Calendar.GetSchedule.GetSchedulePostResponse? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupCalendarPermanentDelete.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupCalendarPermanentDelete.g.cs index 3d07daa37f2..df6e160d54f 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupCalendarPermanentDelete.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupCalendarPermanentDelete.g.cs @@ -35,7 +35,7 @@ protected override void ProcessRecord() return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventAccept.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventAccept.g.cs index b8ff877340a..ba56d7bce11 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventAccept.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventAccept.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(Comment))) body.Comment = Comment; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventAttachmentCreateUploadSession.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventAttachmentCreateUploadSession.g.cs index f2ac49ea940..bc8fc60815a 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventAttachmentCreateUploadSession.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventAttachmentCreateUploadSession.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(AttachmentItem))) body.AttachmentItem = AttachmentItem; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.UploadSession? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventCancel.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventCancel.g.cs index c15283662d0..e8ca22547e1 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventCancel.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventCancel.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(Comment))) body.Comment = Comment; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventDecline.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventDecline.g.cs index d47d9bf0c90..aec377043ad 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventDecline.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventDecline.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ProposedNewTime))) body.ProposedNewTime = ProposedNewTime; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventDismissReminder.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventDismissReminder.g.cs index 1e5aadd4f4d..1a3155c30dd 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventDismissReminder.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventDismissReminder.g.cs @@ -37,7 +37,7 @@ protected override void ProcessRecord() return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventForward.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventForward.g.cs index 1843cd4d8b5..5d5584d1149 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventForward.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventForward.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ToRecipients))) body.ToRecipients = ToRecipients!.ToList(); - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventPermanentDelete.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventPermanentDelete.g.cs index 27760e831ab..f235211ca5d 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventPermanentDelete.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventPermanentDelete.g.cs @@ -37,7 +37,7 @@ protected override void ProcessRecord() return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventSnoozeReminder.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventSnoozeReminder.g.cs index 7dda9cf6fca..951422c01b2 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventSnoozeReminder.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventSnoozeReminder.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(NewReminderTime))) body.NewReminderTime = NewReminderTime; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventTentativelyAccept.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventTentativelyAccept.g.cs index d781e4fd370..c7b6b47d21b 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventTentativelyAccept.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgGroupEventTentativelyAccept.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ProposedNewTime))) body.ProposedNewTime = ProposedNewTime; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarPermanentDelete.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarPermanentDelete.g.cs index 0e61aa604e9..591cb490234 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarPermanentDelete.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserCalendarPermanentDelete.g.cs @@ -35,7 +35,7 @@ protected override void ProcessRecord() return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventAccept.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventAccept.g.cs index e40438e6b9b..2d0ce8f3c58 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventAccept.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventAccept.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(Comment))) body.Comment = Comment; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventAttachmentCreateUploadSession.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventAttachmentCreateUploadSession.g.cs index 8787d8574db..79d4795b5dd 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventAttachmentCreateUploadSession.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventAttachmentCreateUploadSession.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(AttachmentItem))) body.AttachmentItem = AttachmentItem; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.UploadSession? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventCancel.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventCancel.g.cs index 1178bd7eeba..f2b0bf257af 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventCancel.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventCancel.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(Comment))) body.Comment = Comment; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventDecline.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventDecline.g.cs index 321e4c3f873..6742e74c969 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventDecline.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventDecline.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ProposedNewTime))) body.ProposedNewTime = ProposedNewTime; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventDismissReminder.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventDismissReminder.g.cs index 69671118764..802f77160f7 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventDismissReminder.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventDismissReminder.g.cs @@ -37,7 +37,7 @@ protected override void ProcessRecord() return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventForward.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventForward.g.cs index 03cc95f5d1e..bca6da3dbd6 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventForward.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventForward.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ToRecipients))) body.ToRecipients = ToRecipients!.ToList(); - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventPermanentDelete.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventPermanentDelete.g.cs index f16dd5de966..d36a2e2a867 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventPermanentDelete.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventPermanentDelete.g.cs @@ -37,7 +37,7 @@ protected override void ProcessRecord() return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventSnoozeReminder.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventSnoozeReminder.g.cs index f6747c03c23..746b3c7caf6 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventSnoozeReminder.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventSnoozeReminder.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(NewReminderTime))) body.NewReminderTime = NewReminderTime; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventTentativelyAccept.g.cs b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventTentativelyAccept.g.cs index 74ad99a2a80..06702d232dd 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventTentativelyAccept.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/InvokeMgUserEventTentativelyAccept.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() if (this.IsParameterBound(nameof(ProposedNewTime))) body.ProposedNewTime = ProposedNewTime; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEvent.g.cs index 1fb1a56cc9b..9a700d1f4b9 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEvent.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarEvent.g.cs @@ -291,7 +291,7 @@ protected override void ProcessRecord() body.Type = Type; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarPermission.g.cs index 4a3037b828d..028a55489ef 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarPermission.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupCalendarPermission.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() body.Role = Role; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupEvent.g.cs index b72999ff4a2..08f09d9a46e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupEvent.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupEvent.g.cs @@ -291,7 +291,7 @@ protected override void ProcessRecord() body.Type = Type; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupEventAttachment.g.cs index 176db279d46..dde7ef6661e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupEventAttachment.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupEventAttachment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupEventExtension.g.cs index 87c76b54a7f..a7435f9b2ec 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupEventExtension.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgGroupEventExtension.g.cs @@ -39,7 +39,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlace.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlace.g.cs index 3730945318f..40744b9a650 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlace.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlace.g.cs @@ -92,7 +92,7 @@ protected override void ProcessRecord() body.GeoCoordinates = GeoCoordinates; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Place? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingCheckIn.g.cs index f7794c4d341..56a3260b8b6 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingCheckIn.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapFootprint.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapFootprint.g.cs index 53274d42ce9..aaf11246cc1 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapFootprint.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapFootprint.g.cs @@ -41,7 +41,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevel.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevel.g.cs index a3b39cf43d4..7d9209f3487 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevel.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevel.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelFixture.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelFixture.g.cs index 969f04dc598..107d92bca22 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelFixture.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelFixture.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelSection.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelSection.g.cs index 9ceffd11462..63d36a89073 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelSection.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelSection.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelUnit.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelUnit.g.cs index 8a9b652d364..ac586a83f02 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelUnit.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsBuildingMapLevelUnit.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsDeskCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsDeskCheckIn.g.cs index 49ee8a3e35f..af65dd89b05 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsDeskCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsDeskCheckIn.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsFloorCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsFloorCheckIn.g.cs index 0bc4bb67049..bf4a522b6c6 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsFloorCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsFloorCheckIn.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomCheckIn.g.cs index 29979b916ef..dfdf2c4a602 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomCheckIn.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListCheckIn.g.cs index edd77e53719..527537c01dd 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListCheckIn.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListRoom.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListRoom.g.cs index c598b89e296..154e97cf970 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListRoom.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListRoom.g.cs @@ -165,7 +165,7 @@ protected override void ProcessRecord() body.TeamsEnabledState = TeamsEnabledState; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Room? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListRoomCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListRoomCheckIn.g.cs index f5d01c6236e..15121bae038 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListRoomCheckIn.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListWorkspace.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListWorkspace.g.cs index 5c5eb4b83d5..bb6cd34c76c 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListWorkspace.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListWorkspace.g.cs @@ -141,7 +141,7 @@ protected override void ProcessRecord() body.Mode = Mode; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListWorkspaceCheckIn.g.cs index e87e3791337..c4bb633eac8 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsRoomListWorkspaceCheckIn.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsSectionCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsSectionCheckIn.g.cs index df40f4428a1..d46aed3f140 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsSectionCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsSectionCheckIn.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsWorkspaceCheckIn.g.cs index 761ea75b9d7..5dba5736a95 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceAsWorkspaceCheckIn.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceCheckIn.g.cs index 9a31e2619cb..e348bae40d2 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgPlaceCheckIn.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendar.g.cs index 7c9b3f42851..cf74cd32ac3 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendar.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendar.g.cs @@ -129,7 +129,7 @@ protected override void ProcessRecord() body.Owner = Owner; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarEvent.g.cs index b7d5d9a9556..6bc8cccc0f5 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarEvent.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarEvent.g.cs @@ -293,7 +293,7 @@ protected override void ProcessRecord() body.Type = Type; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroup.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroup.g.cs index 3852ab39d46..67c7d6c736e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroup.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroup.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendar.g.cs index 99586a8343b..bc8c7f1fe3a 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendar.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarGroupCalendar.g.cs @@ -131,7 +131,7 @@ protected override void ProcessRecord() body.Owner = Owner; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Calendar? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarPermission.g.cs index 3121c516ae7..e3a46d490a7 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarPermission.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserCalendarPermission.g.cs @@ -63,7 +63,7 @@ protected override void ProcessRecord() body.Role = Role; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserDefaultCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserDefaultCalendarEvent.g.cs index 0afd28e8621..4f8edd360fc 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserDefaultCalendarEvent.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserDefaultCalendarEvent.g.cs @@ -291,7 +291,7 @@ protected override void ProcessRecord() body.Type = Type; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserEvent.g.cs index 8c14d657dd1..7fc4b45f741 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserEvent.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserEvent.g.cs @@ -291,7 +291,7 @@ protected override void ProcessRecord() body.Type = Type; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserEventAttachment.g.cs index 4434c19f248..4dff725cbcf 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserEventAttachment.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserEventAttachment.g.cs @@ -67,7 +67,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Attachment? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserEventExtension.g.cs index a29a2b3cac8..86a3c9639d6 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/NewMgUserEventExtension.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/NewMgUserEventExtension.g.cs @@ -39,7 +39,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEvent.g.cs index ca15145135c..a273644e759 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEvent.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarEvent.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(EventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarPermission.g.cs index ed2f9774480..28ee5c5e074 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarPermission.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupCalendarPermission.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CalendarPermissionId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEvent.g.cs index 45b5c6a7373..4928a32d5a6 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEvent.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEvent.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(EventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEventAttachment.g.cs index a83b9ae5fef..b10d12bbd3d 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEventAttachment.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEventAttachment.g.cs @@ -34,7 +34,7 @@ protected override void ProcessRecord() if (!ShouldProcess(AttachmentId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEventExtension.g.cs index a8b772c7d8a..c588e0f12a6 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEventExtension.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgGroupEventExtension.g.cs @@ -34,7 +34,7 @@ protected override void ProcessRecord() if (!ShouldProcess(ExtensionId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlace.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlace.g.cs index 5620c6e8302..500dbd1b69e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlace.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlace.g.cs @@ -30,7 +30,7 @@ protected override void ProcessRecord() if (!ShouldProcess(PlaceId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingCheckIn.g.cs index 82ecc79b37c..4ce88230b4e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingCheckIn.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CheckInClaimCalendarEventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMap.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMap.g.cs index 85fc2be9c98..2155fcc9d2b 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMap.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMap.g.cs @@ -30,7 +30,7 @@ protected override void ProcessRecord() if (!ShouldProcess(PlaceId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapFootprint.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapFootprint.g.cs index 0b548a14282..416efe2572f 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapFootprint.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapFootprint.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(FootprintMapId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevel.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevel.g.cs index 306fbe19859..d14a76ffe44 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevel.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevel.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(LevelMapId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelFixture.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelFixture.g.cs index e447726cb2a..1ad238f8793 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelFixture.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelFixture.g.cs @@ -34,7 +34,7 @@ protected override void ProcessRecord() if (!ShouldProcess(FixtureMapId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelSection.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelSection.g.cs index a7a3f8d7497..f410a080887 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelSection.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelSection.g.cs @@ -34,7 +34,7 @@ protected override void ProcessRecord() if (!ShouldProcess(SectionMapId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelUnit.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelUnit.g.cs index bde8a2158dd..7f040a9fe2b 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelUnit.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsBuildingMapLevelUnit.g.cs @@ -34,7 +34,7 @@ protected override void ProcessRecord() if (!ShouldProcess(UnitMapId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsDeskCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsDeskCheckIn.g.cs index 524921eb43a..13a4946c4cc 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsDeskCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsDeskCheckIn.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CheckInClaimCalendarEventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsFloorCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsFloorCheckIn.g.cs index 50a2f2f4f95..16e35818010 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsFloorCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsFloorCheckIn.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CheckInClaimCalendarEventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomCheckIn.g.cs index d4b534e4809..06d8ef0d8d6 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomCheckIn.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CheckInClaimCalendarEventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListCheckIn.g.cs index 312597a9010..8dbf4790150 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListCheckIn.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CheckInClaimCalendarEventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListRoom.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListRoom.g.cs index e98b844812a..17042cfa4dc 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListRoom.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListRoom.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(RoomId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListRoomCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListRoomCheckIn.g.cs index cb76fed0a9a..dd0655fb60b 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListRoomCheckIn.g.cs @@ -34,7 +34,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CheckInClaimCalendarEventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListWorkspace.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListWorkspace.g.cs index 8b8eebc9513..6fd7cad5b04 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListWorkspace.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListWorkspace.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(WorkspaceId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListWorkspaceCheckIn.g.cs index b8c617cdcfa..1c5627cc70a 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsRoomListWorkspaceCheckIn.g.cs @@ -34,7 +34,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CheckInClaimCalendarEventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsSectionCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsSectionCheckIn.g.cs index 9923b69cbcb..2ad519e44f5 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsSectionCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsSectionCheckIn.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CheckInClaimCalendarEventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsWorkspaceCheckIn.g.cs index 8cabdb12c3b..3648178db8d 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceAsWorkspaceCheckIn.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CheckInClaimCalendarEventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceCheckIn.g.cs index 049b4b8f8e5..0e61629b40c 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgPlaceCheckIn.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CheckInClaimCalendarEventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroup.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroup.g.cs index 70cbbcf59a8..8b13597f3b2 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroup.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarGroup.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CalendarGroupId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarPermission.g.cs index ac41a11617c..b4ad0315cfd 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarPermission.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserCalendarPermission.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(CalendarPermissionId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEvent.g.cs index 28d0c079c95..78aa7172051 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEvent.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEvent.g.cs @@ -32,7 +32,7 @@ protected override void ProcessRecord() if (!ShouldProcess(EventId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEventAttachment.g.cs index 560c2d03cd7..e8de79af47a 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEventAttachment.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEventAttachment.g.cs @@ -34,7 +34,7 @@ protected override void ProcessRecord() if (!ShouldProcess(AttachmentId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEventExtension.g.cs index 7f00d0b791f..8b3fa6a41fa 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEventExtension.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/RemoveMgUserEventExtension.g.cs @@ -34,7 +34,7 @@ protected override void ProcessRecord() if (!ShouldProcess(ExtensionId, "Remove")) return; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); // DeleteAsync returns a plain Task: a standard delete response has no body. diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarEvent.g.cs index 2ba78c736a1..74e9ef26223 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarEvent.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarEvent.g.cs @@ -293,7 +293,7 @@ protected override void ProcessRecord() body.Type = Type; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarPermission.g.cs index 3ad73837a98..9eb7e64c2e8 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarPermission.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarPermission.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() body.Role = Role; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEvent.g.cs index f8142a72946..630a4af7d08 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEvent.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEvent.g.cs @@ -293,7 +293,7 @@ protected override void ProcessRecord() body.Type = Type; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEventExtension.g.cs index 635032eae3b..7fdc3e3417b 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEventExtension.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEventExtension.g.cs @@ -41,7 +41,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlace.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlace.g.cs index 1ab2f95b78d..e0bd1ace502 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlace.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlace.g.cs @@ -93,7 +93,7 @@ protected override void ProcessRecord() body.GeoCoordinates = GeoCoordinates; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Place? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs index 822ffef7b0b..4bf46a9a8c9 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs index 5d9c4949a9c..5c077fd8011 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs @@ -47,7 +47,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.BuildingMap? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs index 6261e0b9f8c..3d5728a25ad 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs @@ -43,7 +43,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.FootprintMap? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs index 5165cd20555..1abba819198 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs @@ -49,7 +49,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.LevelMap? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs index 89ce63957f6..07fcabc9f72 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.FixtureMap? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs index fddfe786554..56fb6840fe2 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.SectionMap? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs index 6f9c43ea217..78a30ee0cc8 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs @@ -51,7 +51,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.UnitMap? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs index df1c6ce8f48..a44dddf9f34 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs index 4f23c635b5a..112cbf630e1 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs index c894a66dcb8..2ec587201f7 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs index de1cce28833..7c23eacf1e8 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs index 5becb4a0f7b..6825c1c4542 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs @@ -167,7 +167,7 @@ protected override void ProcessRecord() body.TeamsEnabledState = TeamsEnabledState; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Room? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs index 58458d00063..8aa740d4540 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs index 2660d67bd2e..ad509648d91 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs @@ -143,7 +143,7 @@ protected override void ProcessRecord() body.Mode = Mode; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Workspace? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs index f54f700fe41..d4b279519e1 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs index 2b73a47de80..ac9f6bb9c46 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs index d2a21e087ef..e428e13a4b7 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceCheckIn.g.cs index ced8509caa9..019885627f1 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceCheckIn.g.cs @@ -53,7 +53,7 @@ protected override void ProcessRecord() body.CheckInMethod = CheckInMethod; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CheckInClaim? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroup.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroup.g.cs index 95ee561f37a..7f838af6fc2 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroup.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroup.g.cs @@ -55,7 +55,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarGroup? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarPermission.g.cs index 5c3e9567306..608dcafd60d 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarPermission.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarPermission.g.cs @@ -65,7 +65,7 @@ protected override void ProcessRecord() body.Role = Role; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.CalendarPermission? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEvent.g.cs index 0b1afec8df4..acff0ae5db7 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEvent.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEvent.g.cs @@ -293,7 +293,7 @@ protected override void ProcessRecord() body.Type = Type; - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Event? result; diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEventExtension.g.cs index a9d3e700ef4..8926ec6ed4b 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEventExtension.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEventExtension.g.cs @@ -41,7 +41,7 @@ protected override void ProcessRecord() - var requestAdapter = GetRequestAdapter(); + var requestAdapter = GetRequestAdapter("beta"); var client = new ApiClient(requestAdapter); Microsoft.Graph.PowerShell.Calendar.Client.Models.Extension? result; diff --git a/src/Calendar/wrapper/beta/Microsoft.Graph.Wrapper.Calendar.csproj b/src/Calendar/wrapper/beta/Microsoft.Graph.Wrapper.Calendar.csproj index 3bd88b28b46..b5b22fcd0ba 100644 --- a/src/Calendar/wrapper/beta/Microsoft.Graph.Wrapper.Calendar.csproj +++ b/src/Calendar/wrapper/beta/Microsoft.Graph.Wrapper.Calendar.csproj @@ -48,18 +48,16 @@ - + Removal is by package identity, not filename. --> + Condition="'%(ReferenceCopyLocalPaths.NuGetPackageId)' != ''" /> From f6e066380a7cbf35658be1c899db164f87adbaa4 Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Thu, 5 Nov 2026 12:48:58 -0800 Subject: [PATCH 19/24] Audit Calendar surviving mandatory date query contracts Normally integrate required-query framework 4eb3ca3. Audit actual effective operation and path-item metadata: each profile has 60 required declarations on 30 operations, with eight surviving GET routes requiring 16 mandatory QueryStartDateTime and QueryEndDateTime string inputs. Preserve all original 136/137 selected suppressions, default routes and optional OData names. Pin initial-only query assignment and continuation separation without introducing new selectors or changing shared generator behavior. Current strict six mappings and 205 combined tests pass; fresh sequential full profile generation and actual authenticated binder/wire probes follow. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../Calendar_directiveMigrationMap.json | 4 +- .../CalendarDirectiveMigrationTests.cs | 77 +++++++++++++++++++ 2 files changed, 79 insertions(+), 2 deletions(-) diff --git a/src/Calendar/wrapper/Calendar_directiveMigrationMap.json b/src/Calendar/wrapper/Calendar_directiveMigrationMap.json index ccfab5c8a23..ed02462aa29 100644 --- a/src/Calendar/wrapper/Calendar_directiveMigrationMap.json +++ b/src/Calendar/wrapper/Calendar_directiveMigrationMap.json @@ -1,6 +1,6 @@ { "scope": "Only src/Calendar/Calendar.md; global and profile-local directives are excluded. Parameter aliases/transforms and schema/response directives remain deferred.", - "prerequisite": "Reviewed inventory, curated verbs, natural-ID variants, required-path ID alignment and adapted Authentication #3891 are normally merged in powershell-v3 target 844672d7c2238f6b29a208f9ba73fe28e9e29cef. The existing literal inventory schema still validates the complete 136/137-operation source set with unchanged Calendar specs and no reserved Legacy fields. Module tests use the three-setting GeneratorConfig and separate profile context for derived data and emitted service roots, including beta with collision data enabled and disabled. No Calendar variant grouping is introduced. Fresh acceptance uses normally packaged adapted Authentication 2.41.2 as the sole owner of its Kiota closure; independent legacy proof remains in notes, source blob hashes and tests.", + "prerequisite": "Reviewed inventory, curated verbs, natural-ID variants, required-path ID alignment, adapted Authentication #3891 and mandatory native query support #3882 are normally merged in powershell-v3 target 4eb3ca3e1e21ca163337f59ebbcfb9d1820a920d. The existing literal inventory schema still validates the complete 136/137-operation source set with unchanged Calendar specs and no reserved Legacy fields. Module tests preserve separate profile context and audit actual effective required-query contracts: each profile declares 60 required queries on 30 operations, of which eight surviving GET operations require the 16 string QueryStartDateTime/QueryEndDateTime inputs; the other 22 operations remain suppressed by reviewed source/derived configuration. No Calendar variant grouping or selector change is introduced. Fresh acceptance uses normally packaged adapted Authentication 2.41.2 and retains complete legacy proof.", "specBlobs": { "v1.0": "9371766a3e422aec32ba2b68d096e2fd4d115042", "beta": "5baa13cd8fe2804cea0ecf4a59f7815728b55a67" @@ -1662,5 +1662,5 @@ "v1.0": "7103e6e3a02ff3a5b63e577910ea0863516b468c", "beta": "8b01cbfc54946d1e5f49a760c43eb2b1663811dc" }, - "reviewedTargetCommit": "844672d7c2238f6b29a208f9ba73fe28e9e29cef" + "reviewedTargetCommit": "4eb3ca3e1e21ca163337f59ebbcfb9d1820a920d" } diff --git a/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs b/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs index 878a621c9f6..d0e6aefd516 100644 --- a/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs +++ b/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using System.IO; using System.Linq; using System.Net.Http; @@ -240,6 +241,73 @@ public void ExistingCollisionSuppressionsHaveExactSpecAndBothProfileOracleEviden new GeneratorConfig("Test.Client", ""), apiVersion: profile)); } + [Theory] + [InlineData("v1.0")] + [InlineData("beta")] + public async Task EverySurvivingRequiredRangeContractUsesMandatoryNativeQueryInputs(string profile) + { + var source = Spec(profile); + var config = new GeneratorConfig("Test.Client", ""); + var required = source.Paths.SelectMany(p => p.Value.Operations!.Select(o => ( + Path: p.Key, Item: p.Value, Method: o.Key, Operation: o.Value, + Queries: EffectiveQueries(p.Value, o.Value).Where(q => q.Required).ToArray()))) + .Where(o => o.Queries.Length > 0).ToArray(); + Assert.Equal(30, required.Length); + Assert.Equal(60, required.Sum(o => o.Queries.Length)); + var surviving = required.Where(o => !CmdletConfigurator.IsSuppressed(o.Method, o.Path, config, apiVersion: profile)).ToArray(); + Assert.Equal(8, surviving.Length); + Assert.Equal(16, surviving.Sum(o => o.Queries.Length)); + foreach (var operation in surviving) + { + Assert.Equal(HttpMethod.Get, operation.Method); + Assert.Equal(["endDateTime", "startDateTime"], operation.Queries.Select(q => q.Name).OrderBy(n => n).ToArray()); + Assert.All(operation.Queries, query => + { + Assert.Equal(JsonSchemaType.String, query.Schema!.Type); + Assert.True(string.IsNullOrEmpty(query.Schema.Format)); + }); + } + + var subset = new OpenApiDocument { Info = source.Info, Components = source.Components, Paths = new OpenApiPaths() }; + foreach (var operation in required) + if (!subset.Paths.ContainsKey(operation.Path)) + subset.Paths.Add(operation.Path, operation.Item); + var output = Path.Combine(Path.GetTempPath(), "calendar-required-query-tests", Guid.NewGuid().ToString("N")); + Directory.CreateDirectory(output); + try + { + await new PowerShellWrapperGenerationService(subset, config with { OutputPath = output }, + NullLogger.Instance, apiVersion: profile).GenerateAsync(CancellationToken.None); + var emitted = Directory.GetFiles(output, "*.g.cs").ToDictionary(p => Path.GetFileName(p)!, File.ReadAllText); + foreach (var operation in surviving) + { + var kind = OperationType(operation.Operation) == "function" ? OperationKind.Function : OperationKind.Resource; + var naming = Naming.Resolve(new OperationInfo(operation.Method, operation.Path, Kind: kind), config, apiVersion: profile); + var text = emitted[$"{naming.VerbName}{naming.Noun}.g.cs"]; + foreach (var name in new[] { "StartDateTime", "EndDateTime" }) + { + Assert.Contains($"public string Query{name} ", text); + Assert.Contains($"QueryParameters.{name} = Query{name};", text); + Assert.Matches($@"\[Parameter\(Mandatory = true,[^\]]*\)\]\s*\[ValidateNotNullOrEmpty\]\s*public string Query{name}", text); + Assert.DoesNotContain($"public string {name} ", text); + } + Assert.Contains("public string[]? Property ", text); + Assert.Contains("QueryParameters.Select = Property", text); + if (kind == OperationKind.Function) + { + Assert.Contains("ParameterSetName = \"DeltaSync\"", text); + var continuation = text[text.IndexOf("while (true)", StringComparison.Ordinal)..]; + Assert.DoesNotContain("QueryParameters.StartDateTime", continuation); + Assert.DoesNotContain("QueryParameters.EndDateTime", continuation); + } + } + } + finally + { + Directory.Delete(output, recursive: true); + } + } + [Theory] [InlineData("v1.0")] [InlineData("beta")] @@ -341,6 +409,15 @@ private static CmdletNaming Resolve(HttpMethod method, string path, GeneratorCon private static OpenApiDocument LegacySpec(string profile) => profile == "v1.0" ? LegacyV1.Value : LegacyBeta.Value; + private static IEnumerable EffectiveQueries(IOpenApiPathItem item, OpenApiOperation operation) + { + var parameters = new Dictionary<(string?, ParameterLocation?), IOpenApiParameter>(); + foreach (var level in new[] { item.Parameters, operation.Parameters }) + foreach (var parameter in level ?? []) + parameters[(parameter.Name, parameter.In)] = parameter; + return parameters.Values.Where(p => p.In == ParameterLocation.Query); + } + private static string? OperationType(OpenApiOperation operation) => operation.Extensions is not null && operation.Extensions.TryGetValue("x-ms-docs-operation-type", out var extension) From 36dfd49c0b9d8f49d0fc29f03dcff1218a5bf3cd Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Thu, 5 Nov 2026 12:55:16 -0800 Subject: [PATCH 20/24] Regenerate Calendar v1.0 with mandatory native date range queries Run the actual full four-mutex queued Kiota 1.36.1 and wrapper Release pipeline against normally merged 4eb3ca3 using adapted packaged Authentication 2.41.2. Exit 0/status OK in 38.6 seconds with 268 fresh imported exports/routes. All eight surviving required-range GET operations expose mandatory typed QueryStartDateTime/QueryEndDateTime with native wire members, independent DeltaSync/Resume sets and unchanged OData options. Real authenticated Global/USGov probes verify missing/null/empty binder rejection before HTTP, exact escaped date wire, typed Event results, nextLink/DeltaLink isolation, original suppressions and unaffected paired List/Get neighbors. Existing clients/projects/locks regenerate unchanged; commit the full profile changed output together. The separate PR3886 bound-header GET-refetch failure is retained, not overlaid or waived. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../wrapper/v1.0/Cmdlets/GetMgGroupCalendar.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent.g.cs | 1 + .../v1.0/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs | 1 + .../v1.0/Cmdlets/GetMgGroupCalendarEvent_List.g.cs | 1 + .../v1.0/Cmdlets/GetMgGroupCalendarPermission.g.cs | 1 + .../Cmdlets/GetMgGroupCalendarPermission_Get.g.cs | 1 + .../Cmdlets/GetMgGroupCalendarPermission_List.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgGroupCalendarView.g.cs | 11 +++++++++++ .../wrapper/v1.0/Cmdlets/GetMgGroupEvent.g.cs | 1 + .../v1.0/Cmdlets/GetMgGroupEventAttachment.g.cs | 1 + .../v1.0/Cmdlets/GetMgGroupEventAttachment_Get.g.cs | 1 + .../v1.0/Cmdlets/GetMgGroupEventAttachment_List.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgGroupEventCalendar.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgGroupEventDelta.g.cs | 10 ++++++++++ .../v1.0/Cmdlets/GetMgGroupEventExtension.g.cs | 1 + .../v1.0/Cmdlets/GetMgGroupEventExtension_Get.g.cs | 1 + .../v1.0/Cmdlets/GetMgGroupEventExtension_List.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgGroupEventInstance.g.cs | 11 +++++++++++ .../v1.0/Cmdlets/GetMgGroupEventInstanceDelta.g.cs | 10 ++++++++++ .../wrapper/v1.0/Cmdlets/GetMgGroupEvent_Get.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgGroupEvent_List.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs | 1 + .../Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMap.g.cs | 1 + .../Cmdlets/GetMgPlaceAsBuildingMapFootprint.g.cs | 1 + .../Cmdlets/GetMgPlaceAsBuildingMapFootprint_Get.g.cs | 1 + .../GetMgPlaceAsBuildingMapFootprint_List.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel.g.cs | 1 + .../Cmdlets/GetMgPlaceAsBuildingMapLevelFixture.g.cs | 1 + .../GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs | 1 + .../GetMgPlaceAsBuildingMapLevelFixture_List.g.cs | 1 + .../Cmdlets/GetMgPlaceAsBuildingMapLevelSection.g.cs | 1 + .../GetMgPlaceAsBuildingMapLevelSection_Get.g.cs | 1 + .../GetMgPlaceAsBuildingMapLevelSection_List.g.cs | 1 + .../Cmdlets/GetMgPlaceAsBuildingMapLevelUnit.g.cs | 1 + .../Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs | 1 + .../GetMgPlaceAsBuildingMapLevelUnit_List.g.cs | 1 + .../Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs | 1 + .../Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsBuilding_List.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk_Get.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk_List.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor_Get.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor_List.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs | 1 + .../Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsRoomListRoom.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn.g.cs | 1 + .../Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs | 1 + .../Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_List.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace.g.cs | 1 + .../Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn.g.cs | 1 + .../GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs | 1 + .../GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs | 1 + .../Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs | 1 + .../Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsRoomList_List.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom_Get.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom_List.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgPlaceAsSection.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgPlaceAsSection_Get.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsSection_List.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn.g.cs | 1 + .../Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs | 1 + .../Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs | 1 + .../v1.0/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn_Get.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn_List.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgUserCalendar.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgUserCalendarEvent.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup.g.cs | 1 + .../v1.0/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs | 1 + .../v1.0/Cmdlets/GetMgUserCalendarGroup_Get.g.cs | 1 + .../v1.0/Cmdlets/GetMgUserCalendarGroup_List.g.cs | 1 + .../v1.0/Cmdlets/GetMgUserCalendarPermission.g.cs | 1 + .../v1.0/Cmdlets/GetMgUserCalendarPermission_Get.g.cs | 1 + .../Cmdlets/GetMgUserCalendarPermission_List.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgUserCalendarView.g.cs | 11 +++++++++++ .../wrapper/v1.0/Cmdlets/GetMgUserCalendar_Get.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgUserCalendar_List.g.cs | 1 + .../v1.0/Cmdlets/GetMgUserDefaultCalendar.g.cs | 1 + .../v1.0/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs | 1 + src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent.g.cs | 1 + .../v1.0/Cmdlets/GetMgUserEventAttachment.g.cs | 1 + .../v1.0/Cmdlets/GetMgUserEventAttachment_Get.g.cs | 1 + .../v1.0/Cmdlets/GetMgUserEventAttachment_List.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgUserEventCalendar.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgUserEventDelta.g.cs | 10 ++++++++++ .../wrapper/v1.0/Cmdlets/GetMgUserEventExtension.g.cs | 1 + .../v1.0/Cmdlets/GetMgUserEventExtension_Get.g.cs | 1 + .../v1.0/Cmdlets/GetMgUserEventExtension_List.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgUserEventInstance.g.cs | 11 +++++++++++ .../v1.0/Cmdlets/GetMgUserEventInstanceDelta.g.cs | 10 ++++++++++ .../wrapper/v1.0/Cmdlets/GetMgUserEvent_Get.g.cs | 1 + .../wrapper/v1.0/Cmdlets/GetMgUserEvent_List.g.cs | 1 + 121 files changed, 197 insertions(+) diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendar.g.cs index 787bf5b0eca..574d6bee432 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendar.g.cs @@ -50,6 +50,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent.g.cs index 4c0024acce2..e12bb451bae 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent.g.cs @@ -21,6 +21,7 @@ public class GetMgGroupCalendarEventCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } 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 9ec2f5cfce7..d3a4b02f78b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 6aa55ce5b10..ae0e48c9a77 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarEvent_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission.g.cs index 4d9d634cc25..16450ba32e9 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission.g.cs @@ -21,6 +21,7 @@ public class GetMgGroupCalendarPermissionCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } 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 4ae5eb36fae..b2b8ea5d74b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 7210e950476..da6d4e108d1 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarPermission_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarView.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarView.g.cs index 0ea93f68045..e7c99518078 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarView.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupCalendarView.g.cs @@ -19,6 +19,14 @@ public class GetMgGroupCalendarViewCommand : GraphClientCmdlet { [Parameter(Mandatory = true, Position = 0)] public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1, + HelpMessage = "Value for the 'startDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryStartDateTime { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2, + HelpMessage = "Value for the 'endDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryEndDateTime { get; set; } = string.Empty; @@ -92,6 +100,9 @@ protected override void ProcessRecord() if (Count.IsPresent) requestConfiguration.QueryParameters.Count = true; + requestConfiguration.QueryParameters.StartDateTime = QueryStartDateTime; + requestConfiguration.QueryParameters.EndDateTime = QueryEndDateTime; + AddRequestHeaders(requestConfiguration.Headers); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent.g.cs index eb19e055331..2f2c074d282 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent.g.cs @@ -21,6 +21,7 @@ public class GetMgGroupEventCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment.g.cs index 0b0c9d2f505..396c192daa3 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment.g.cs @@ -23,6 +23,7 @@ public class GetMgGroupEventAttachmentCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } 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 764c2914d99..4405c5c8198 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment_Get.g.cs @@ -54,6 +54,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 a968e5f5379..d44dc8add16 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventAttachment_List.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventCalendar.g.cs index c109588a77e..986d9fb1ab3 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventCalendar.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventDelta.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventDelta.g.cs index 2cc50df9400..17685044626 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventDelta.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventDelta.g.cs @@ -20,6 +20,14 @@ public class GetMgGroupEventDeltaCommand : GraphClientCmdlet { [Parameter(Mandatory = true, Position = 0, ParameterSetName = "DeltaSync")] public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1, ParameterSetName = "DeltaSync", + HelpMessage = "Value for the 'startDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryStartDateTime { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2, ParameterSetName = "DeltaSync", + HelpMessage = "Value for the 'endDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryEndDateTime { get; set; } = string.Empty; @@ -114,6 +122,8 @@ protected override void ProcessRecord() if (Count.IsPresent) requestConfiguration.QueryParameters.Count = true; + requestConfiguration.QueryParameters.StartDateTime = QueryStartDateTime; + requestConfiguration.QueryParameters.EndDateTime = QueryEndDateTime; AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension.g.cs index 7f4d6825a25..cf7b110b988 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension.g.cs @@ -23,6 +23,7 @@ public class GetMgGroupEventExtensionCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } 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 4cbaaf84a82..0d65b704d55 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension_Get.g.cs @@ -54,6 +54,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 95f679e1a8e..6c473b2816b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventExtension_List.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstance.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstance.g.cs index cef0d34a482..5eb956cefa5 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstance.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstance.g.cs @@ -21,6 +21,14 @@ public class GetMgGroupEventInstanceCommand : GraphClientCmdlet public string GroupId { get; set; } = string.Empty; [Parameter(Mandatory = true, Position = 1)] public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2, + HelpMessage = "Value for the 'startDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryStartDateTime { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3, + HelpMessage = "Value for the 'endDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryEndDateTime { get; set; } = string.Empty; @@ -94,6 +102,9 @@ protected override void ProcessRecord() if (Count.IsPresent) requestConfiguration.QueryParameters.Count = true; + requestConfiguration.QueryParameters.StartDateTime = QueryStartDateTime; + requestConfiguration.QueryParameters.EndDateTime = QueryEndDateTime; + AddRequestHeaders(requestConfiguration.Headers); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstanceDelta.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstanceDelta.g.cs index 4c07e4c4408..c1b4306c5b9 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstanceDelta.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEventInstanceDelta.g.cs @@ -22,6 +22,14 @@ public class GetMgGroupEventInstanceDeltaCommand : GraphClientCmdlet public string GroupId { get; set; } = string.Empty; [Parameter(Mandatory = true, Position = 1, ParameterSetName = "DeltaSync")] public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2, ParameterSetName = "DeltaSync", + HelpMessage = "Value for the 'startDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryStartDateTime { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3, ParameterSetName = "DeltaSync", + HelpMessage = "Value for the 'endDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryEndDateTime { get; set; } = string.Empty; @@ -116,6 +124,8 @@ protected override void ProcessRecord() if (Count.IsPresent) requestConfiguration.QueryParameters.Count = true; + requestConfiguration.QueryParameters.StartDateTime = QueryStartDateTime; + requestConfiguration.QueryParameters.EndDateTime = QueryEndDateTime; AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); 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 ad40a792fb4..4bb453d6a12 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 e938c6bf347..5e229d54f59 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgGroupEvent_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding.g.cs index 8f3f297e153..91586094d55 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding.g.cs @@ -19,6 +19,7 @@ public class GetMgPlaceAsBuildingCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn.g.cs index 81dd1b72177..a60a9829ecb 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsBuildingCheckInCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } 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 b2b50acfa80..0b250afd88d 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 580e72930eb..28387af0bc7 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMap.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMap.g.cs index 66cc7e393ba..d4c43e288ee 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMap.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMap.g.cs @@ -50,6 +50,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint.g.cs index 93661597773..336825c2ab1 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsBuildingMapFootprintCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } 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 cea0e1507d3..148cbf2e3dc 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 442fd9a569c..c4dc53717e8 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapFootprint_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel.g.cs index 5c591fc6c5a..8a1b93e642d 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsBuildingMapLevelCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture.g.cs index 1f9f1c9ce36..b4d92309ead 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture.g.cs @@ -23,6 +23,7 @@ public class GetMgPlaceAsBuildingMapLevelFixtureCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } 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 49b799e8667..009462d7ae1 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs @@ -54,6 +54,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 c56944af0bb..837b5a952a0 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_List.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection.g.cs index 0fd8ab7e6e4..41985652e24 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection.g.cs @@ -23,6 +23,7 @@ public class GetMgPlaceAsBuildingMapLevelSectionCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } 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 fe188f51a6c..d800b37bbbd 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_Get.g.cs @@ -54,6 +54,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 9b2167f5fc2..cc3b935e877 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_List.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit.g.cs index ced317b3ef0..c6c495864ab 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit.g.cs @@ -23,6 +23,7 @@ public class GetMgPlaceAsBuildingMapLevelUnitCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } 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 e2d4f4ea5fa..98103be5e5b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs @@ -54,6 +54,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 2960f273d0f..93d4247c060 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_List.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); 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 7288a280a56..6fa14acfbba 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 e641b2f8af0..8a7dddf4cc4 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); 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 ab8bf633ed2..fd0d27a8f35 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs @@ -50,6 +50,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 969846d3b84..de6d80933b6 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsBuilding_List.g.cs @@ -93,6 +93,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk.g.cs index a9f79b5cdc5..fb7eaa06f4c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk.g.cs @@ -19,6 +19,7 @@ public class GetMgPlaceAsDeskCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn.g.cs index 330216ec4f0..e12f766de3e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsDeskCheckInCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } 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 26a05717892..9cd8f659f1f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 d2d27d69d0b..5671210577f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); 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 ef40a8e6845..0dfab3a899d 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk_Get.g.cs @@ -50,6 +50,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 2d6df8c0914..c6b43c26d8c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsDesk_List.g.cs @@ -93,6 +93,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor.g.cs index d3911a48d16..c6f0506b6fb 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor.g.cs @@ -19,6 +19,7 @@ public class GetMgPlaceAsFloorCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn.g.cs index 0023491f98a..e31274f6c15 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsFloorCheckInCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } 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 0bde9be7b63..d1c77ec40e8 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 d382b09995c..d19a2dc82ab 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); 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 21e5d6b440f..45d7cb781d7 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor_Get.g.cs @@ -50,6 +50,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 3da2fb497c3..a3706175d31 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsFloor_List.g.cs @@ -93,6 +93,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom.g.cs index 1d432c433d9..77a9eb1be3b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom.g.cs @@ -19,6 +19,7 @@ public class GetMgPlaceAsRoomCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn.g.cs index 096bda286f2..6e32734f3e9 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsRoomCheckInCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } 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 dca2c19b6b7..29e9c2b2b6c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 150cd6ddd55..d8d4045ede1 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList.g.cs index 5ef93f76fb3..096be8f8918 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList.g.cs @@ -19,6 +19,7 @@ public class GetMgPlaceAsRoomListCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn.g.cs index 3b03b27cc23..d70f6ce3314 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsRoomListCheckInCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } 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 45c9ae291f7..6c226752002 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 7c1a95c2610..b2b6c80e573 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom.g.cs index 510afe02e91..d5499b38b5a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsRoomListRoomCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn.g.cs index be04a4bbd18..17d558c71ae 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn.g.cs @@ -23,6 +23,7 @@ public class GetMgPlaceAsRoomListRoomCheckInCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } 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 b00af43aca6..cfa3f549d8f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs @@ -54,6 +54,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 5da53d18121..d3bed8c0696 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_List.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); 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 d3edc7ed929..43ae3d9be0f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 d4095cf96f6..573816c3863 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace.g.cs index a905a38636f..3e391d09bff 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsRoomListWorkspaceCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn.g.cs index ff4878b5493..9f707d78e88 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn.g.cs @@ -23,6 +23,7 @@ public class GetMgPlaceAsRoomListWorkspaceCheckInCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } 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 eddca34eb95..aaf5e7a743a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs @@ -54,6 +54,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 0458a477117..49fb90f2dd3 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); 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 9797a2f118f..20443e16e9c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 d706273998b..8723750350e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); 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 d2de71324d5..7f08f77c38b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs @@ -50,6 +50,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 f0be4e340c3..9fac8d5104e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoomList_List.g.cs @@ -93,6 +93,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); 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 9218e60c071..9ba02de626e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom_Get.g.cs @@ -50,6 +50,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 2fef0bb18fb..89ac011fc3d 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsRoom_List.g.cs @@ -93,6 +93,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection.g.cs index 67e494ee425..4b5d84e4e6b 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection.g.cs @@ -19,6 +19,7 @@ public class GetMgPlaceAsSectionCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn.g.cs index 9b14eba9f52..5e70d69c62a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsSectionCheckInCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } 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 caf0bb6d18e..096da13bb48 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 bb46886d945..7bd964b86f0 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); 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 08cab298464..0b30dae34f1 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection_Get.g.cs @@ -50,6 +50,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 8cb35be40b2..911d642f120 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsSection_List.g.cs @@ -93,6 +93,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace.g.cs index 2e8d03f7edd..2950eae04cc 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace.g.cs @@ -19,6 +19,7 @@ public class GetMgPlaceAsWorkspaceCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn.g.cs index a1bb3652368..b841ebfff7c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsWorkspaceCheckInCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } 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 e51313f10d2..b71cbadf90c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 4c43967f439..7f84f65f843 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); 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 d542537dc38..fdcbfcb32b1 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs @@ -50,6 +50,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 a02c402e0fd..416356eb4a7 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs @@ -93,6 +93,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn.g.cs index 9efcc60b57d..528964a49d8 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceCheckInCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } 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 928eb8322d0..5f8c580625f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 ff664ad3491..5b566b8f2f9 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgPlaceCheckIn_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar.g.cs index e94c79b5414..4228985cb86 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar.g.cs @@ -21,6 +21,7 @@ public class GetMgUserCalendarCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarEvent.g.cs index ba76fa26c9c..d51f0a9d570 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarEvent.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup.g.cs index 97ff5c490b9..54b4bbab142 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup.g.cs @@ -21,6 +21,7 @@ public class GetMgUserCalendarGroupCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs index 36f279e91a4..e31ac68bce7 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); 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 feaed31fa3f..cf4de3bcc38 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 0bd9d8705f5..abc72421a83 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarGroup_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission.g.cs index 561ce25612b..46b182efc2d 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission.g.cs @@ -21,6 +21,7 @@ public class GetMgUserCalendarPermissionCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } 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 525bec4a75c..07d47d03a15 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 0de5842fc7e..886f77536bb 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarPermission_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarView.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarView.g.cs index c0086c30b2e..e60471d1e15 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarView.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendarView.g.cs @@ -19,6 +19,14 @@ public class GetMgUserCalendarViewCommand : GraphClientCmdlet { [Parameter(Mandatory = true, Position = 0)] public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1, + HelpMessage = "Value for the 'startDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryStartDateTime { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2, + HelpMessage = "Value for the 'endDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryEndDateTime { get; set; } = string.Empty; @@ -92,6 +100,9 @@ protected override void ProcessRecord() if (Count.IsPresent) requestConfiguration.QueryParameters.Count = true; + requestConfiguration.QueryParameters.StartDateTime = QueryStartDateTime; + requestConfiguration.QueryParameters.EndDateTime = QueryEndDateTime; + AddRequestHeaders(requestConfiguration.Headers); 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 facb2f82baa..a9aa46fbed8 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 0cc757eb154..ce9148019b9 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserCalendar_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendar.g.cs index 0f57509b031..45fffe0f7fb 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendar.g.cs @@ -50,6 +50,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs index b4fd5c74f58..87c274740aa 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent.g.cs index 245530664af..e45982f3a35 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent.g.cs @@ -21,6 +21,7 @@ public class GetMgUserEventCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment.g.cs index a3a27711104..90c511bbeb0 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment.g.cs @@ -23,6 +23,7 @@ public class GetMgUserEventAttachmentCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } 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 bbaab793f72..b5c3faab3e2 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment_Get.g.cs @@ -54,6 +54,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 fb5cde420c4..8967e56aa87 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventAttachment_List.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventCalendar.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventCalendar.g.cs index 6b000617d4a..2bb18497ede 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventCalendar.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventCalendar.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventDelta.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventDelta.g.cs index 52b09868c44..3797fd4e273 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventDelta.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventDelta.g.cs @@ -20,6 +20,14 @@ public class GetMgUserEventDeltaCommand : GraphClientCmdlet { [Parameter(Mandatory = true, Position = 0, ParameterSetName = "DeltaSync")] public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1, ParameterSetName = "DeltaSync", + HelpMessage = "Value for the 'startDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryStartDateTime { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2, ParameterSetName = "DeltaSync", + HelpMessage = "Value for the 'endDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryEndDateTime { get; set; } = string.Empty; @@ -114,6 +122,8 @@ protected override void ProcessRecord() if (Count.IsPresent) requestConfiguration.QueryParameters.Count = true; + requestConfiguration.QueryParameters.StartDateTime = QueryStartDateTime; + requestConfiguration.QueryParameters.EndDateTime = QueryEndDateTime; AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension.g.cs index 5eb4651717b..c532b4681b7 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension.g.cs @@ -23,6 +23,7 @@ public class GetMgUserEventExtensionCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } 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 13f8b027c7f..9c821f5aa0c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension_Get.g.cs @@ -54,6 +54,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 b82cbe88629..3115dad2da0 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventExtension_List.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstance.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstance.g.cs index c1270c098bd..eeea75f0fd2 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstance.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstance.g.cs @@ -21,6 +21,14 @@ public class GetMgUserEventInstanceCommand : GraphClientCmdlet public string UserId { get; set; } = string.Empty; [Parameter(Mandatory = true, Position = 1)] public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2, + HelpMessage = "Value for the 'startDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryStartDateTime { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3, + HelpMessage = "Value for the 'endDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryEndDateTime { get; set; } = string.Empty; @@ -94,6 +102,9 @@ protected override void ProcessRecord() if (Count.IsPresent) requestConfiguration.QueryParameters.Count = true; + requestConfiguration.QueryParameters.StartDateTime = QueryStartDateTime; + requestConfiguration.QueryParameters.EndDateTime = QueryEndDateTime; + AddRequestHeaders(requestConfiguration.Headers); diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstanceDelta.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstanceDelta.g.cs index 6b93883d915..664ce56185f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstanceDelta.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEventInstanceDelta.g.cs @@ -22,6 +22,14 @@ public class GetMgUserEventInstanceDeltaCommand : GraphClientCmdlet public string UserId { get; set; } = string.Empty; [Parameter(Mandatory = true, Position = 1, ParameterSetName = "DeltaSync")] public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2, ParameterSetName = "DeltaSync", + HelpMessage = "Value for the 'startDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryStartDateTime { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3, ParameterSetName = "DeltaSync", + HelpMessage = "Value for the 'endDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryEndDateTime { get; set; } = string.Empty; @@ -116,6 +124,8 @@ protected override void ProcessRecord() if (Count.IsPresent) requestConfiguration.QueryParameters.Count = true; + requestConfiguration.QueryParameters.StartDateTime = QueryStartDateTime; + requestConfiguration.QueryParameters.EndDateTime = QueryEndDateTime; AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); 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 d9048f7d335..b21792560ce 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent_Get.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } 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 1045904fe25..3b9b7f0cfc4 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent_List.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/GetMgUserEvent_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); From 67db1ad7e760da439c94b1108ec11eb45ea1264c Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Thu, 5 Nov 2026 12:58:05 -0800 Subject: [PATCH 21/24] Regenerate Calendar beta with mandatory native date range queries Run the actual full four-mutex queued Kiota 1.36.1 and wrapper Release pipeline against normally merged 4eb3ca3 with adapted packaged Authentication 2.41.2. Exit 0/status OK in 121.2 seconds with 312 fresh imported exports/routes. All eight surviving required-range GET operations expose mandatory typed QueryStartDateTime/QueryEndDateTime and preserve native wire names, DeltaSync/Resume separation, optional OData and original suppressions. Actual authenticated Global/USGov probes verify correct beta roots, 48 missing/null/empty binder rejections before HTTP, escaped native range values for every operation, typed results and continuation isolation. Client/projects/locks regenerate unchanged; commit the full beta changed output separately. Retain the distinct bound generic header GET-refetch failure for unmerged PR3886 without overlays or blanket HTTP success claims. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../wrapper/beta/Cmdlets/GetMgGroupCalendar.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgGroupCalendarEvent.g.cs | 1 + .../beta/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs | 1 + .../beta/Cmdlets/GetMgGroupCalendarEvent_List.g.cs | 1 + .../beta/Cmdlets/GetMgGroupCalendarPermission.g.cs | 1 + .../Cmdlets/GetMgGroupCalendarPermission_Get.g.cs | 1 + .../Cmdlets/GetMgGroupCalendarPermission_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgGroupCalendarView.g.cs | 11 +++++++++++ .../wrapper/beta/Cmdlets/GetMgGroupEvent.g.cs | 1 + .../beta/Cmdlets/GetMgGroupEventAttachment.g.cs | 1 + .../beta/Cmdlets/GetMgGroupEventAttachment_Get.g.cs | 1 + .../beta/Cmdlets/GetMgGroupEventAttachment_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgGroupEventCalendar.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgGroupEventDelta.g.cs | 10 ++++++++++ .../beta/Cmdlets/GetMgGroupEventExtension.g.cs | 1 + .../beta/Cmdlets/GetMgGroupEventExtension_Get.g.cs | 1 + .../beta/Cmdlets/GetMgGroupEventExtension_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgGroupEventInstance.g.cs | 11 +++++++++++ .../beta/Cmdlets/GetMgGroupEventInstanceDelta.g.cs | 10 ++++++++++ .../wrapper/beta/Cmdlets/GetMgGroupEvent_Get.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgGroupEvent_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceAsBuilding.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsBuildingCheckIn.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs | 1 + .../Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsBuildingChild.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsBuildingChild_Get.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsBuildingChild_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMap.g.cs | 1 + .../Cmdlets/GetMgPlaceAsBuildingMapFootprint.g.cs | 1 + .../Cmdlets/GetMgPlaceAsBuildingMapFootprint_Get.g.cs | 1 + .../GetMgPlaceAsBuildingMapFootprint_List.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsBuildingMapLevel.g.cs | 1 + .../Cmdlets/GetMgPlaceAsBuildingMapLevelFixture.g.cs | 1 + .../GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs | 1 + .../GetMgPlaceAsBuildingMapLevelFixture_List.g.cs | 1 + .../Cmdlets/GetMgPlaceAsBuildingMapLevelSection.g.cs | 1 + .../GetMgPlaceAsBuildingMapLevelSection_Get.g.cs | 1 + .../GetMgPlaceAsBuildingMapLevelSection_List.g.cs | 1 + .../Cmdlets/GetMgPlaceAsBuildingMapLevelUnit.g.cs | 1 + .../Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs | 1 + .../GetMgPlaceAsBuildingMapLevelUnit_List.g.cs | 1 + .../Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs | 1 + .../Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsBuilding_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceAsDesk.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsDeskChild_Get.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsDeskChild_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceAsDesk_Get.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceAsDesk_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceAsFloor.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsFloorCheckIn.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsFloorChild_Get.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsFloorChild_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceAsFloor_Get.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceAsFloor_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceAsRoom.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsRoomChild_Get.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsRoomChild_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceAsRoomList.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsRoomListCheckIn.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs | 1 + .../Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsRoomListChild.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsRoomListChild_Get.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsRoomListChild_List.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsRoomListRoom.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn.g.cs | 1 + .../Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs | 1 + .../Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_List.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsRoomListRoomChild.g.cs | 1 + .../Cmdlets/GetMgPlaceAsRoomListRoomChild_Get.g.cs | 1 + .../Cmdlets/GetMgPlaceAsRoomListRoomChild_List.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsRoomListWorkspace.g.cs | 1 + .../Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn.g.cs | 1 + .../GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs | 1 + .../GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs | 1 + .../Cmdlets/GetMgPlaceAsRoomListWorkspaceChild.g.cs | 1 + .../GetMgPlaceAsRoomListWorkspaceChild_Get.g.cs | 1 + .../GetMgPlaceAsRoomListWorkspaceChild_List.g.cs | 1 + .../Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs | 1 + .../Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsRoomList_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceAsRoom_Get.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceAsRoom_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceAsSection.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsSectionCheckIn.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsSectionChild.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsSectionChild_Get.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsSectionChild_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceAsSection_Get.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsSection_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn.g.cs | 1 + .../Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs | 1 + .../Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsWorkspaceChild.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsWorkspaceChild_Get.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsWorkspaceChild_List.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs | 1 + .../beta/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceCheckIn.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceCheckIn_Get.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceCheckIn_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceChild.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceChild_Get.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgPlaceChild_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgUserCalendar.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgUserCalendarEvent.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgUserCalendarGroup.g.cs | 1 + .../beta/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs | 1 + .../beta/Cmdlets/GetMgUserCalendarGroup_Get.g.cs | 1 + .../beta/Cmdlets/GetMgUserCalendarGroup_List.g.cs | 1 + .../beta/Cmdlets/GetMgUserCalendarPermission.g.cs | 1 + .../beta/Cmdlets/GetMgUserCalendarPermission_Get.g.cs | 1 + .../Cmdlets/GetMgUserCalendarPermission_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgUserCalendarView.g.cs | 11 +++++++++++ .../wrapper/beta/Cmdlets/GetMgUserCalendar_Get.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgUserCalendar_List.g.cs | 1 + .../beta/Cmdlets/GetMgUserDefaultCalendar.g.cs | 1 + .../beta/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs | 1 + src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent.g.cs | 1 + .../beta/Cmdlets/GetMgUserEventAttachment.g.cs | 1 + .../beta/Cmdlets/GetMgUserEventAttachment_Get.g.cs | 1 + .../beta/Cmdlets/GetMgUserEventAttachment_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgUserEventCalendar.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgUserEventDelta.g.cs | 10 ++++++++++ .../wrapper/beta/Cmdlets/GetMgUserEventExtension.g.cs | 1 + .../beta/Cmdlets/GetMgUserEventExtension_Get.g.cs | 1 + .../beta/Cmdlets/GetMgUserEventExtension_List.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgUserEventInstance.g.cs | 11 +++++++++++ .../beta/Cmdlets/GetMgUserEventInstanceDelta.g.cs | 10 ++++++++++ .../wrapper/beta/Cmdlets/GetMgUserEvent_Get.g.cs | 1 + .../wrapper/beta/Cmdlets/GetMgUserEvent_List.g.cs | 1 + 151 files changed, 227 insertions(+) diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendar.g.cs index 0258ebcba90..6d169523cab 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendar.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendar.g.cs @@ -50,6 +50,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent.g.cs index 4c0024acce2..e12bb451bae 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent.g.cs @@ -21,6 +21,7 @@ public class GetMgGroupCalendarEventCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs index 46c8af15f7f..f096f80fd29 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_List.g.cs index a76507dc264..215d6511207 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarEvent_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission.g.cs index 4d9d634cc25..16450ba32e9 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission.g.cs @@ -21,6 +21,7 @@ public class GetMgGroupCalendarPermissionCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_Get.g.cs index 73f828e99ff..4f5fa99aa5a 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_List.g.cs index 991b67eee8e..745aa586b4e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarPermission_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarView.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarView.g.cs index 53dc35748be..4c9b2dff6e5 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarView.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupCalendarView.g.cs @@ -19,6 +19,14 @@ public class GetMgGroupCalendarViewCommand : GraphClientCmdlet { [Parameter(Mandatory = true, Position = 0)] public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1, + HelpMessage = "Value for the 'startDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryStartDateTime { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2, + HelpMessage = "Value for the 'endDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryEndDateTime { get; set; } = string.Empty; @@ -92,6 +100,9 @@ protected override void ProcessRecord() if (Count.IsPresent) requestConfiguration.QueryParameters.Count = true; + requestConfiguration.QueryParameters.StartDateTime = QueryStartDateTime; + requestConfiguration.QueryParameters.EndDateTime = QueryEndDateTime; + AddRequestHeaders(requestConfiguration.Headers); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent.g.cs index eb19e055331..2f2c074d282 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent.g.cs @@ -21,6 +21,7 @@ public class GetMgGroupEventCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment.g.cs index 0b0c9d2f505..396c192daa3 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment.g.cs @@ -23,6 +23,7 @@ public class GetMgGroupEventAttachmentCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_Get.g.cs index 10ba84fcfd8..259a0fdb55a 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_Get.g.cs @@ -54,6 +54,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_List.g.cs index c10f05d06c6..e612821d4ee 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventAttachment_List.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventCalendar.g.cs index a4008902da3..af496a3800b 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventCalendar.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventCalendar.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventDelta.g.cs index 871d377d129..b3d98c0921e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventDelta.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventDelta.g.cs @@ -20,6 +20,14 @@ public class GetMgGroupEventDeltaCommand : GraphClientCmdlet { [Parameter(Mandatory = true, Position = 0, ParameterSetName = "DeltaSync")] public string GroupId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1, ParameterSetName = "DeltaSync", + HelpMessage = "Value for the 'startDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryStartDateTime { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2, ParameterSetName = "DeltaSync", + HelpMessage = "Value for the 'endDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryEndDateTime { get; set; } = string.Empty; @@ -114,6 +122,8 @@ protected override void ProcessRecord() if (Count.IsPresent) requestConfiguration.QueryParameters.Count = true; + requestConfiguration.QueryParameters.StartDateTime = QueryStartDateTime; + requestConfiguration.QueryParameters.EndDateTime = QueryEndDateTime; AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension.g.cs index 7f4d6825a25..cf7b110b988 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension.g.cs @@ -23,6 +23,7 @@ public class GetMgGroupEventExtensionCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_Get.g.cs index b57c24f136e..801e381df4e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_Get.g.cs @@ -54,6 +54,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_List.g.cs index 5e8e0539ec3..c270d36dcac 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventExtension_List.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstance.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstance.g.cs index 9d4a61e56ae..88c98c50304 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstance.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstance.g.cs @@ -21,6 +21,14 @@ public class GetMgGroupEventInstanceCommand : GraphClientCmdlet public string GroupId { get; set; } = string.Empty; [Parameter(Mandatory = true, Position = 1)] public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2, + HelpMessage = "Value for the 'startDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryStartDateTime { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3, + HelpMessage = "Value for the 'endDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryEndDateTime { get; set; } = string.Empty; @@ -94,6 +102,9 @@ protected override void ProcessRecord() if (Count.IsPresent) requestConfiguration.QueryParameters.Count = true; + requestConfiguration.QueryParameters.StartDateTime = QueryStartDateTime; + requestConfiguration.QueryParameters.EndDateTime = QueryEndDateTime; + AddRequestHeaders(requestConfiguration.Headers); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstanceDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstanceDelta.g.cs index bc19fd995a6..3a1d126b0fb 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstanceDelta.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEventInstanceDelta.g.cs @@ -22,6 +22,14 @@ public class GetMgGroupEventInstanceDeltaCommand : GraphClientCmdlet public string GroupId { get; set; } = string.Empty; [Parameter(Mandatory = true, Position = 1, ParameterSetName = "DeltaSync")] public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2, ParameterSetName = "DeltaSync", + HelpMessage = "Value for the 'startDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryStartDateTime { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3, ParameterSetName = "DeltaSync", + HelpMessage = "Value for the 'endDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryEndDateTime { get; set; } = string.Empty; @@ -116,6 +124,8 @@ protected override void ProcessRecord() if (Count.IsPresent) requestConfiguration.QueryParameters.Count = true; + requestConfiguration.QueryParameters.StartDateTime = QueryStartDateTime; + requestConfiguration.QueryParameters.EndDateTime = QueryEndDateTime; AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_Get.g.cs index 78d716bb719..afc66e3743a 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_List.g.cs index 92d23528d75..abf2fa85ac9 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgGroupEvent_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding.g.cs index 8f3f297e153..91586094d55 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding.g.cs @@ -19,6 +19,7 @@ public class GetMgPlaceAsBuildingCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn.g.cs index 81dd1b72177..a60a9829ecb 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsBuildingCheckInCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs index fc93ba4873b..b5cd67a4f81 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs index 5d4b1dac991..cedf42d9ba1 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingCheckIn_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild.g.cs index 20c08fb2a48..52f2008c460 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsBuildingChildCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_Get.g.cs index 42da3066299..5b865b6567e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_List.g.cs index afcaa0d6e8d..d75fb585ad1 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingChild_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMap.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMap.g.cs index b2557c959fc..97cf604cbe7 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMap.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMap.g.cs @@ -50,6 +50,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint.g.cs index 93661597773..336825c2ab1 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsBuildingMapFootprintCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_Get.g.cs index bca41e8e92f..65ccb92a76c 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_List.g.cs index 43e12003b48..87a9bf0a3df 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapFootprint_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel.g.cs index 5c591fc6c5a..8a1b93e642d 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsBuildingMapLevelCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture.g.cs index 1f9f1c9ce36..b4d92309ead 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture.g.cs @@ -23,6 +23,7 @@ public class GetMgPlaceAsBuildingMapLevelFixtureCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs index 21bd4abe6e8..9d79c103678 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_Get.g.cs @@ -54,6 +54,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_List.g.cs index bef61639654..5ecc8d58645 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelFixture_List.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection.g.cs index 0fd8ab7e6e4..41985652e24 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection.g.cs @@ -23,6 +23,7 @@ public class GetMgPlaceAsBuildingMapLevelSectionCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_Get.g.cs index 26a7151f281..6ae176931d0 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_Get.g.cs @@ -54,6 +54,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_List.g.cs index 2d1ada18c13..15dadae02fb 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelSection_List.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit.g.cs index ced317b3ef0..c6c495864ab 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit.g.cs @@ -23,6 +23,7 @@ public class GetMgPlaceAsBuildingMapLevelUnitCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs index 3b37f352bd7..f6e2a381021 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_Get.g.cs @@ -54,6 +54,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_List.g.cs index d3c8d6edc9f..bd0ef6d26ed 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevelUnit_List.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs index 944f75f55a1..d62d684db2e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs index 9cd0933bf8a..6b820fff66e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuildingMapLevel_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs index 99c4b595b79..0d2ea2354f4 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_Get.g.cs @@ -50,6 +50,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_List.g.cs index d0e02cf3f8c..108b92b5c99 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsBuilding_List.g.cs @@ -93,6 +93,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk.g.cs index a9f79b5cdc5..fb7eaa06f4c 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk.g.cs @@ -19,6 +19,7 @@ public class GetMgPlaceAsDeskCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn.g.cs index 330216ec4f0..e12f766de3e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsDeskCheckInCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs index cb924f7342a..fbf059814a8 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs index d03cbe3c4eb..5643c6bc777 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskCheckIn_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild.g.cs index af8c898e9c4..ad403760710 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsDeskChildCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_Get.g.cs index 8ac1ca66eac..fe82373a810 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_List.g.cs index 3b38462a1c9..414851d56e5 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDeskChild_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_Get.g.cs index a217fdb5a54..96a24b4ac9b 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_Get.g.cs @@ -50,6 +50,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_List.g.cs index aa03d433c6a..2ea4f17f41b 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsDesk_List.g.cs @@ -93,6 +93,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor.g.cs index d3911a48d16..c6f0506b6fb 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor.g.cs @@ -19,6 +19,7 @@ public class GetMgPlaceAsFloorCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn.g.cs index 0023491f98a..e31274f6c15 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsFloorCheckInCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs index 0b7037a1161..c9ab5cef7f5 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs index 7ac28209604..849523125c8 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorCheckIn_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild.g.cs index af3376c7300..75fb68fcd72 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsFloorChildCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_Get.g.cs index fe46de6f622..3473b7ccf03 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_List.g.cs index 2fcd6343c63..0602af4044c 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloorChild_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_Get.g.cs index 8a4c93c1c1b..22ab316edd0 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_Get.g.cs @@ -50,6 +50,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_List.g.cs index 8559c6774c3..ce564dec1e0 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsFloor_List.g.cs @@ -93,6 +93,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom.g.cs index 1d432c433d9..77a9eb1be3b 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom.g.cs @@ -19,6 +19,7 @@ public class GetMgPlaceAsRoomCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn.g.cs index 096bda286f2..6e32734f3e9 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsRoomCheckInCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs index 65938cdb036..433eebcd80c 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs index 525a4e6c19b..007d48dbeeb 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomCheckIn_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild.g.cs index 4e2d2a506ee..519a97977d5 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsRoomChildCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_Get.g.cs index 9399563f752..cb7fe241764 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_List.g.cs index 9bfb1e6e638..158755953be 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomChild_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList.g.cs index 5ef93f76fb3..096be8f8918 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList.g.cs @@ -19,6 +19,7 @@ public class GetMgPlaceAsRoomListCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn.g.cs index 3b03b27cc23..d70f6ce3314 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsRoomListCheckInCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs index 2017327a4b9..a66c09a5709 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs index 300e03903bb..b661c9461d7 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListCheckIn_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild.g.cs index 121a5cb877e..60c392be1b8 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsRoomListChildCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_Get.g.cs index 93b5f6fe5e3..c774aa70be6 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_List.g.cs index 9a480644d5b..634f6a05ac4 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListChild_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom.g.cs index 510afe02e91..d5499b38b5a 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsRoomListRoomCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn.g.cs index be04a4bbd18..17d558c71ae 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn.g.cs @@ -23,6 +23,7 @@ public class GetMgPlaceAsRoomListRoomCheckInCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs index 51e254075df..68952d1d1d4 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_Get.g.cs @@ -54,6 +54,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_List.g.cs index 1461be1cebc..c8b03ed40c2 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomCheckIn_List.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild.g.cs index 5c1560d79fd..72caca662e9 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild.g.cs @@ -23,6 +23,7 @@ public class GetMgPlaceAsRoomListRoomChildCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_Get.g.cs index 07e4a8e3c15..4a87e666fee 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_Get.g.cs @@ -54,6 +54,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_List.g.cs index f9667eee9b5..f6eec4cdbe6 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoomChild_List.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs index 5dbb631f2b4..63f1e8b8c71 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs index bbc06cd4f10..83231f63454 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListRoom_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace.g.cs index a905a38636f..3e391d09bff 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsRoomListWorkspaceCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn.g.cs index ff4878b5493..9f707d78e88 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn.g.cs @@ -23,6 +23,7 @@ public class GetMgPlaceAsRoomListWorkspaceCheckInCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs index dff5a5954ea..ae8087d425f 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_Get.g.cs @@ -54,6 +54,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs index 5e7eb3ffbcc..7f6079ccdc7 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceCheckIn_List.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild.g.cs index 6b1014b1e3f..6206d0b5b38 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild.g.cs @@ -23,6 +23,7 @@ public class GetMgPlaceAsRoomListWorkspaceChildCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_Get.g.cs index e4ac1cb4c48..4430b75947b 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_Get.g.cs @@ -54,6 +54,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_List.g.cs index 86e138cedf6..ffccf314df3 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspaceChild_List.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs index 3721dcbe31e..4ef06a3bb35 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs index 07a1b11ba75..9efc48b6a61 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomListWorkspace_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs index a8b1eaee2dc..288875e6612 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_Get.g.cs @@ -50,6 +50,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_List.g.cs index 5e990da95f9..3ed5fa5a285 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoomList_List.g.cs @@ -93,6 +93,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_Get.g.cs index fe4be35edf2..cd0fddedd5d 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_Get.g.cs @@ -50,6 +50,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_List.g.cs index 6bd77888176..aa5fd64b24b 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsRoom_List.g.cs @@ -93,6 +93,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection.g.cs index 67e494ee425..4b5d84e4e6b 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection.g.cs @@ -19,6 +19,7 @@ public class GetMgPlaceAsSectionCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn.g.cs index 9b14eba9f52..5e70d69c62a 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsSectionCheckInCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs index 7530c62dda5..c335bb3c2dc 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs index e8d0e3a9a95..94ae60a956e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionCheckIn_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild.g.cs index 4f2733d2cdd..efd5b954801 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsSectionChildCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_Get.g.cs index 1315ae64f59..ddeb7949980 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_List.g.cs index 127cc7b19f1..d655b907b7a 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSectionChild_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_Get.g.cs index 337ac58415e..2366c8293ae 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_Get.g.cs @@ -50,6 +50,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_List.g.cs index 8b2a90b1c17..e9cbeb76a29 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsSection_List.g.cs @@ -93,6 +93,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace.g.cs index 2e8d03f7edd..2950eae04cc 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace.g.cs @@ -19,6 +19,7 @@ public class GetMgPlaceAsWorkspaceCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn.g.cs index a1bb3652368..b841ebfff7c 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsWorkspaceCheckInCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs index 55ceb3d9c27..1f974255586 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs index 671ddd27886..266c04b1772 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceCheckIn_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild.g.cs index bcf0f58677a..f2df8608742 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceAsWorkspaceChildCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_Get.g.cs index 67066215c59..053c88846a9 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_List.g.cs index d91950afbd9..14371d25859 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspaceChild_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs index 711b2240a4c..0c6878ca1d4 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_Get.g.cs @@ -50,6 +50,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs index fb6d904008d..bf7d463b9bb 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceAsWorkspace_List.g.cs @@ -93,6 +93,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn.g.cs index 9efcc60b57d..528964a49d8 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceCheckInCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_Get.g.cs index df059337091..2d5a8f037f4 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_List.g.cs index 66104235fbb..89c0cee547e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceCheckIn_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild.g.cs index f696d7796b2..a797cb5244e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild.g.cs @@ -21,6 +21,7 @@ public class GetMgPlaceChildCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_Get.g.cs index 72bc8f5351f..a45984ce645 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_List.g.cs index a623f523e48..6f26fdbb610 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgPlaceChild_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar.g.cs index e94c79b5414..4228985cb86 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar.g.cs @@ -21,6 +21,7 @@ public class GetMgUserCalendarCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarEvent.g.cs index eac566911b2..dd70229dd85 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarEvent.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarEvent.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup.g.cs index 97ff5c490b9..54b4bbab142 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup.g.cs @@ -21,6 +21,7 @@ public class GetMgUserCalendarGroupCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs index 79071b576b2..8b341a344e4 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroupCalendar.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_Get.g.cs index 10dc39c9a78..ca4aa180ba3 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_List.g.cs index b55907d4ea4..254d6930596 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarGroup_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission.g.cs index 561ce25612b..46b182efc2d 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission.g.cs @@ -21,6 +21,7 @@ public class GetMgUserCalendarPermissionCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_Get.g.cs index 587e42ab107..e30aec89a37 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_List.g.cs index 6e3df63e7be..c3ffdf6694a 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarPermission_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarView.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarView.g.cs index b3b292ba06a..c191759128d 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarView.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendarView.g.cs @@ -19,6 +19,14 @@ public class GetMgUserCalendarViewCommand : GraphClientCmdlet { [Parameter(Mandatory = true, Position = 0)] public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1, + HelpMessage = "Value for the 'startDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryStartDateTime { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2, + HelpMessage = "Value for the 'endDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryEndDateTime { get; set; } = string.Empty; @@ -92,6 +100,9 @@ protected override void ProcessRecord() if (Count.IsPresent) requestConfiguration.QueryParameters.Count = true; + requestConfiguration.QueryParameters.StartDateTime = QueryStartDateTime; + requestConfiguration.QueryParameters.EndDateTime = QueryEndDateTime; + AddRequestHeaders(requestConfiguration.Headers); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_Get.g.cs index c77437fbc1b..3602be5f311 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_List.g.cs index 713166618c9..92e56cf2cef 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserCalendar_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendar.g.cs index b0d87d03564..7c88480dead 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendar.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendar.g.cs @@ -50,6 +50,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs index a22b4fa8ea1..80579b9be23 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserDefaultCalendarEvent.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent.g.cs index 245530664af..e45982f3a35 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent.g.cs @@ -21,6 +21,7 @@ public class GetMgUserEventCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment.g.cs index a3a27711104..90c511bbeb0 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment.g.cs @@ -23,6 +23,7 @@ public class GetMgUserEventAttachmentCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_Get.g.cs index 55f6e4ce8c2..dc53c322e72 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_Get.g.cs @@ -54,6 +54,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_List.g.cs index a835973f277..22be8566122 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventAttachment_List.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventCalendar.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventCalendar.g.cs index 07e033f5a20..5b24ed26740 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventCalendar.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventCalendar.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventDelta.g.cs index 503717b0c80..56ec4ab7afd 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventDelta.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventDelta.g.cs @@ -20,6 +20,14 @@ public class GetMgUserEventDeltaCommand : GraphClientCmdlet { [Parameter(Mandatory = true, Position = 0, ParameterSetName = "DeltaSync")] public string UserId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 1, ParameterSetName = "DeltaSync", + HelpMessage = "Value for the 'startDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryStartDateTime { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2, ParameterSetName = "DeltaSync", + HelpMessage = "Value for the 'endDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryEndDateTime { get; set; } = string.Empty; @@ -114,6 +122,8 @@ protected override void ProcessRecord() if (Count.IsPresent) requestConfiguration.QueryParameters.Count = true; + requestConfiguration.QueryParameters.StartDateTime = QueryStartDateTime; + requestConfiguration.QueryParameters.EndDateTime = QueryEndDateTime; AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension.g.cs index 5eb4651717b..c532b4681b7 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension.g.cs @@ -23,6 +23,7 @@ public class GetMgUserEventExtensionCommand : GraphClientCmdlet + [Parameter(Mandatory = false)] [Alias("Select")] public string[]? Property { get; set; } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_Get.g.cs index a07a6d797d7..2b28953e575 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_Get.g.cs @@ -54,6 +54,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_List.g.cs index 184a603c2ca..d0f3f7e35da 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventExtension_List.g.cs @@ -96,6 +96,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstance.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstance.g.cs index 1c6feb82bf4..b6e3e5b391a 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstance.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstance.g.cs @@ -21,6 +21,14 @@ public class GetMgUserEventInstanceCommand : GraphClientCmdlet public string UserId { get; set; } = string.Empty; [Parameter(Mandatory = true, Position = 1)] public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2, + HelpMessage = "Value for the 'startDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryStartDateTime { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3, + HelpMessage = "Value for the 'endDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryEndDateTime { get; set; } = string.Empty; @@ -94,6 +102,9 @@ protected override void ProcessRecord() if (Count.IsPresent) requestConfiguration.QueryParameters.Count = true; + requestConfiguration.QueryParameters.StartDateTime = QueryStartDateTime; + requestConfiguration.QueryParameters.EndDateTime = QueryEndDateTime; + AddRequestHeaders(requestConfiguration.Headers); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstanceDelta.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstanceDelta.g.cs index f15ff5ae80e..8c4b12f0cd3 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstanceDelta.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEventInstanceDelta.g.cs @@ -22,6 +22,14 @@ public class GetMgUserEventInstanceDeltaCommand : GraphClientCmdlet public string UserId { get; set; } = string.Empty; [Parameter(Mandatory = true, Position = 1, ParameterSetName = "DeltaSync")] public string EventId { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 2, ParameterSetName = "DeltaSync", + HelpMessage = "Value for the 'startDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryStartDateTime { get; set; } = string.Empty; + [Parameter(Mandatory = true, Position = 3, ParameterSetName = "DeltaSync", + HelpMessage = "Value for the 'endDateTime' query parameter.")] + [ValidateNotNullOrEmpty] + public string QueryEndDateTime { get; set; } = string.Empty; @@ -116,6 +124,8 @@ protected override void ProcessRecord() if (Count.IsPresent) requestConfiguration.QueryParameters.Count = true; + requestConfiguration.QueryParameters.StartDateTime = QueryStartDateTime; + requestConfiguration.QueryParameters.EndDateTime = QueryEndDateTime; AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_Get.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_Get.g.cs index 1b22f3698bb..ad6055fda66 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_Get.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_Get.g.cs @@ -52,6 +52,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_List.g.cs b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_List.g.cs index 017026966f2..5322eff83d6 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_List.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/GetMgUserEvent_List.g.cs @@ -94,6 +94,7 @@ protected override void ProcessRecord() + AddRequestHeaders(requestConfiguration.Headers); }).GetAwaiter().GetResult(); From 892cd76fb2d3e7c396b36fd480ddcec8c9dfeb2e Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Thu, 5 Nov 2026 17:35:28 -0800 Subject: [PATCH 22/24] Validate Calendar one-operation PATCH contract after merged framework Normally integrate powershell-v3 6475f3f5. Pin representative user/group Calendar PATCH sources to one typed mutation without an automatic GET, new readback switches or GET-only range inputs. Preserve output type, body/header binding, ShouldProcess, separate profile context, every original 136/137 suppression, required-range contracts and curated neighbors. The current strict six mappings and 210 combined targeted tests pass. Historical implicit-refetch/header-failure artifacts stay unchanged; fresh full profiles and positive PATCH204/PATCH200/explicit-GET transport acceptance follow. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../Calendar_directiveMigrationMap.json | 4 +- .../CalendarDirectiveMigrationTests.cs | 49 +++++++++++++++++++ 2 files changed, 51 insertions(+), 2 deletions(-) diff --git a/src/Calendar/wrapper/Calendar_directiveMigrationMap.json b/src/Calendar/wrapper/Calendar_directiveMigrationMap.json index ed02462aa29..2615bd61fb5 100644 --- a/src/Calendar/wrapper/Calendar_directiveMigrationMap.json +++ b/src/Calendar/wrapper/Calendar_directiveMigrationMap.json @@ -1,6 +1,6 @@ { "scope": "Only src/Calendar/Calendar.md; global and profile-local directives are excluded. Parameter aliases/transforms and schema/response directives remain deferred.", - "prerequisite": "Reviewed inventory, curated verbs, natural-ID variants, required-path ID alignment, adapted Authentication #3891 and mandatory native query support #3882 are normally merged in powershell-v3 target 4eb3ca3e1e21ca163337f59ebbcfb9d1820a920d. The existing literal inventory schema still validates the complete 136/137-operation source set with unchanged Calendar specs and no reserved Legacy fields. Module tests preserve separate profile context and audit actual effective required-query contracts: each profile declares 60 required queries on 30 operations, of which eight surviving GET operations require the 16 string QueryStartDateTime/QueryEndDateTime inputs; the other 22 operations remain suppressed by reviewed source/derived configuration. No Calendar variant grouping or selector change is introduced. Fresh acceptance uses normally packaged adapted Authentication 2.41.2 and retains complete legacy proof.", + "prerequisite": "Reviewed inventory, curated verbs, natural-ID variants, required-path ID alignment, adapted Authentication #3891, mandatory query support #3882 and one-operation PATCH behavior #3886 are normally merged in powershell-v3 target 6475f3f5beb4908d39ea356db32bf1e0fd3273cb. Complete 136/137-operation source fidelity, all existing suppressions/names and the eight surviving required-range GET operations per profile remain unchanged. Module tests preserve separate profile context and mandate one typed PATCH call with no automatic GET or new readback switch: PATCH204 returns no object and PATCH200 returns only its actual typed model. Required GET inputs remain independent; no Calendar variant grouping or selector change is introduced. Fresh acceptance uses normally packaged adapted Authentication 2.41.2, retains full legacy proof and tests required-query, service-root and mutation safety contracts.", "specBlobs": { "v1.0": "9371766a3e422aec32ba2b68d096e2fd4d115042", "beta": "5baa13cd8fe2804cea0ecf4a59f7815728b55a67" @@ -1662,5 +1662,5 @@ "v1.0": "7103e6e3a02ff3a5b63e577910ea0863516b468c", "beta": "8b01cbfc54946d1e5f49a760c43eb2b1663811dc" }, - "reviewedTargetCommit": "4eb3ca3e1e21ca163337f59ebbcfb9d1820a920d" + "reviewedTargetCommit": "6475f3f5beb4908d39ea356db32bf1e0fd3273cb" } diff --git a/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs b/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs index d0e6aefd516..731fa3241bd 100644 --- a/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs +++ b/tools/WrapperGenerator.Tests/CalendarDirectiveMigrationTests.cs @@ -308,6 +308,55 @@ public async Task EverySurvivingRequiredRangeContractUsesMandatoryNativeQueryInp } } + [Theory] + [InlineData("v1.0")] + [InlineData("beta")] + public async Task OrdinaryPatchKeepsItsTypedMutationWithoutAutomaticReadback(string profile) + { + var source = Spec(profile); + var subset = new OpenApiDocument { Info = source.Info, Components = source.Components, Paths = new OpenApiPaths() }; + foreach (var path in new[] { "/users/{user-id}/events/{event-id}", "/groups/{group-id}/calendar/events/{event-id}" }) + { + var original = source.Paths[path]; + subset.Paths.Add(path, new OpenApiPathItem + { + Parameters = original.Parameters, + Operations = new Dictionary + { + [HttpMethod.Patch] = original.Operations![HttpMethod.Patch], + }, + }); + } + var output = Path.Combine(Path.GetTempPath(), "calendar-patch-contract-tests", Guid.NewGuid().ToString("N")); + Directory.CreateDirectory(output); + try + { + await new PowerShellWrapperGenerationService(subset, new GeneratorConfig("Test.Client", output), + NullLogger.Instance, apiVersion: profile).GenerateAsync(CancellationToken.None); + var files = Directory.GetFiles(output, "*.g.cs"); + Assert.Equal(2, files.Length); + foreach (var file in files) + { + var text = File.ReadAllText(file); + Assert.Single(Regex.Matches(text, @"\.PatchAsync\(")); + Assert.DoesNotContain(".GetAsync(", text); + Assert.DoesNotContain("re-fetch", text); + Assert.DoesNotContain("QueryStartDateTime", text); + Assert.DoesNotContain("QueryEndDateTime", text); + Assert.DoesNotContain("PassThru", text); + Assert.DoesNotContain("ReadBack", text); + Assert.Contains("SupportsShouldProcess = true", text); + Assert.Contains("AddRequestHeaders(requestConfiguration.Headers)", text); + Assert.Contains("if (result is not null)", text); + Assert.Contains("WriteObject(result)", text); + Assert.Contains($"GetRequestAdapter(\"{profile}\")", text); + Assert.Contains("body.Subject = Subject", text); + Assert.Contains("[OutputType(typeof(Test.Client.Models.Event))]", text); + } + } + finally { Directory.Delete(output, recursive: true); } + } + [Theory] [InlineData("v1.0")] [InlineData("beta")] From 2346f61bbc652548e8ef6f2c62b5f7b461c1aa38 Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Thu, 5 Nov 2026 18:02:59 -0800 Subject: [PATCH 23/24] Regenerate Calendar v1.0 for one-operation PATCH results Run full queued Kiota 1.36.1 and wrapper Release generation on normally merged 6475f3f5 with adapted Authentication 2.41.2, then force a fresh no-incremental assembly build. Full pipeline exit 0/status OK in 129.6 seconds; normal manifest imports 268 commands/routes. All original 136 suppressions, mandatory query/default/neighbor contracts remain valid. Regenerated PATCH sources no longer issue implicit GET; real Global/USGov authenticated probes verify PATCH204 succeeds with no object/one PATCH despite a sibling GET403, PATCH200 returns its actual typed model in one PATCH, and caller-explicit GET has independent query/header/error/results. Client, projects and locks regenerate unchanged; preserve the complete combined per-profile generation boundary and historical evidence. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../v1.0/Cmdlets/UpdateMgGroupCalendarEvent.g.cs | 14 -------------- .../Cmdlets/UpdateMgGroupCalendarPermission.g.cs | 14 -------------- .../wrapper/v1.0/Cmdlets/UpdateMgGroupEvent.g.cs | 14 -------------- .../v1.0/Cmdlets/UpdateMgGroupEventExtension.g.cs | 14 -------------- .../wrapper/v1.0/Cmdlets/UpdateMgPlace.g.cs | 1 - .../Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs | 14 -------------- .../v1.0/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs | 14 -------------- .../UpdateMgPlaceAsBuildingMapFootprint.g.cs | 14 -------------- .../Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs | 14 -------------- .../UpdateMgPlaceAsBuildingMapLevelFixture.g.cs | 14 -------------- .../UpdateMgPlaceAsBuildingMapLevelSection.g.cs | 14 -------------- .../UpdateMgPlaceAsBuildingMapLevelUnit.g.cs | 14 -------------- .../v1.0/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs | 14 -------------- .../v1.0/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs | 14 -------------- .../v1.0/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs | 14 -------------- .../Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs | 14 -------------- .../v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs | 14 -------------- .../UpdateMgPlaceAsRoomListRoomCheckIn.g.cs | 14 -------------- .../Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs | 14 -------------- .../UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs | 14 -------------- .../Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs | 14 -------------- .../Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs | 14 -------------- .../wrapper/v1.0/Cmdlets/UpdateMgPlaceCheckIn.g.cs | 14 -------------- .../v1.0/Cmdlets/UpdateMgUserCalendarGroup.g.cs | 14 -------------- .../Cmdlets/UpdateMgUserCalendarPermission.g.cs | 14 -------------- .../wrapper/v1.0/Cmdlets/UpdateMgUserEvent.g.cs | 14 -------------- .../v1.0/Cmdlets/UpdateMgUserEventExtension.g.cs | 14 -------------- 27 files changed, 365 deletions(-) diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarEvent.g.cs index 21b246163fc..fb4290d580c 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarEvent.g.cs @@ -299,20 +299,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Groups[GroupId].Calendar.Events[EventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, EventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarPermission.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarPermission.g.cs index fbc1690cbcb..58b7798a6d4 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarPermission.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupCalendarPermission.g.cs @@ -83,20 +83,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Groups[GroupId].Calendar.CalendarPermissions[CalendarPermissionId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CalendarPermissionId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEvent.g.cs index 146d8eb70e4..9038a7d8fda 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEvent.g.cs @@ -299,20 +299,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Groups[GroupId].Events[EventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, EventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEventExtension.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEventExtension.g.cs index 02b6cb9644d..0689069771a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEventExtension.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgGroupEventExtension.g.cs @@ -59,20 +59,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Groups[GroupId].Events[EventId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, ExtensionId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlace.g.cs index dd308325441..60de0485772 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlace.g.cs @@ -105,7 +105,6 @@ protected override void ProcessRecord() return; } - if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs index 0a7c724b6df..a3094441d7e 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs @@ -71,20 +71,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphBuilding.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs index 5f65318fc75..202a9ee97a8 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs @@ -65,20 +65,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphBuilding.Map.GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, PlaceId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs index 5874675df74..3a5b717d079 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs @@ -61,20 +61,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphBuilding.Map.Footprints[FootprintMapId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, FootprintMapId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs index a3e35729d89..f29b1738f4a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs @@ -67,20 +67,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, LevelMapId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs index 75783ee9bac..4369b0f9635 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs @@ -69,20 +69,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Fixtures[FixtureMapId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, FixtureMapId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs index 376abf7b326..cfa5eea87cc 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs @@ -69,20 +69,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Sections[SectionMapId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, SectionMapId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs index 31f6421cfee..8d997e6b546 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs @@ -69,20 +69,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Units[UnitMapId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, UnitMapId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs index 5efaa4addce..a871bf2a4f7 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs @@ -71,20 +71,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphDesk.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs index b367d1240f5..530079bab1a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs @@ -71,20 +71,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphFloor.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs index dff0e4a4fb5..73baff188aa 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs @@ -71,20 +71,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphRoom.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs index 2b8ee697553..20901452bd0 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs @@ -71,20 +71,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphRoomList.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs index d4fb4a819a6..53f57904f83 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs @@ -173,20 +173,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphRoomList.Rooms[RoomId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, RoomId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs index 7a973b306eb..fc581571689 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs @@ -73,20 +73,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphRoomList.Rooms[RoomId].CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs index 0eae159bc67..2dde8f70ec7 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs @@ -137,20 +137,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, WorkspaceId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs index 02761ab39b9..4e9d664c0dd 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs @@ -73,20 +73,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs index a23194ce511..c0a706a32ca 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs @@ -71,20 +71,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphSection.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs index 0ce3c59202a..4befeb4d965 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs @@ -71,20 +71,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphWorkspace.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceCheckIn.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceCheckIn.g.cs index 0d7478c3b3a..b843e752578 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceCheckIn.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgPlaceCheckIn.g.cs @@ -71,20 +71,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarGroup.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarGroup.g.cs index f6e385709d8..bc93c146ace 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarGroup.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarGroup.g.cs @@ -73,20 +73,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CalendarGroupId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarPermission.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarPermission.g.cs index c73b96e0148..f6694af855f 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarPermission.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserCalendarPermission.g.cs @@ -83,20 +83,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Users[UserId].Calendar.CalendarPermissions[CalendarPermissionId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CalendarPermissionId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEvent.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEvent.g.cs index 7e771884c0a..a9238955d27 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEvent.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEvent.g.cs @@ -299,20 +299,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Users[UserId].Events[EventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, EventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEventExtension.g.cs b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEventExtension.g.cs index 15d00c4ad7f..3a4ce91658a 100644 --- a/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEventExtension.g.cs +++ b/src/Calendar/wrapper/v1.0/Cmdlets/UpdateMgUserEventExtension.g.cs @@ -59,20 +59,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Users[UserId].Events[EventId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, ExtensionId); - return; - } - } if (result is not null) WriteObject(result); } From 8679ec23c0eda92cbf233fb65c342ad2235d19ba Mon Sep 17 00:00:00 2001 From: Ramses Sanchez Hernandez Date: Thu, 5 Nov 2026 18:30:32 -0800 Subject: [PATCH 24/24] Regenerate Calendar beta for one-operation PATCH results Run full queued Kiota 1.36.1 and wrapper Release generation on normally merged 6475f3f5 using adapted Authentication 2.41.2, then explicitly rebuild final assemblies with no incremental reuse. Actual full run exit 0/status OK in 289.3 seconds; normal manifest imports 312 commands/routes. Preserve every original 137 selected suppression, eight required-range GET contracts and all default/neighbor names. Regenerated PATCH sources remove automatic GET while retaining typed body/header/safety/output metadata and correct beta service root. Positive actual authenticated tests cover PATCH204 no-object/one-PATCH despite sibling GET403, PATCH200 actual typed model in one PATCH, independent explicit GET and unchanged required query behavior. Client, projects and locks regenerate unchanged. Offline datastore isolation correction is artifact-only and does not change or rerun generated production inputs. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../beta/Cmdlets/UpdateMgGroupCalendarEvent.g.cs | 14 -------------- .../Cmdlets/UpdateMgGroupCalendarPermission.g.cs | 14 -------------- .../wrapper/beta/Cmdlets/UpdateMgGroupEvent.g.cs | 14 -------------- .../beta/Cmdlets/UpdateMgGroupEventExtension.g.cs | 14 -------------- .../wrapper/beta/Cmdlets/UpdateMgPlace.g.cs | 1 - .../Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs | 14 -------------- .../beta/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs | 14 -------------- .../UpdateMgPlaceAsBuildingMapFootprint.g.cs | 14 -------------- .../Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs | 14 -------------- .../UpdateMgPlaceAsBuildingMapLevelFixture.g.cs | 14 -------------- .../UpdateMgPlaceAsBuildingMapLevelSection.g.cs | 14 -------------- .../UpdateMgPlaceAsBuildingMapLevelUnit.g.cs | 14 -------------- .../beta/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs | 14 -------------- .../beta/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs | 14 -------------- .../beta/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs | 14 -------------- .../Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs | 14 -------------- .../beta/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs | 14 -------------- .../UpdateMgPlaceAsRoomListRoomCheckIn.g.cs | 14 -------------- .../Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs | 14 -------------- .../UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs | 14 -------------- .../Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs | 14 -------------- .../Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs | 14 -------------- .../wrapper/beta/Cmdlets/UpdateMgPlaceCheckIn.g.cs | 14 -------------- .../beta/Cmdlets/UpdateMgUserCalendarGroup.g.cs | 14 -------------- .../Cmdlets/UpdateMgUserCalendarPermission.g.cs | 14 -------------- .../wrapper/beta/Cmdlets/UpdateMgUserEvent.g.cs | 14 -------------- .../beta/Cmdlets/UpdateMgUserEventExtension.g.cs | 14 -------------- 27 files changed, 365 deletions(-) diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarEvent.g.cs index 74e9ef26223..c7b0c6658f5 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarEvent.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarEvent.g.cs @@ -311,20 +311,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Groups[GroupId].Calendar.Events[EventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, EventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarPermission.g.cs index 9eb7e64c2e8..176d1b4b5b3 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarPermission.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupCalendarPermission.g.cs @@ -83,20 +83,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Groups[GroupId].Calendar.CalendarPermissions[CalendarPermissionId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CalendarPermissionId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEvent.g.cs index 630a4af7d08..d8fcd35d826 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEvent.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEvent.g.cs @@ -311,20 +311,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Groups[GroupId].Events[EventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, EventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEventExtension.g.cs index 7fdc3e3417b..bfe1869991f 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEventExtension.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgGroupEventExtension.g.cs @@ -59,20 +59,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Groups[GroupId].Events[EventId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, ExtensionId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlace.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlace.g.cs index e0bd1ace502..95ab75847cd 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlace.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlace.g.cs @@ -111,7 +111,6 @@ protected override void ProcessRecord() return; } - if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs index 4bf46a9a8c9..b19b0474e19 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingCheckIn.g.cs @@ -71,20 +71,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphBuilding.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs index 5c077fd8011..a319341de74 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMap.g.cs @@ -65,20 +65,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphBuilding.Map.GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, PlaceId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs index 3d5728a25ad..f050c1f6de5 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapFootprint.g.cs @@ -61,20 +61,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphBuilding.Map.Footprints[FootprintMapId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, FootprintMapId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs index 1abba819198..9d1354a211e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevel.g.cs @@ -67,20 +67,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, LevelMapId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs index 07fcabc9f72..277119034c5 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelFixture.g.cs @@ -69,20 +69,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Fixtures[FixtureMapId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, FixtureMapId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs index 56fb6840fe2..16bfc687537 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelSection.g.cs @@ -69,20 +69,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Sections[SectionMapId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, SectionMapId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs index 78a30ee0cc8..3bf918495f4 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsBuildingMapLevelUnit.g.cs @@ -69,20 +69,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphBuilding.Map.Levels[LevelMapId].Units[UnitMapId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, UnitMapId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs index a44dddf9f34..62c264ae4bc 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsDeskCheckIn.g.cs @@ -71,20 +71,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphDesk.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs index 112cbf630e1..246d996747a 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsFloorCheckIn.g.cs @@ -71,20 +71,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphFloor.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs index 2ec587201f7..566c0efb485 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomCheckIn.g.cs @@ -71,20 +71,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphRoom.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs index 7c23eacf1e8..2925dbde116 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListCheckIn.g.cs @@ -71,20 +71,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphRoomList.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs index 6825c1c4542..29c31798ea3 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoom.g.cs @@ -185,20 +185,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphRoomList.Rooms[RoomId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, RoomId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs index 8aa740d4540..b584bf5bad3 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListRoomCheckIn.g.cs @@ -73,20 +73,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphRoomList.Rooms[RoomId].CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs index ad509648d91..f5f768d3fa8 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspace.g.cs @@ -161,20 +161,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, WorkspaceId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs index d4b279519e1..f570b656558 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsRoomListWorkspaceCheckIn.g.cs @@ -73,20 +73,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphRoomList.Workspaces[WorkspaceId].CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs index ac9f6bb9c46..1db6cfac2bb 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsSectionCheckIn.g.cs @@ -71,20 +71,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphSection.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs index e428e13a4b7..c385b8e2433 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceAsWorkspaceCheckIn.g.cs @@ -71,20 +71,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].GraphWorkspace.CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceCheckIn.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceCheckIn.g.cs index 019885627f1..4b97cd33582 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceCheckIn.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgPlaceCheckIn.g.cs @@ -71,20 +71,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Places[PlaceId].CheckIns[CheckInClaimCalendarEventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CheckInClaimCalendarEventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroup.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroup.g.cs index 7f838af6fc2..5ce3385177e 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroup.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarGroup.g.cs @@ -73,20 +73,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Users[UserId].CalendarGroups[CalendarGroupId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CalendarGroupId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarPermission.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarPermission.g.cs index 608dcafd60d..0b3ec58f440 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarPermission.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserCalendarPermission.g.cs @@ -83,20 +83,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Users[UserId].Calendar.CalendarPermissions[CalendarPermissionId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, CalendarPermissionId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEvent.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEvent.g.cs index acff0ae5db7..c68b1f8bc26 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEvent.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEvent.g.cs @@ -311,20 +311,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Users[UserId].Events[EventId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, EventId); - return; - } - } if (result is not null) WriteObject(result); } diff --git a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEventExtension.g.cs b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEventExtension.g.cs index 8926ec6ed4b..81780db4414 100644 --- a/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEventExtension.g.cs +++ b/src/Calendar/wrapper/beta/Cmdlets/UpdateMgUserEventExtension.g.cs @@ -59,20 +59,6 @@ protected override void ProcessRecord() return; } - - if (result is null) - { - WriteVerbose("PATCH succeeded with no response body, re-fetching the updated resource."); - try - { - result = client.Users[UserId].Events[EventId].Extensions[ExtensionId].GetAsync().GetAwaiter().GetResult(); - } - catch (Exception ex) when (ex is not PipelineStoppedException && ex is not OperationCanceledException) - { - ThrowGraphRequestFailed(ex, ExtensionId); - return; - } - } if (result is not null) WriteObject(result); }