From c2bbe969c6fd916ca08790d121999124b34f1332 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 27 Feb 2024 11:06:38 +0000 Subject: [PATCH 1/2] Update generated files with build 137240 --- .../ResourceConnectionItemRequestBuilder.cs | 14 +- .../Item/UpdatableAssetItemRequestBuilder.cs | 6 +- .../ComplianceChangeItemRequestBuilder.cs | 6 +- .../RegistrationRequestBuilder.cs | 6 +- .../DashboardCardsRequestBuilder.cs | 6 +- ...shboardCardDefinitionItemRequestBuilder.cs | 6 +- .../Item/ApplicationItemRequestBuilder.cs | 10 + ...entityCredentialsWithNameRequestBuilder.cs | 203 +++++++++++++++++ .../Generated/BaseGraphServiceClient.cs | 10 + .../Item/Replies/RepliesRequestBuilder.cs | 6 +- .../PermissionGrantsRequestBuilder.cs | 6 +- .../Tabs/Item/TeamsTabItemRequestBuilder.cs | 4 +- .../RegistrationRequestBuilder.cs | 6 +- .../DirectoryRequestBuilder.cs | 10 + .../Count/CountRequestBuilder.cs | 107 +++++++++ .../ExternalUserProfilesRequestBuilder.cs | 210 +++++++++++++++++ .../ExternalUserProfileItemRequestBuilder.cs | 201 +++++++++++++++++ .../Count/CountRequestBuilder.cs | 107 +++++++++ ...ngExternalUserProfileItemRequestBuilder.cs | 201 +++++++++++++++++ ...ndingExternalUserProfilesRequestBuilder.cs | 211 ++++++++++++++++++ .../RetentionLabelRequestBuilder.cs | 6 +- .../Workbook/Names/NamesRequestBuilder.cs | 2 +- .../Item/Columns/ColumnsRequestBuilder.cs | 2 +- .../Tables/Item/Rows/RowsRequestBuilder.cs | 2 +- .../Columns/ColumnsRequestBuilder.cs | 2 +- .../Rows/RowsRequestBuilder.cs | 2 +- .../Workbook/Tables/TablesRequestBuilder.cs | 2 +- .../Item/Charts/ChartsRequestBuilder.cs | 2 +- .../Item/Series/SeriesRequestBuilder.cs | 2 +- .../Series/SeriesRequestBuilder.cs | 2 +- .../Series/SeriesRequestBuilder.cs | 2 +- .../Item/Columns/ColumnsRequestBuilder.cs | 2 +- .../Tables/Item/Rows/RowsRequestBuilder.cs | 2 +- .../Columns/ColumnsRequestBuilder.cs | 2 +- .../Rows/RowsRequestBuilder.cs | 2 +- .../Worksheets/WorksheetsRequestBuilder.cs | 2 +- .../AssignmentSettingsRequestBuilder.cs | 10 + .../DefaultGradingSchemeRequestBuilder.cs | 108 +++++++++ ...cationGradingCategoryItemRequestBuilder.cs | 5 +- .../Count/CountRequestBuilder.cs | 107 +++++++++ .../GradingSchemesRequestBuilder.cs | 209 +++++++++++++++++ ...ducationGradingSchemeItemRequestBuilder.cs | 198 ++++++++++++++++ .../Item/Activate/ActivateRequestBuilder.cs | 4 +- .../EducationAssignmentItemRequestBuilder.cs | 11 +- .../GradingSchemeRequestBuilder.cs | 108 +++++++++ .../Item/Activate/ActivateRequestBuilder.cs | 4 +- .../EducationAssignmentItemRequestBuilder.cs | 5 + .../GradingSchemeRequestBuilder.cs | 108 +++++++++ .../Item/Activate/ActivateRequestBuilder.cs | 4 +- .../EducationAssignmentItemRequestBuilder.cs | 5 + .../GradingSchemeRequestBuilder.cs | 108 +++++++++ .../Item/EducationUserItemRequestBuilder.cs | 6 +- .../DataConnectorsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../ConversationsRequestBuilder.cs | 6 +- .../Item/ConversationItemRequestBuilder.cs | 12 +- .../Threads/Item/Reply/ReplyRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Groups/Item/Photo/PhotoRequestBuilder.cs | 20 +- .../Item/ProfilePhotoItemRequestBuilder.cs | 8 +- .../Item/Lists/Item/ListItemRequestBuilder.cs | 8 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Item/Team/Photo/PhotoRequestBuilder.cs | 20 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- .../ConversationThreadItemRequestBuilder.cs | 14 +- .../Threads/Item/Reply/ReplyRequestBuilder.cs | 6 +- .../Item/NamedLocationItemRequestBuilder.cs | 6 +- ...thenticationExtensionItemRequestBuilder.cs | 8 +- ...ustomCalloutExtensionItemRequestBuilder.cs | 8 +- .../Item/RiskDetectionItemRequestBuilder.cs | 8 +- .../RiskyUsers/RiskyUsersRequestBuilder.cs | 8 +- .../ResetPasswordRequestBuilder.cs | 5 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- .../PermissionGrantsRequestBuilder.cs | 6 +- .../Tabs/Item/TeamsTabItemRequestBuilder.cs | 4 +- .../CloudClipboardRequestBuilder.cs | 203 +++++++++++++++++ .../Items/Count/CountRequestBuilder.cs | 107 +++++++++ .../CloudClipboardItemItemRequestBuilder.cs | 198 ++++++++++++++++ .../Items/ItemsRequestBuilder.cs | 209 +++++++++++++++++ .../Item/Photo/PhotoRequestBuilder.cs | 20 +- .../Item/Photo/PhotoRequestBuilder.cs | 20 +- .../Item/Photo/PhotoRequestBuilder.cs | 20 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../ChildFoldersRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Item/MailFolderItemRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Generated/Me/MeRequestBuilder.cs | 13 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Item/MessageItemRequestBuilder.cs | 2 +- .../RegistrationRequestBuilder.cs | 6 +- .../Generated/Me/Photo/PhotoRequestBuilder.cs | 20 +- .../Item/ProfilePhotoItemRequestBuilder.cs | 8 +- .../Me/Settings/SettingsRequestBuilder.cs | 5 + .../Windows/Count/CountRequestBuilder.cs | 107 +++++++++ .../Instances/Count/CountRequestBuilder.cs | 107 +++++++++ .../Item/Instances/InstancesRequestBuilder.cs | 209 +++++++++++++++++ ...indowsSettingInstanceItemRequestBuilder.cs | 198 ++++++++++++++++ .../Item/WindowsSettingItemRequestBuilder.cs | 203 +++++++++++++++++ .../Settings/Windows/WindowsRequestBuilder.cs | 209 +++++++++++++++++ .../Generated/Models/AdministrativeUnit.cs | 48 ++++ .../Models/AttendeeNotificationInfo.cs | 4 +- .../Generated/Models/BookingAppointment.cs | 7 + .../Models/BookingSchedulingPolicy.cs | 32 +++ .../Generated/Models/BookingService.cs | 7 + .../Generated/Models/BookingsAvailability.cs | 93 ++++++++ .../Models/BookingsAvailabilityWindow.cs | 56 +++++ .../Models/BookingsServiceAvailabilityType.cs | 15 ++ .../Generated/Models/CloudClipboardItem.cs | 72 ++++++ .../CloudClipboardItemCollectionResponse.cs | 51 +++++ .../Models/CloudClipboardItemPayload.cs | 98 ++++++++ .../Generated/Models/CloudClipboardRoot.cs | 51 +++++ .../Models/CommunicationsGuestIdentity.cs | 16 ++ .../Models/ConditionalAccessConditionSet.cs | 2 +- .../Models/DailyUserInsightMetricsRoot.cs | 2 +- .../Models/DelegatedAdminRelationship.cs | 2 +- ...entConfigurationChoiceSettingDefinition.cs | 4 +- ...ConfigurationReferredSettingInformation.cs | 2 +- ...anagementConfigurationSettingDefinition.cs | 14 +- ...urationSettingGroupCollectionDefinition.cs | 4 +- ...nfigurationStringSettingValueDefinition.cs | 6 +- .../Generated/Models/DirectoryObject.cs | 3 + .../Generated/Models/DirectoryObject1.cs | 32 +++ .../Models/DriveItemSourceApplication.cs | 6 + .../Models/DriveItemUploadableProperties.cs | 32 +++ .../Generated/Models/EducationAssignment.cs | 18 +- .../Models/EducationAssignmentSettings.cs | 32 +++ .../Models/EducationGradingScheme.cs | 74 ++++++ ...ducationGradingSchemeCollectionResponse.cs | 51 +++++ .../Models/EducationGradingSchemeGrade.cs | 96 ++++++++ .../Generated/Models/Entity.cs | 11 + .../Generated/Models/ExternalProfile.cs | 195 ++++++++++++++++ .../Generated/Models/ExternalUserProfile.cs | 41 ++++ .../ExternalUserProfileCollectionResponse.cs | 51 +++++ .../Generated/Models/KeyValue.cs | 4 +- .../Models/MediaSourceContentCategory.cs | 10 + .../Models/MonthlyUserInsightMetricsRoot.cs | 2 +- .../Generated/Models/Networkaccess/Alert.cs | 16 ++ .../Networkaccess/AlertCollectionResponse.cs | 51 +++++ .../Models/Networkaccess/AlertType.cs | 2 + .../Models/Networkaccess/DeviceCategory.cs | 2 + .../Models/Networkaccess/NetworkAccessRoot.cs | 16 ++ .../Networkaccess/RelatedDestination.cs | 87 ++++++++ .../Models/Networkaccess/RelatedDevice.cs | 57 +++++ .../Models/Networkaccess/RelatedProcess.cs | 64 ++++++ .../Networkaccess/RelatedRemoteNetwork.cs | 57 +++++ .../Models/Networkaccess/RelatedResource.cs | 76 +++++++ .../Models/Networkaccess/RelatedTenant.cs | 57 +++++ .../RelatedThreatIntelligence.cs | 48 ++++ .../Networkaccess/RelatedWebCategory.cs | 57 +++++ .../Generated/Models/OnlineMeeting.cs | 16 ++ .../Partners/Billing/BilledReconciliation.cs | 35 +++ .../Models/Partners/Billing/Billing.cs | 16 ++ .../Partners/Billing/BillingReconciliation.cs | 51 +++++ .../Models/PendingExternalUserProfile.cs | 41 ++++ ...ngExternalUserProfileCollectionResponse.cs | 51 +++++ .../Generated/Models/PermissionGrantPolicy.cs | 7 + src/Microsoft.Graph/Generated/Models/Place.cs | 16 ++ .../PlannerTaskCompletionRequirements.cs | 2 + .../Generated/Models/RecommendationBase.cs | 2 +- .../Generated/Models/ResourceScopeType.cs | 17 ++ .../Generated/Models/Schedule.cs | 18 +- .../Generated/Models/SchedulingGroup.cs | 2 +- .../Generated/Models/Security/Alert.cs | 12 +- .../DetectionRuleCollectionResponse.cs | 51 +++++ .../Generated/Models/Security/Incident.cs | 4 +- .../Generated/Models/Security/RulesRoot.cs | 51 +++++ .../TeamsAppDashboardCardBotConfiguration.cs | 2 +- .../TeamsAppDashboardCardContentSource.cs | 4 +- .../Models/TeamsAppDashboardCardDefinition.cs | 12 +- .../Models/TeamsAppDashboardCardIcon.cs | 4 +- .../Generated/Models/TeamsAppDefinition.cs | 6 +- .../Generated/Models/TimeOffReason.cs | 2 +- src/Microsoft.Graph/Generated/Models/User.cs | 16 ++ .../Generated/Models/UserSettings.cs | 16 ++ .../Generated/Models/UserTeamwork.cs | 4 +- .../Generated/Models/VirtualEventPresenter.cs | 30 +-- .../Models/VirtualEventPresenterDetails.cs | 16 ++ .../Generated/Models/VirtualEventTownhall.cs | 12 +- .../Generated/Models/WindowsSetting.cs | 90 ++++++++ .../WindowsSettingCollectionResponse.cs | 51 +++++ .../Models/WindowsSettingInstance.cs | 72 ++++++ ...indowsSettingInstanceCollectionResponse.cs | 51 +++++ .../Generated/Models/WindowsSettingType.cs | 13 ++ ...ndowsUniversalAppXAppAssignmentSettings.cs | 2 +- .../WindowsUpdates/ApplicableContent.cs | 2 +- .../ApplicableContentDeviceMatch.cs | 2 +- .../WindowsUpdates/DeploymentAudience.cs | 2 +- .../Alerts/AlertsRequestBuilder.cs | 209 +++++++++++++++++ .../Alerts/Count/CountRequestBuilder.cs | 107 +++++++++ .../Alerts/Item/AlertItemRequestBuilder.cs | 198 ++++++++++++++++ .../NetworkAccessRequestBuilder.cs | 5 + .../GraphRoomListRequestBuilder.cs | 20 ++ .../RoomsWithPlaceIdRequestBuilder.cs | 200 +++++++++++++++++ .../WorkspacesWithPlaceIdRequestBuilder.cs | 200 +++++++++++++++++ .../PlacesWithPlaceIdRequestBuilder.cs} | 75 ++++--- .../Partners/Billing/BillingRequestBuilder.cs | 5 + .../Billed/BilledRequestBuilder.cs | 203 +++++++++++++++++ .../ExportPostRequestBody.cs | 74 ++++++ ...raphPartnersBillingExportRequestBuilder.cs | 89 ++++++++ .../ReconciliationRequestBuilder.cs | 203 +++++++++++++++++ .../ActiveUsersBreakdownRequestBuilder.cs | 5 + .../Count/CountRequestBuilder.cs | 3 + ...eUsersBreakdownMetricItemRequestBuilder.cs | 9 +- .../Count/CountRequestBuilder.cs | 3 + ...nactiveUsersByApplicationRequestBuilder.cs | 5 + ...rsByApplicationMetricItemRequestBuilder.cs | 3 + .../ActiveUsersBreakdownRequestBuilder.cs | 5 + .../Count/CountRequestBuilder.cs | 3 + ...eUsersBreakdownMetricItemRequestBuilder.cs | 9 +- .../Count/CountRequestBuilder.cs | 3 + ...nactiveUsersByApplicationRequestBuilder.cs | 5 + ...rsByApplicationMetricItemRequestBuilder.cs | 3 + .../RiskDetectionsRequestBuilder.cs | 8 +- .../Item/AuditLogQueryItemRequestBuilder.cs | 7 +- .../Item/Records/RecordsRequestBuilder.cs | 7 +- .../AuditLog/Queries/QueriesRequestBuilder.cs | 12 +- .../Count/CountRequestBuilder.cs | 107 +++++++++ .../DetectionRulesRequestBuilder.cs | 210 +++++++++++++++++ .../Item/DetectionRuleItemRequestBuilder.cs | 198 ++++++++++++++++ .../Security/Rules/RulesRequestBuilder.cs | 203 +++++++++++++++++ .../Security/SecurityRequestBuilder.cs | 5 + ...entityCredentialsWithNameRequestBuilder.cs | 200 +++++++++++++++++ .../ServicePrincipalItemRequestBuilder.cs | 10 + .../Item/Lists/Item/ListItemRequestBuilder.cs | 8 +- .../ProfilePhotoRequestBuilder.cs | 130 ----------- ...VirtualEventPresenterItemRequestBuilder.cs | 5 - .../ProfilePhotoRequestBuilder.cs | 130 ----------- ...VirtualEventPresenterItemRequestBuilder.cs | 5 - .../ProfilePhotoRequestBuilder.cs | 130 ----------- ...VirtualEventPresenterItemRequestBuilder.cs | 5 - .../ProfilePhotoRequestBuilder.cs | 130 ----------- ...VirtualEventPresenterItemRequestBuilder.cs | 5 - .../ProfilePhotoRequestBuilder.cs | 130 ----------- ...VirtualEventPresenterItemRequestBuilder.cs | 5 - ...VirtualEventPresenterItemRequestBuilder.cs | 5 - .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Photo/PhotoRequestBuilder.cs | 20 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Teams/Item/Photo/PhotoRequestBuilder.cs | 20 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Photo/PhotoRequestBuilder.cs | 20 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- .../MultiTenantOrganizationRequestBuilder.cs | 6 +- .../ResetPasswordRequestBuilder.cs | 5 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Item/Replies/RepliesRequestBuilder.cs | 6 +- .../PermissionGrantsRequestBuilder.cs | 6 +- .../Tabs/Item/TeamsTabItemRequestBuilder.cs | 4 +- .../CloudClipboardRequestBuilder.cs | 203 +++++++++++++++++ .../Items/Count/CountRequestBuilder.cs | 107 +++++++++ .../CloudClipboardItemItemRequestBuilder.cs | 198 ++++++++++++++++ .../Items/ItemsRequestBuilder.cs | 209 +++++++++++++++++ .../Item/Photo/PhotoRequestBuilder.cs | 20 +- .../Item/Photo/PhotoRequestBuilder.cs | 20 +- .../Item/Photo/PhotoRequestBuilder.cs | 20 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 6 +- .../ChildFoldersRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Item/MailFolderItemRequestBuilder.cs | 6 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Item/MessageItemRequestBuilder.cs | 2 +- .../RegistrationRequestBuilder.cs | 6 +- .../Users/Item/Photo/PhotoRequestBuilder.cs | 20 +- .../Item/ProfilePhotoItemRequestBuilder.cs | 8 +- .../Item/Settings/SettingsRequestBuilder.cs | 5 + .../Windows/Count/CountRequestBuilder.cs | 107 +++++++++ .../Instances/Count/CountRequestBuilder.cs | 107 +++++++++ .../Item/Instances/InstancesRequestBuilder.cs | 209 +++++++++++++++++ ...indowsSettingInstanceItemRequestBuilder.cs | 198 ++++++++++++++++ .../Item/WindowsSettingItemRequestBuilder.cs | 203 +++++++++++++++++ .../Settings/Windows/WindowsRequestBuilder.cs | 209 +++++++++++++++++ .../Users/Item/UserItemRequestBuilder.cs | 5 + src/Microsoft.Graph/Generated/kiota-lock.json | 4 +- 391 files changed, 11580 insertions(+), 1536 deletions(-) create mode 100644 src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentialsWithName/FederatedIdentityCredentialsWithNameRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/DirectoryNamespace/ExternalUserProfiles/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/DirectoryNamespace/ExternalUserProfiles/ExternalUserProfilesRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/DirectoryNamespace/ExternalUserProfiles/Item/ExternalUserProfileItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/DirectoryNamespace/PendingExternalUserProfiles/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/DirectoryNamespace/PendingExternalUserProfiles/Item/PendingExternalUserProfileItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/DirectoryNamespace/PendingExternalUserProfiles/PendingExternalUserProfilesRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/DefaultGradingScheme/DefaultGradingSchemeRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/GradingSchemes/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/GradingSchemes/GradingSchemesRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/GradingSchemes/Item/EducationGradingSchemeItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/GradingScheme/GradingSchemeRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/GradingScheme/GradingSchemeRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/GradingScheme/GradingSchemeRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Me/CloudClipboard/CloudClipboardRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Me/CloudClipboard/Items/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Me/CloudClipboard/Items/Item/CloudClipboardItemItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Me/CloudClipboard/Items/ItemsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Me/Settings/Windows/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Me/Settings/Windows/Item/Instances/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Me/Settings/Windows/Item/Instances/InstancesRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Me/Settings/Windows/Item/Instances/Item/WindowsSettingInstanceItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Me/Settings/Windows/Item/WindowsSettingItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Me/Settings/Windows/WindowsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Models/BookingsAvailability.cs create mode 100644 src/Microsoft.Graph/Generated/Models/BookingsAvailabilityWindow.cs create mode 100644 src/Microsoft.Graph/Generated/Models/BookingsServiceAvailabilityType.cs create mode 100644 src/Microsoft.Graph/Generated/Models/CloudClipboardItem.cs create mode 100644 src/Microsoft.Graph/Generated/Models/CloudClipboardItemCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/CloudClipboardItemPayload.cs create mode 100644 src/Microsoft.Graph/Generated/Models/CloudClipboardRoot.cs create mode 100644 src/Microsoft.Graph/Generated/Models/EducationGradingScheme.cs create mode 100644 src/Microsoft.Graph/Generated/Models/EducationGradingSchemeCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/EducationGradingSchemeGrade.cs create mode 100644 src/Microsoft.Graph/Generated/Models/ExternalProfile.cs create mode 100644 src/Microsoft.Graph/Generated/Models/ExternalUserProfile.cs create mode 100644 src/Microsoft.Graph/Generated/Models/ExternalUserProfileCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Networkaccess/AlertCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedDestination.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedDevice.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedProcess.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedRemoteNetwork.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedResource.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedTenant.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedThreatIntelligence.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedWebCategory.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Partners/Billing/BilledReconciliation.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Partners/Billing/BillingReconciliation.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PendingExternalUserProfile.cs create mode 100644 src/Microsoft.Graph/Generated/Models/PendingExternalUserProfileCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/ResourceScopeType.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/DetectionRuleCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/RulesRoot.cs create mode 100644 src/Microsoft.Graph/Generated/Models/WindowsSetting.cs create mode 100644 src/Microsoft.Graph/Generated/Models/WindowsSettingCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/WindowsSettingInstance.cs create mode 100644 src/Microsoft.Graph/Generated/Models/WindowsSettingInstanceCollectionResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/WindowsSettingType.cs create mode 100644 src/Microsoft.Graph/Generated/NetworkAccess/Alerts/AlertsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/NetworkAccess/Alerts/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/NetworkAccess/Alerts/Item/AlertItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/RoomsWithPlaceId/RoomsWithPlaceIdRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/WorkspacesWithPlaceId/WorkspacesWithPlaceIdRequestBuilder.cs rename src/Microsoft.Graph/Generated/{Solutions/VirtualEvents/Webinars/Item/Sessions/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs => PlacesWithPlaceId/PlacesWithPlaceIdRequestBuilder.cs} (51%) create mode 100644 src/Microsoft.Graph/Generated/Reports/Partners/Billing/Reconciliation/Billed/BilledRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Reports/Partners/Billing/Reconciliation/Billed/MicrosoftGraphPartnersBillingExport/ExportPostRequestBody.cs create mode 100644 src/Microsoft.Graph/Generated/Reports/Partners/Billing/Reconciliation/Billed/MicrosoftGraphPartnersBillingExport/MicrosoftGraphPartnersBillingExportRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Reports/Partners/Billing/Reconciliation/ReconciliationRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Rules/DetectionRules/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Rules/DetectionRules/DetectionRulesRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Rules/DetectionRules/Item/DetectionRuleItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Security/Rules/RulesRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/ServicePrincipals/Item/FederatedIdentityCredentialsWithName/FederatedIdentityCredentialsWithNameRequestBuilder.cs delete mode 100644 src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs delete mode 100644 src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Events/Item/Sessions/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs delete mode 100644 src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs delete mode 100644 src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs delete mode 100644 src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Users/Item/CloudClipboard/CloudClipboardRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Users/Item/CloudClipboard/Items/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Users/Item/CloudClipboard/Items/Item/CloudClipboardItemItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Users/Item/CloudClipboard/Items/ItemsRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/Item/Instances/Count/CountRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/Item/Instances/InstancesRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/Item/Instances/Item/WindowsSettingInstanceItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/Item/WindowsSettingItemRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/WindowsRequestBuilder.cs diff --git a/src/Microsoft.Graph/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilder.cs index b30bcdc5f60..d57ead08651 100644 --- a/src/Microsoft.Graph/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Windows/Updates/ResourceConnections/Item/ResourceConnectionItemRequestBuilder.cs @@ -29,8 +29,8 @@ public ResourceConnectionItemRequestBuilder(Dictionary pathParam public ResourceConnectionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/windows/updates/resourceConnections/{resourceConnection%2Did}{?%24expand,%24select}", rawUrl) { } /// - /// Delete a resourceConnection object. - /// Find more info here + /// Delete an operationalInsightsConnection object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -49,8 +49,8 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a resourceConnection object. - /// Find more info here + /// Read the properties and relationships of an operationalInsightsConnection object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PatchAsync(ResourceConnection body, Action return await RequestAdapter.SendAsync(requestInfo, ResourceConnection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a resourceConnection object. + /// Delete an operationalInsightsConnection object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -109,7 +109,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a resourceConnection object. + /// Read the properties and relationships of an operationalInsightsConnection object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -160,7 +160,7 @@ public ResourceConnectionItemRequestBuilder WithUrl(string rawUrl) { public class ResourceConnectionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read the properties and relationships of a resourceConnection object. + /// Read the properties and relationships of an operationalInsightsConnection object. /// public class ResourceConnectionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Admin/Windows/Updates/UpdatableAssets/Item/UpdatableAssetItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Windows/Updates/UpdatableAssets/Item/UpdatableAssetItemRequestBuilder.cs index c53f07976fb..02cdf41f317 100644 --- a/src/Microsoft.Graph/Generated/Admin/Windows/Updates/UpdatableAssets/Item/UpdatableAssetItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Windows/Updates/UpdatableAssets/Item/UpdatableAssetItemRequestBuilder.cs @@ -49,8 +49,8 @@ public UpdatableAssetItemRequestBuilder(Dictionary pathParameter public UpdatableAssetItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/admin/windows/updates/updatableAssets/{updatableAsset%2Did}{?%24expand,%24select}", rawUrl) { } /// - /// Delete an updatableAsset object. - /// Find more info here + /// Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -112,7 +112,7 @@ public async Task PatchAsync(UpdatableAsset body, Action(requestInfo, UpdatableAsset.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an updatableAsset object. + /// Delete an updatableAssetGroup object. When an updatableAssetGroup object, its member updatableAsset objects are not deleted. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Admin/Windows/Updates/UpdatePolicies/Item/ComplianceChanges/Item/ComplianceChangeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Admin/Windows/Updates/UpdatePolicies/Item/ComplianceChanges/Item/ComplianceChangeItemRequestBuilder.cs index af8f4693c42..2f8108ee094 100644 --- a/src/Microsoft.Graph/Generated/Admin/Windows/Updates/UpdatePolicies/Item/ComplianceChanges/Item/ComplianceChangeItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Admin/Windows/Updates/UpdatePolicies/Item/ComplianceChanges/Item/ComplianceChangeItemRequestBuilder.cs @@ -75,8 +75,8 @@ public async Task GetAsync(Action(requestInfo, ComplianceChange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a contentApproval object. - /// Find more info here + /// Update the properties of a complianceChange object. + /// Find more info here /// /// A /// The request body @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a contentApproval object. + /// Update the properties of a complianceChange object. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs index 146a40e1439..319b15c957d 100644 --- a/src/Microsoft.Graph/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs @@ -39,8 +39,8 @@ public RegistrationRequestBuilder(Dictionary pathParameters, IRe public RegistrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/app/onlineMeetings/{onlineMeeting%2Did}/registration{?%24expand,%24select}", rawUrl) { } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. - /// Find more info here + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -103,7 +103,7 @@ public async Task PatchAsync(MeetingRegistration body, Acti return await RequestAdapter.SendAsync(requestInfo, MeetingRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/DashboardCards/DashboardCardsRequestBuilder.cs b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/DashboardCards/DashboardCardsRequestBuilder.cs index 4632fb44648..aa7be2abf97 100644 --- a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/DashboardCards/DashboardCardsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/DashboardCards/DashboardCardsRequestBuilder.cs @@ -43,7 +43,7 @@ public DashboardCardsRequestBuilder(Dictionary pathParameters, I public DashboardCardsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/appCatalogs/teamsApps/{teamsApp%2Did}/appDefinitions/{teamsAppDefinition%2Did}/dashboardCards{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Get dashboardCards from appCatalogs + /// Dashboard cards specified in the Teams app manifest. /// /// A /// Cancellation token to use when cancelling requests @@ -85,7 +85,7 @@ public async Task PostAsync(TeamsAppDashboardCa return await RequestAdapter.SendAsync(requestInfo, TeamsAppDashboardCardDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get dashboardCards from appCatalogs + /// Dashboard cards specified in the Teams app manifest. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -130,7 +130,7 @@ public DashboardCardsRequestBuilder WithUrl(string rawUrl) { return new DashboardCardsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get dashboardCards from appCatalogs + /// Dashboard cards specified in the Teams app manifest. /// public class DashboardCardsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/DashboardCards/Item/TeamsAppDashboardCardDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/DashboardCards/Item/TeamsAppDashboardCardDefinitionItemRequestBuilder.cs index 1b78c11393f..ed6ea0e9224 100644 --- a/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/DashboardCards/Item/TeamsAppDashboardCardDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/AppCatalogs/TeamsApps/Item/AppDefinitions/Item/DashboardCards/Item/TeamsAppDashboardCardDefinitionItemRequestBuilder.cs @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get dashboardCards from appCatalogs + /// Dashboard cards specified in the Teams app manifest. /// /// A /// Cancellation token to use when cancelling requests @@ -107,7 +107,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get dashboardCards from appCatalogs + /// Dashboard cards specified in the Teams app manifest. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -158,7 +158,7 @@ public TeamsAppDashboardCardDefinitionItemRequestBuilder WithUrl(string rawUrl) public class TeamsAppDashboardCardDefinitionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Get dashboardCards from appCatalogs + /// Dashboard cards specified in the Teams app manifest. /// public class TeamsAppDashboardCardDefinitionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Applications/Item/ApplicationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/ApplicationItemRequestBuilder.cs index c2da690ca1e..9dbdecce66c 100644 --- a/src/Microsoft.Graph/Generated/Applications/Item/ApplicationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Applications/Item/ApplicationItemRequestBuilder.cs @@ -8,6 +8,7 @@ using Microsoft.Graph.Beta.Applications.Item.CreatedOnBehalfOf; using Microsoft.Graph.Beta.Applications.Item.ExtensionProperties; using Microsoft.Graph.Beta.Applications.Item.FederatedIdentityCredentials; +using Microsoft.Graph.Beta.Applications.Item.FederatedIdentityCredentialsWithName; using Microsoft.Graph.Beta.Applications.Item.GetMemberGroups; using Microsoft.Graph.Beta.Applications.Item.GetMemberObjects; using Microsoft.Graph.Beta.Applications.Item.HomeRealmDiscoveryPolicies; @@ -159,6 +160,15 @@ public async Task DeleteAsync(Action + /// Provides operations to manage the federatedIdentityCredentials property of the microsoft.graph.application entity. + /// + /// A + /// Alternate key of federatedIdentityCredential + public FederatedIdentityCredentialsWithNameRequestBuilder FederatedIdentityCredentialsWithName(string name) { + if(string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name)); + return new FederatedIdentityCredentialsWithNameRequestBuilder(PathParameters, RequestAdapter, name); + } + /// /// Get the properties and relationships of an application object. /// Find more info here /// diff --git a/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentialsWithName/FederatedIdentityCredentialsWithNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentialsWithName/FederatedIdentityCredentialsWithNameRequestBuilder.cs new file mode 100644 index 00000000000..5c4722e5769 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Applications/Item/FederatedIdentityCredentialsWithName/FederatedIdentityCredentialsWithNameRequestBuilder.cs @@ -0,0 +1,203 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Applications.Item.FederatedIdentityCredentialsWithName { + /// + /// Provides operations to manage the federatedIdentityCredentials property of the microsoft.graph.application entity. + /// + public class FederatedIdentityCredentialsWithNameRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new and sets the default values. + /// + /// Alternate key of federatedIdentityCredential + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FederatedIdentityCredentialsWithNameRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string name = "") : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials(name='{name}'){?%24expand,%24select}", pathParameters) { + if (!string.IsNullOrWhiteSpace(name)) PathParameters.Add("name", name); + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FederatedIdentityCredentialsWithNameRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials(name='{name}'){?%24expand,%24select}", rawUrl) { + } + /// + /// Deletes a federatedIdentityCredential object from an application. + /// 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", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Read the properties and relationships of a federatedIdentityCredential 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", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FederatedIdentityCredential.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of a federatedIdentityCredential 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(FederatedIdentityCredential body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(FederatedIdentityCredential body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FederatedIdentityCredential.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Deletes a federatedIdentityCredential object from an application. + /// + /// A + /// Configuration 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, "{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials(name='{name}')", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Read the properties and relationships of a federatedIdentityCredential object. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the properties of a federatedIdentityCredential 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(FederatedIdentityCredential body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(FederatedIdentityCredential body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/applications/{application%2Did}/federatedIdentityCredentials(name='{name}')", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public FederatedIdentityCredentialsWithNameRequestBuilder WithUrl(string rawUrl) { + return new FederatedIdentityCredentialsWithNameRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class FederatedIdentityCredentialsWithNameRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Read the properties and relationships of a federatedIdentityCredential object. + /// + public class FederatedIdentityCredentialsWithNameRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class FederatedIdentityCredentialsWithNameRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class FederatedIdentityCredentialsWithNameRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/BaseGraphServiceClient.cs b/src/Microsoft.Graph/Generated/BaseGraphServiceClient.cs index fb96fc17287..6aa4758bd93 100644 --- a/src/Microsoft.Graph/Generated/BaseGraphServiceClient.cs +++ b/src/Microsoft.Graph/Generated/BaseGraphServiceClient.cs @@ -79,6 +79,7 @@ using Microsoft.Graph.Beta.PayloadResponse; using Microsoft.Graph.Beta.PermissionGrants; using Microsoft.Graph.Beta.Places; +using Microsoft.Graph.Beta.PlacesWithPlaceId; using Microsoft.Graph.Beta.Planner; using Microsoft.Graph.Beta.Policies; using Microsoft.Graph.Beta.Print; @@ -652,6 +653,15 @@ public GroupsWithUniqueNameRequestBuilder GroupsWithUniqueName(string uniqueName return new GroupsWithUniqueNameRequestBuilder(PathParameters, RequestAdapter, uniqueName); } /// + /// Provides operations to manage the collection of place entities. + /// + /// A + /// Alternate key of place + public PlacesWithPlaceIdRequestBuilder PlacesWithPlaceId(string placeId) { + if(string.IsNullOrEmpty(placeId)) throw new ArgumentNullException(nameof(placeId)); + return new PlacesWithPlaceIdRequestBuilder(PathParameters, RequestAdapter, placeId); + } + /// /// Provides operations to manage the collection of servicePrincipal entities. /// /// A diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index dc425c8be3f..09a38f80440 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -48,7 +48,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// Find more info here /// /// A @@ -92,7 +92,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,7 +137,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs index a966990f04d..9a1c3ae4b68 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -43,7 +43,7 @@ public PermissionGrantsRequestBuilder(Dictionary pathParameters, public PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/chats/{chat%2Did}/permissionGrants{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has. /// Find more info here /// /// A @@ -86,7 +86,7 @@ public async Task PostAsync(ResourceSpecificPer return await RequestAdapter.SendAsync(requestInfo, ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has. /// public class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs index cdae4c132d1..63f85165dad 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -75,7 +75,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. + /// Update the properties of the specified tab in a chat. This API can be used to configure the content of the tab. /// Find more info here /// /// A @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. + /// Update the properties of the specified tab in a chat. This API can be used to configure the content of the tab. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs index 6879da7ad27..41e07348ccb 100644 --- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs @@ -39,8 +39,8 @@ public RegistrationRequestBuilder(Dictionary pathParameters, IRe public RegistrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/onlineMeetings/{onlineMeeting%2Did}/registration{?%24expand,%24select}", rawUrl) { } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. - /// Find more info here + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -103,7 +103,7 @@ public async Task PatchAsync(MeetingRegistration body, Acti return await RequestAdapter.SendAsync(requestInfo, MeetingRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DirectoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DirectoryRequestBuilder.cs index a8791ab0fdf..4edc19c77c2 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DirectoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DirectoryRequestBuilder.cs @@ -5,12 +5,14 @@ using Microsoft.Graph.Beta.DirectoryNamespace.CustomSecurityAttributeDefinitions; using Microsoft.Graph.Beta.DirectoryNamespace.DeletedItems; using Microsoft.Graph.Beta.DirectoryNamespace.DeviceLocalCredentials; +using Microsoft.Graph.Beta.DirectoryNamespace.ExternalUserProfiles; using Microsoft.Graph.Beta.DirectoryNamespace.FeatureRolloutPolicies; using Microsoft.Graph.Beta.DirectoryNamespace.FederationConfigurations; using Microsoft.Graph.Beta.DirectoryNamespace.ImpactedResources; using Microsoft.Graph.Beta.DirectoryNamespace.InboundSharedUserProfiles; using Microsoft.Graph.Beta.DirectoryNamespace.OnPremisesSynchronization; using Microsoft.Graph.Beta.DirectoryNamespace.OutboundSharedUserProfiles; +using Microsoft.Graph.Beta.DirectoryNamespace.PendingExternalUserProfiles; using Microsoft.Graph.Beta.DirectoryNamespace.Recommendations; using Microsoft.Graph.Beta.DirectoryNamespace.SharedEmailDomains; using Microsoft.Graph.Beta.DirectoryNamespace.Subscriptions; @@ -55,6 +57,10 @@ public class DirectoryRequestBuilder : BaseRequestBuilder { public DeviceLocalCredentialsRequestBuilder DeviceLocalCredentials { get => new DeviceLocalCredentialsRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the externalUserProfiles property of the microsoft.graph.directory entity. + public ExternalUserProfilesRequestBuilder ExternalUserProfiles { get => + new ExternalUserProfilesRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the featureRolloutPolicies property of the microsoft.graph.directory entity. public FeatureRolloutPoliciesRequestBuilder FeatureRolloutPolicies { get => new FeatureRolloutPoliciesRequestBuilder(PathParameters, RequestAdapter); @@ -79,6 +85,10 @@ public class DirectoryRequestBuilder : BaseRequestBuilder { public OutboundSharedUserProfilesRequestBuilder OutboundSharedUserProfiles { get => new OutboundSharedUserProfilesRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the pendingExternalUserProfiles property of the microsoft.graph.directory entity. + public PendingExternalUserProfilesRequestBuilder PendingExternalUserProfiles { get => + new PendingExternalUserProfilesRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the recommendations property of the microsoft.graph.directory entity. public RecommendationsRequestBuilder Recommendations { get => new RecommendationsRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/ExternalUserProfiles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/ExternalUserProfiles/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..a7ed015e4a7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/ExternalUserProfiles/Count/CountRequestBuilder.cs @@ -0,0 +1,107 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.DirectoryNamespace.ExternalUserProfiles.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/externalUserProfiles/$count{?%24filter,%24search}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/externalUserProfiles/$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", 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 CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public 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.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/ExternalUserProfiles/ExternalUserProfilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/ExternalUserProfiles/ExternalUserProfilesRequestBuilder.cs new file mode 100644 index 00000000000..5584861271c --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/ExternalUserProfiles/ExternalUserProfilesRequestBuilder.cs @@ -0,0 +1,210 @@ +// +using Microsoft.Graph.Beta.DirectoryNamespace.ExternalUserProfiles.Count; +using Microsoft.Graph.Beta.DirectoryNamespace.ExternalUserProfiles.Item; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.DirectoryNamespace.ExternalUserProfiles { + /// + /// Provides operations to manage the externalUserProfiles property of the microsoft.graph.directory entity. + /// + public class ExternalUserProfilesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the externalUserProfiles property of the microsoft.graph.directory entity. + /// The unique identifier of externalUserProfile + /// A + public ExternalUserProfileItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("externalUserProfile%2Did", position); + return new ExternalUserProfileItemRequestBuilder(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 ExternalUserProfilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/externalUserProfiles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ExternalUserProfilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/externalUserProfiles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { + } + /// + /// Retrieve the properties of all externalUserProfiles + /// 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", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ExternalUserProfileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to externalUserProfiles for directory + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(ExternalUserProfile body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(ExternalUserProfile body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ExternalUserProfile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve the properties of all externalUserProfiles + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 externalUserProfiles for directory + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(ExternalUserProfile body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(ExternalUserProfile body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/directory/externalUserProfiles", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public ExternalUserProfilesRequestBuilder WithUrl(string rawUrl) { + return new ExternalUserProfilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Retrieve the properties of all externalUserProfiles + /// + public class ExternalUserProfilesRequestBuilderGetQueryParameters { + /// 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.")] + public class ExternalUserProfilesRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class ExternalUserProfilesRequestBuilderPostRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/ExternalUserProfiles/Item/ExternalUserProfileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/ExternalUserProfiles/Item/ExternalUserProfileItemRequestBuilder.cs new file mode 100644 index 00000000000..da12244e589 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/ExternalUserProfiles/Item/ExternalUserProfileItemRequestBuilder.cs @@ -0,0 +1,201 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.DirectoryNamespace.ExternalUserProfiles.Item { + /// + /// Provides operations to manage the externalUserProfiles property of the microsoft.graph.directory entity. + /// + public class ExternalUserProfileItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public ExternalUserProfileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/externalUserProfiles/{externalUserProfile%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 ExternalUserProfileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/externalUserProfiles/{externalUserProfile%2Did}{?%24expand,%24select}", rawUrl) { + } + /// + /// Delete an externalUserProfile object. Note: To permanently delete the externalUserProfile, follow permanently delete an item. To restore an externalUserProfile, follow restore a deleted item. + /// 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", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve the properties of a specific externalUserProfile. + /// 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", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ExternalUserProfile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of a externalUserProfile 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(ExternalUserProfile body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(ExternalUserProfile body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, ExternalUserProfile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete an externalUserProfile object. Note: To permanently delete the externalUserProfile, follow permanently delete an item. To restore an externalUserProfile, follow restore a deleted item. + /// + /// A + /// Configuration 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, "{+baseurl}/directory/externalUserProfiles/{externalUserProfile%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Retrieve the properties of a specific externalUserProfile. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the properties of a externalUserProfile 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(ExternalUserProfile body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(ExternalUserProfile body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/directory/externalUserProfiles/{externalUserProfile%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public ExternalUserProfileItemRequestBuilder WithUrl(string rawUrl) { + return new ExternalUserProfileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class ExternalUserProfileItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Retrieve the properties of a specific externalUserProfile. + /// + public class ExternalUserProfileItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class ExternalUserProfileItemRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class ExternalUserProfileItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/PendingExternalUserProfiles/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/PendingExternalUserProfiles/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..6ae2851f66e --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/PendingExternalUserProfiles/Count/CountRequestBuilder.cs @@ -0,0 +1,107 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.DirectoryNamespace.PendingExternalUserProfiles.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public class CountRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/pendingExternalUserProfiles/$count{?%24filter,%24search}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/pendingExternalUserProfiles/$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", 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 CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public 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.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/PendingExternalUserProfiles/Item/PendingExternalUserProfileItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/PendingExternalUserProfiles/Item/PendingExternalUserProfileItemRequestBuilder.cs new file mode 100644 index 00000000000..a325e93ee8f --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/PendingExternalUserProfiles/Item/PendingExternalUserProfileItemRequestBuilder.cs @@ -0,0 +1,201 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.DirectoryNamespace.PendingExternalUserProfiles.Item { + /// + /// Provides operations to manage the pendingExternalUserProfiles property of the microsoft.graph.directory entity. + /// + public class PendingExternalUserProfileItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public PendingExternalUserProfileItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/pendingExternalUserProfiles/{pendingExternalUserProfile%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 PendingExternalUserProfileItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/pendingExternalUserProfiles/{pendingExternalUserProfile%2Did}{?%24expand,%24select}", rawUrl) { + } + /// + /// Delete a pendingExternalUserProfile object. Note: To permanently delete the pendingExternalUserProfile, follow permanently delete an item. To restore a pendingExternalUserProfile, follow restore a deleted item. + /// 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", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve the properties of a specific pendingExternalUserProfile. + /// 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", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PendingExternalUserProfile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the properties of a pendingExternalUserProfile 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(PendingExternalUserProfile body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(PendingExternalUserProfile body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PendingExternalUserProfile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete a pendingExternalUserProfile object. Note: To permanently delete the pendingExternalUserProfile, follow permanently delete an item. To restore a pendingExternalUserProfile, follow restore a deleted item. + /// + /// A + /// Configuration 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, "{+baseurl}/directory/pendingExternalUserProfiles/{pendingExternalUserProfile%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Retrieve the properties of a specific pendingExternalUserProfile. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the properties of a pendingExternalUserProfile 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(PendingExternalUserProfile body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(PendingExternalUserProfile body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/directory/pendingExternalUserProfiles/{pendingExternalUserProfile%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public PendingExternalUserProfileItemRequestBuilder WithUrl(string rawUrl) { + return new PendingExternalUserProfileItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class PendingExternalUserProfileItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Retrieve the properties of a specific pendingExternalUserProfile. + /// + public class PendingExternalUserProfileItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class PendingExternalUserProfileItemRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class PendingExternalUserProfileItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/PendingExternalUserProfiles/PendingExternalUserProfilesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/PendingExternalUserProfiles/PendingExternalUserProfilesRequestBuilder.cs new file mode 100644 index 00000000000..c8a1cc94d26 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/PendingExternalUserProfiles/PendingExternalUserProfilesRequestBuilder.cs @@ -0,0 +1,211 @@ +// +using Microsoft.Graph.Beta.DirectoryNamespace.PendingExternalUserProfiles.Count; +using Microsoft.Graph.Beta.DirectoryNamespace.PendingExternalUserProfiles.Item; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.DirectoryNamespace.PendingExternalUserProfiles { + /// + /// Provides operations to manage the pendingExternalUserProfiles property of the microsoft.graph.directory entity. + /// + public class PendingExternalUserProfilesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the pendingExternalUserProfiles property of the microsoft.graph.directory entity. + /// The unique identifier of pendingExternalUserProfile + /// A + public PendingExternalUserProfileItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("pendingExternalUserProfile%2Did", position); + return new PendingExternalUserProfileItemRequestBuilder(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 PendingExternalUserProfilesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/pendingExternalUserProfiles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public PendingExternalUserProfilesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/pendingExternalUserProfiles{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { + } + /// + /// Retrieve the properties of all pendingExternalUserProfiles. + /// 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", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PendingExternalUserProfileCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create a new pendingExternalUserProfile object. + /// Find more info here + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(PendingExternalUserProfile body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(PendingExternalUserProfile body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, PendingExternalUserProfile.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Retrieve the properties of all pendingExternalUserProfiles. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 pendingExternalUserProfile object. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(PendingExternalUserProfile body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(PendingExternalUserProfile body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/directory/pendingExternalUserProfiles", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public PendingExternalUserProfilesRequestBuilder WithUrl(string rawUrl) { + return new PendingExternalUserProfilesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Retrieve the properties of all pendingExternalUserProfiles. + /// + public class PendingExternalUserProfilesRequestBuilderGetQueryParameters { + /// 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.")] + public class PendingExternalUserProfilesRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class PendingExternalUserProfilesRequestBuilderPostRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.cs index 63b242e82b8..463dc3c2079 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/RetentionLabel/RetentionLabelRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ItemRetentionLabel.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. - /// Find more info here + /// Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. + /// Find more info here /// /// A /// The request body @@ -126,7 +126,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. + /// Lock or unlock a retention label on a driveItem that classifies content as records. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. For more information about how you can lock and unlock retention labels, see Use record versioning to update records stored in SharePoint or OneDrive. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs index 36dce4f1e97..77a5038b805 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/NamesRequestBuilder.cs @@ -54,7 +54,7 @@ public NamesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base } /// /// Retrieve a list of nameditem objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs index f166681c806..304c395fa0c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Columns/ColumnsRequestBuilder.cs @@ -50,7 +50,7 @@ public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Retrieve a list of tablecolumn objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs index 779af4d8880..cb7c0a906d6 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs @@ -50,7 +50,7 @@ public RowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( } /// /// Retrieve a list of tablerow objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs index 87dcf0eca03..4b2b1cacdc3 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs @@ -30,7 +30,7 @@ public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Retrieve a list of tablecolumn objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs index 81eab8ea272..68b8fe43f20 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs @@ -30,7 +30,7 @@ public RowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( } /// /// Retrieve a list of tablerow objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs index 988b3d4eccb..b017d2c786e 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs @@ -50,7 +50,7 @@ public TablesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas } /// /// Retrieve a list of table objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs index be0df146ae1..06074e03077 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs @@ -51,7 +51,7 @@ public ChartsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas } /// /// Retrieve a list of chart objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs index 638bc5a62c0..1820c10d490 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs @@ -45,7 +45,7 @@ public SeriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas } /// /// Retrieve a list of chartseries objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Series/SeriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Series/SeriesRequestBuilder.cs index f95e1edc7be..9d5d3087c24 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Series/SeriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemAtWithIndex/Series/SeriesRequestBuilder.cs @@ -30,7 +30,7 @@ public SeriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas } /// /// Retrieve a list of chartseries objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Series/SeriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Series/SeriesRequestBuilder.cs index 9b894ae3093..8c09d98555c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Series/SeriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ItemWithName/Series/SeriesRequestBuilder.cs @@ -30,7 +30,7 @@ public SeriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas } /// /// Retrieve a list of chartseries objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs index 75e43ce289b..323c42d7b54 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs @@ -50,7 +50,7 @@ public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Retrieve a list of tablecolumn objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs index b57fe8c8dd0..668e14c391f 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs @@ -50,7 +50,7 @@ public RowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( } /// /// Retrieve a list of tablerow objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs index fef5efdb4ae..7745979ae72 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Columns/ColumnsRequestBuilder.cs @@ -30,7 +30,7 @@ public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Retrieve a list of tablecolumn objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs index 3932906b251..c6169f40df4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/ItemAtWithIndex/Rows/RowsRequestBuilder.cs @@ -30,7 +30,7 @@ public RowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( } /// /// Retrieve a list of tablerow objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs index 8aca5ea3017..bd3b53c4bf4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs @@ -49,7 +49,7 @@ public WorksheetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } /// /// Retrieve a list of worksheet objects. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.cs index 8f65608b24a..3e9a970308c 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/AssignmentSettingsRequestBuilder.cs @@ -1,5 +1,7 @@ // +using Microsoft.Graph.Beta.Education.Classes.Item.AssignmentSettings.DefaultGradingScheme; using Microsoft.Graph.Beta.Education.Classes.Item.AssignmentSettings.GradingCategories; +using Microsoft.Graph.Beta.Education.Classes.Item.AssignmentSettings.GradingSchemes; using Microsoft.Graph.Beta.Models.ODataErrors; using Microsoft.Graph.Beta.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -15,10 +17,18 @@ namespace Microsoft.Graph.Beta.Education.Classes.Item.AssignmentSettings { /// Provides operations to manage the assignmentSettings property of the microsoft.graph.educationClass entity. /// public class AssignmentSettingsRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the defaultGradingScheme property of the microsoft.graph.educationAssignmentSettings entity. + public DefaultGradingSchemeRequestBuilder DefaultGradingScheme { get => + new DefaultGradingSchemeRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the gradingCategories property of the microsoft.graph.educationAssignmentSettings entity. public GradingCategoriesRequestBuilder GradingCategories { get => new GradingCategoriesRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the gradingSchemes property of the microsoft.graph.educationAssignmentSettings entity. + public GradingSchemesRequestBuilder GradingSchemes { get => + new GradingSchemesRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/DefaultGradingScheme/DefaultGradingSchemeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/DefaultGradingScheme/DefaultGradingSchemeRequestBuilder.cs new file mode 100644 index 00000000000..df924edf5bf --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/DefaultGradingScheme/DefaultGradingSchemeRequestBuilder.cs @@ -0,0 +1,108 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Education.Classes.Item.AssignmentSettings.DefaultGradingScheme { + /// + /// Provides operations to manage the defaultGradingScheme property of the microsoft.graph.educationAssignmentSettings entity. + /// + public class DefaultGradingSchemeRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DefaultGradingSchemeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/defaultGradingScheme{?%24expand,%24select}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DefaultGradingSchemeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/defaultGradingScheme{?%24expand,%24select}", rawUrl) { + } + /// + /// Get defaultGradingScheme from education + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, EducationGradingScheme.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get defaultGradingScheme from education + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public DefaultGradingSchemeRequestBuilder WithUrl(string rawUrl) { + return new DefaultGradingSchemeRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get defaultGradingScheme from education + /// + public class DefaultGradingSchemeRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DefaultGradingSchemeRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/GradingCategories/Item/EducationGradingCategoryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/GradingCategories/Item/EducationGradingCategoryItemRequestBuilder.cs index d4e4376876c..53c2ec755ea 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/GradingCategories/Item/EducationGradingCategoryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/GradingCategories/Item/EducationGradingCategoryItemRequestBuilder.cs @@ -68,7 +68,8 @@ public async Task GetAsync(Action(requestInfo, EducationGradingCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the navigation property gradingCategories in education + /// Update a single gradingCategory on the educationAssignmentSettings. Only teachers can perform this operation. + /// Find more info here /// /// A /// The request body @@ -124,7 +125,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the navigation property gradingCategories in education + /// Update a single gradingCategory on the educationAssignmentSettings. Only teachers can perform this operation. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/GradingSchemes/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/GradingSchemes/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..fc6ac26c63d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/GradingSchemes/Count/CountRequestBuilder.cs @@ -0,0 +1,107 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Education.Classes.Item.AssignmentSettings.GradingSchemes.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public 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}/education/classes/{educationClass%2Did}/assignmentSettings/gradingSchemes/$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}/education/classes/{educationClass%2Did}/assignmentSettings/gradingSchemes/$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", 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 CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public 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.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/GradingSchemes/GradingSchemesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/GradingSchemes/GradingSchemesRequestBuilder.cs new file mode 100644 index 00000000000..319f20b283c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/GradingSchemes/GradingSchemesRequestBuilder.cs @@ -0,0 +1,209 @@ +// +using Microsoft.Graph.Beta.Education.Classes.Item.AssignmentSettings.GradingSchemes.Count; +using Microsoft.Graph.Beta.Education.Classes.Item.AssignmentSettings.GradingSchemes.Item; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Education.Classes.Item.AssignmentSettings.GradingSchemes { + /// + /// Provides operations to manage the gradingSchemes property of the microsoft.graph.educationAssignmentSettings entity. + /// + public class GradingSchemesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the gradingSchemes property of the microsoft.graph.educationAssignmentSettings entity. + /// The unique identifier of educationGradingScheme + /// A + public EducationGradingSchemeItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("educationGradingScheme%2Did", position); + return new EducationGradingSchemeItemRequestBuilder(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 GradingSchemesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingSchemes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GradingSchemesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingSchemes{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { + } + /// + /// Get gradingSchemes from education + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, EducationGradingSchemeCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to gradingSchemes for education + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(EducationGradingScheme body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(EducationGradingScheme body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, EducationGradingScheme.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get gradingSchemes from education + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 gradingSchemes for education + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(EducationGradingScheme body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(EducationGradingScheme body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingSchemes", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public GradingSchemesRequestBuilder WithUrl(string rawUrl) { + return new GradingSchemesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get gradingSchemes from education + /// + public class GradingSchemesRequestBuilderGetQueryParameters { + /// 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.")] + public class GradingSchemesRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class GradingSchemesRequestBuilderPostRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/GradingSchemes/Item/EducationGradingSchemeItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/GradingSchemes/Item/EducationGradingSchemeItemRequestBuilder.cs new file mode 100644 index 00000000000..2d781a20a5b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/GradingSchemes/Item/EducationGradingSchemeItemRequestBuilder.cs @@ -0,0 +1,198 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Education.Classes.Item.AssignmentSettings.GradingSchemes.Item { + /// + /// Provides operations to manage the gradingSchemes property of the microsoft.graph.educationAssignmentSettings entity. + /// + public class EducationGradingSchemeItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public EducationGradingSchemeItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingSchemes/{educationGradingScheme%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 EducationGradingSchemeItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingSchemes/{educationGradingScheme%2Did}{?%24expand,%24select}", rawUrl) { + } + /// + /// Delete navigation property gradingSchemes for education + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get gradingSchemes from education + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, EducationGradingScheme.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property gradingSchemes in education + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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(EducationGradingScheme body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(EducationGradingScheme body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, EducationGradingScheme.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property gradingSchemes for education + /// + /// A + /// Configuration 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, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingSchemes/{educationGradingScheme%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get gradingSchemes from education + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 gradingSchemes in education + /// + /// A + /// The request body + /// Configuration 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(EducationGradingScheme body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(EducationGradingScheme body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingSchemes/{educationGradingScheme%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public EducationGradingSchemeItemRequestBuilder WithUrl(string rawUrl) { + return new EducationGradingSchemeItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class EducationGradingSchemeItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Get gradingSchemes from education + /// + public class EducationGradingSchemeItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class EducationGradingSchemeItemRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class EducationGradingSchemeItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Activate/ActivateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Activate/ActivateRequestBuilder.cs index c709ec3083f..766190dd91d 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Activate/ActivateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Activate/ActivateRequestBuilder.cs @@ -29,7 +29,7 @@ public ActivateRequestBuilder(Dictionary pathParameters, IReques public ActivateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/activate", rawUrl) { } /// - /// Activate an inactive educationAssignment to signal that the assignment has further action items for teachers and students. This action can only be performed by a teacher on currently inactive assignments. + /// Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. This action can only be performed by a teacher on currently inactive assignments. /// Find more info here /// /// A @@ -50,7 +50,7 @@ public async Task PostAsync(Action(requestInfo, EducationAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Activate an inactive educationAssignment to signal that the assignment has further action items for teachers and students. This action can only be performed by a teacher on currently inactive assignments. + /// Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. This action can only be performed by a teacher on currently inactive assignments. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.cs index 3382ac77198..bda4e9061b7 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.cs @@ -3,6 +3,7 @@ using Microsoft.Graph.Beta.Education.Classes.Item.Assignments.Item.Categories; using Microsoft.Graph.Beta.Education.Classes.Item.Assignments.Item.Deactivate; using Microsoft.Graph.Beta.Education.Classes.Item.Assignments.Item.GradingCategory; +using Microsoft.Graph.Beta.Education.Classes.Item.Assignments.Item.GradingScheme; using Microsoft.Graph.Beta.Education.Classes.Item.Assignments.Item.Publish; using Microsoft.Graph.Beta.Education.Classes.Item.Assignments.Item.Resources; using Microsoft.Graph.Beta.Education.Classes.Item.Assignments.Item.Rubric; @@ -40,6 +41,10 @@ public class EducationAssignmentItemRequestBuilder : BaseRequestBuilder { public GradingCategoryRequestBuilder GradingCategory { get => new GradingCategoryRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the gradingScheme property of the microsoft.graph.educationAssignment entity. + public GradingSchemeRequestBuilder GradingScheme { get => + new GradingSchemeRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the publish method. public PublishRequestBuilder Publish { get => new PublishRequestBuilder(PathParameters, RequestAdapter); @@ -99,7 +104,7 @@ public async Task DeleteAsync(Action - /// Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, you will get an unknownFutureValue value in the response. + /// Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, the response value for the status property is unknownFutureValue. /// Find more info here /// /// A @@ -160,7 +165,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, you will get an unknownFutureValue value in the response. + /// Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, the response value for the status property is unknownFutureValue. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -211,7 +216,7 @@ public EducationAssignmentItemRequestBuilder WithUrl(string rawUrl) { public class EducationAssignmentItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, you will get an unknownFutureValue value in the response. + /// Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, the response value for the status property is unknownFutureValue. /// public class EducationAssignmentItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/GradingScheme/GradingSchemeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/GradingScheme/GradingSchemeRequestBuilder.cs new file mode 100644 index 00000000000..8ca45186bf1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/GradingScheme/GradingSchemeRequestBuilder.cs @@ -0,0 +1,108 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Education.Classes.Item.Assignments.Item.GradingScheme { + /// + /// Provides operations to manage the gradingScheme property of the microsoft.graph.educationAssignment entity. + /// + public class GradingSchemeRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GradingSchemeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/gradingScheme{?%24expand,%24select}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GradingSchemeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/gradingScheme{?%24expand,%24select}", rawUrl) { + } + /// + /// Get gradingScheme from education + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, EducationGradingScheme.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get gradingScheme from education + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public GradingSchemeRequestBuilder WithUrl(string rawUrl) { + return new GradingSchemeRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get gradingScheme from education + /// + public class GradingSchemeRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class GradingSchemeRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Activate/ActivateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Activate/ActivateRequestBuilder.cs index 88e2b767677..9e0f9c26b0a 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Activate/ActivateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Activate/ActivateRequestBuilder.cs @@ -29,7 +29,7 @@ public ActivateRequestBuilder(Dictionary pathParameters, IReques public ActivateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/activate", rawUrl) { } /// - /// Activate an inactive educationAssignment to signal that the assignment has further action items for teachers and students. This action can only be performed by a teacher on currently inactive assignments. + /// Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. This action can only be performed by a teacher on currently inactive assignments. /// Find more info here /// /// A @@ -50,7 +50,7 @@ public async Task PostAsync(Action(requestInfo, EducationAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Activate an inactive educationAssignment to signal that the assignment has further action items for teachers and students. This action can only be performed by a teacher on currently inactive assignments. + /// Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. This action can only be performed by a teacher on currently inactive assignments. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/EducationAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/EducationAssignmentItemRequestBuilder.cs index f3774327068..a8904bc48cb 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/EducationAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/EducationAssignmentItemRequestBuilder.cs @@ -3,6 +3,7 @@ using Microsoft.Graph.Beta.Education.Me.Assignments.Item.Categories; using Microsoft.Graph.Beta.Education.Me.Assignments.Item.Deactivate; using Microsoft.Graph.Beta.Education.Me.Assignments.Item.GradingCategory; +using Microsoft.Graph.Beta.Education.Me.Assignments.Item.GradingScheme; using Microsoft.Graph.Beta.Education.Me.Assignments.Item.Publish; using Microsoft.Graph.Beta.Education.Me.Assignments.Item.Resources; using Microsoft.Graph.Beta.Education.Me.Assignments.Item.Rubric; @@ -40,6 +41,10 @@ public class EducationAssignmentItemRequestBuilder : BaseRequestBuilder { public GradingCategoryRequestBuilder GradingCategory { get => new GradingCategoryRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the gradingScheme property of the microsoft.graph.educationAssignment entity. + public GradingSchemeRequestBuilder GradingScheme { get => + new GradingSchemeRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the publish method. public PublishRequestBuilder Publish { get => new PublishRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/GradingScheme/GradingSchemeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/GradingScheme/GradingSchemeRequestBuilder.cs new file mode 100644 index 00000000000..e258dcf2765 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/GradingScheme/GradingSchemeRequestBuilder.cs @@ -0,0 +1,108 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Education.Me.Assignments.Item.GradingScheme { + /// + /// Provides operations to manage the gradingScheme property of the microsoft.graph.educationAssignment entity. + /// + public class GradingSchemeRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GradingSchemeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/gradingScheme{?%24expand,%24select}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GradingSchemeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/gradingScheme{?%24expand,%24select}", rawUrl) { + } + /// + /// Get gradingScheme from education + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, EducationGradingScheme.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get gradingScheme from education + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public GradingSchemeRequestBuilder WithUrl(string rawUrl) { + return new GradingSchemeRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get gradingScheme from education + /// + public class GradingSchemeRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class GradingSchemeRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Activate/ActivateRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Activate/ActivateRequestBuilder.cs index 4f01d51148d..b11288be286 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Activate/ActivateRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Activate/ActivateRequestBuilder.cs @@ -29,7 +29,7 @@ public ActivateRequestBuilder(Dictionary pathParameters, IReques public ActivateRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/activate", rawUrl) { } /// - /// Activate an inactive educationAssignment to signal that the assignment has further action items for teachers and students. This action can only be performed by a teacher on currently inactive assignments. + /// Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. This action can only be performed by a teacher on currently inactive assignments. /// Find more info here /// /// A @@ -50,7 +50,7 @@ public async Task PostAsync(Action(requestInfo, EducationAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Activate an inactive educationAssignment to signal that the assignment has further action items for teachers and students. This action can only be performed by a teacher on currently inactive assignments. + /// Activate an inactive educationAssignment to signal that the assignment has further action items for teachers or students. This action can only be performed by a teacher on currently inactive assignments. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.cs index 31445ef7545..b233e46eff2 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/EducationAssignmentItemRequestBuilder.cs @@ -3,6 +3,7 @@ using Microsoft.Graph.Beta.Education.Users.Item.Assignments.Item.Categories; using Microsoft.Graph.Beta.Education.Users.Item.Assignments.Item.Deactivate; using Microsoft.Graph.Beta.Education.Users.Item.Assignments.Item.GradingCategory; +using Microsoft.Graph.Beta.Education.Users.Item.Assignments.Item.GradingScheme; using Microsoft.Graph.Beta.Education.Users.Item.Assignments.Item.Publish; using Microsoft.Graph.Beta.Education.Users.Item.Assignments.Item.Resources; using Microsoft.Graph.Beta.Education.Users.Item.Assignments.Item.Rubric; @@ -40,6 +41,10 @@ public class EducationAssignmentItemRequestBuilder : BaseRequestBuilder { public GradingCategoryRequestBuilder GradingCategory { get => new GradingCategoryRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the gradingScheme property of the microsoft.graph.educationAssignment entity. + public GradingSchemeRequestBuilder GradingScheme { get => + new GradingSchemeRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the publish method. public PublishRequestBuilder Publish { get => new PublishRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/GradingScheme/GradingSchemeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/GradingScheme/GradingSchemeRequestBuilder.cs new file mode 100644 index 00000000000..d47381b9aa4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/GradingScheme/GradingSchemeRequestBuilder.cs @@ -0,0 +1,108 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Education.Users.Item.Assignments.Item.GradingScheme { + /// + /// Provides operations to manage the gradingScheme property of the microsoft.graph.educationAssignment entity. + /// + public class GradingSchemeRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public GradingSchemeRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/gradingScheme{?%24expand,%24select}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public GradingSchemeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/gradingScheme{?%24expand,%24select}", rawUrl) { + } + /// + /// Get gradingScheme from education + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, EducationGradingScheme.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get gradingScheme from education + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public GradingSchemeRequestBuilder WithUrl(string rawUrl) { + return new GradingSchemeRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get gradingScheme from education + /// + public class GradingSchemeRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class GradingSchemeRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/EducationUserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/EducationUserItemRequestBuilder.cs index 5e123996611..17d540bdb42 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/EducationUserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/EducationUserItemRequestBuilder.cs @@ -100,8 +100,8 @@ public async Task GetAsync(Action(requestInfo, EducationUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an educationuser object. - /// Find more info here + /// Update the relatedContact collection of an educationUser object. + /// Find more info here /// /// A /// The request body @@ -157,7 +157,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an educationuser object. + /// Update the relatedContact collection of an educationUser object. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/External/IndustryData/DataConnectors/DataConnectorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/IndustryData/DataConnectors/DataConnectorsRequestBuilder.cs index 370b2a22ed7..58d9b08699d 100644 --- a/src/Microsoft.Graph/Generated/External/IndustryData/DataConnectors/DataConnectorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/External/IndustryData/DataConnectors/DataConnectorsRequestBuilder.cs @@ -64,8 +64,8 @@ public async Task GetAsync(Action(requestInfo, IndustryDataConnectorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new azureDataLakeConnector object. - /// Find more info here + /// Create a new industryDataConnector object. + /// Find more info here /// /// A /// The request body @@ -104,7 +104,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new azureDataLakeConnector object. + /// Create a new industryDataConnector object. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 2dcf640fd88..45472446fa8 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index f5a8813e75f..b38bb88bcda 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 0e5467bb602..79bd398d4e2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 26fc40b8fda..76b9f7b4f56 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 2c3810e08f0..83a38d598cd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 833ead25cf3..3d6ab55df61 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index d86775a05a3..cd6e51aa2ba 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 3917eafcbd4..466b843f69d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 1fbe416c5eb..a8a653bdf2a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 8b41336e485..54079763107 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 657af8c55ac..db697a1a145 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 2903ba225fd..ef6069dff29 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index b18f27f49cf..deacb12efbe 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index b43da4180e1..c5d6558f4b6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 71f536e1289..584aa7ef340 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs index 90ce14bd9c3..13c7847296f 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs @@ -64,8 +64,8 @@ public async Task GetAsync(Action(requestInfo, ConversationCollectionResponse.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 + /// Create a new conversation by including a thread and a post. Use reply thread or reply post to further post to that conversation. + /// Find more info here /// /// A /// The request body @@ -104,7 +104,7 @@ public RequestInformation ToGetRequestInformation(Action - /// 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. + /// Create a new conversation by including a thread and a post. Use reply thread or reply post to further post to that conversation. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs index 086cbfbfb27..89cab6e32a5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs @@ -34,7 +34,7 @@ public ConversationItemRequestBuilder(Dictionary pathParameters, public ConversationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}{?%24select}", rawUrl) { } /// - /// Delete a conversation object. + /// Delete a group's conversation object. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -54,8 +54,8 @@ public async Task DeleteAsync(Action - /// Get a conversation object. - /// Find more info here + /// Retrieve the properties and relationships of conversation object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -75,7 +75,7 @@ public async Task GetAsync(Action(requestInfo, Conversation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a conversation object. + /// Delete a group's conversation object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -92,7 +92,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a conversation object. + /// Retrieve the properties and relationships of conversation object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -123,7 +123,7 @@ public ConversationItemRequestBuilder WithUrl(string rawUrl) { public class ConversationItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Get a conversation object. + /// Retrieve the properties and relationships of conversation object. /// public class ConversationItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs index 8494f3a4ec1..49f916aeaab 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Reply/ReplyRequestBuilder.cs @@ -28,8 +28,8 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/reply", rawUrl) { } /// - /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. - /// Find more info here + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 0997fa7e6c6..db50bd1d9e4 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 92e213bb670..3e0c152af45 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 3d61cdf6101..897b23929f5 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 69ad84a38c2..ff32a99b73e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 70550eed244..af7461b638b 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Photo/PhotoRequestBuilder.cs index 17519e6f271..34d63daab3d 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Photo/PhotoRequestBuilder.cs @@ -36,44 +36,44 @@ public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// The group's profile photo. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update the navigation property photo in groups /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The group's profile photo. @@ -100,10 +100,10 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/groups/{group%2Did}/photo", PathParameters); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Photos/Item/ProfilePhotoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Photos/Item/ProfilePhotoItemRequestBuilder.cs index f59e7f4f4c1..38544d3bb5e 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Photos/Item/ProfilePhotoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Photos/Item/ProfilePhotoItemRequestBuilder.cs @@ -36,22 +36,22 @@ public ProfilePhotoItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// The profile photos owned by the group. Read-only. Nullable. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The profile photos owned by the group. Read-only. Nullable. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs index 06b6800002b..34691a07fff 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Sites/Item/Lists/Item/ListItemRequestBuilder.cs @@ -93,8 +93,8 @@ public async Task DeleteAsync(Action - /// Get the list of richLongRunningOperations associated with a list. - /// Find more info here + /// Return the metadata for a [list][]. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -153,7 +153,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the list of richLongRunningOperations associated with a list. + /// Return the metadata for a [list][]. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -204,7 +204,7 @@ public ListItemRequestBuilder WithUrl(string rawUrl) { public class ListItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Get the list of richLongRunningOperations associated with a list. + /// Return the metadata for a [list][]. /// public class ListItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 6d613696f8f..cbd3b14da29 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -70,8 +70,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. - /// Find more info here + /// Update the role of a conversationMember in a team.or channel. + /// Find more info here /// /// A /// The request body @@ -127,7 +127,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Update the role of a conversationMember in a team.or channel. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index 56d4491d496..6756ee1b9b2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -48,7 +48,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// Find more info here /// /// A @@ -92,7 +92,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,7 +137,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs index a170e742533..f93b34002d1 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Photo/PhotoRequestBuilder.cs index 62edf31a1b9..e5b34e69017 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/Photo/PhotoRequestBuilder.cs @@ -36,44 +36,44 @@ public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// The team photo. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update the navigation property photo in groups /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The team photo. @@ -100,10 +100,10 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/groups/{group%2Did}/team/photo", PathParameters); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index e4ebb9bbe62..6198d894edd 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -70,8 +70,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. - /// Find more info here + /// Update the role of a conversationMember in a team.or channel. + /// Find more info here /// /// A /// The request body @@ -127,7 +127,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Update the role of a conversationMember in a team.or channel. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs index bba436df85c..b674a2d7fa3 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -48,7 +48,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/team/primaryChannel/messages/{chatMessage%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// Find more info here /// /// A @@ -92,7 +92,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,7 +137,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs index fcb0d583565..13be4284265 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs index 96422fc982d..ab24b634a1a 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/ConversationThreadItemRequestBuilder.cs @@ -39,8 +39,8 @@ public ConversationThreadItemRequestBuilder(Dictionary pathParam public ConversationThreadItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}{?%24select}", rawUrl) { } /// - /// Delete a thread object. - /// Find more info here + /// Delete conversationThread. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -59,8 +59,8 @@ public async Task DeleteAsync(Action - /// Get a thread object. - /// Find more info here + /// Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -103,7 +103,7 @@ public async Task PatchAsync(ConversationThread body, Action return await RequestAdapter.SendAsync(requestInfo, ConversationThread.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a thread object. + /// Delete conversationThread. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get a thread object. + /// Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -171,7 +171,7 @@ public ConversationThreadItemRequestBuilder WithUrl(string rawUrl) { public class ConversationThreadItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Get a thread object. + /// Get a specific thread that belongs to a group. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. /// public class ConversationThreadItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs index 44ad71c754c..5ddd19afd67 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Reply/ReplyRequestBuilder.cs @@ -28,8 +28,8 @@ public ReplyRequestBuilder(Dictionary pathParameters, IRequestAd public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/reply", rawUrl) { } /// - /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. - /// Find more info here + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -50,7 +50,7 @@ public async Task PostAsync(ReplyPostRequestBody body, Action - /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs index 2fb35b709a2..d34550357f9 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs @@ -29,8 +29,8 @@ public NamedLocationItemRequestBuilder(Dictionary pathParameters public NamedLocationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identity/conditionalAccess/namedLocations/{namedLocation%2Did}{?%24expand,%24select}", rawUrl) { } /// - /// Delete a namedLocation object. - /// Find more info here + /// Delete a countryNamedLocation object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -93,7 +93,7 @@ public async Task PatchAsync(NamedLocation body, Action(requestInfo, NamedLocation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a namedLocation object. + /// Delete a countryNamedLocation object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilder.cs index 0ce8c4643b6..ea692b83a12 100644 --- a/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/CustomAuthenticationExtensions/Item/CustomAuthenticationExtensionItemRequestBuilder.cs @@ -54,8 +54,8 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of a customAuthenticationExtension object. - /// Find more info here + /// Read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -114,7 +114,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of a customAuthenticationExtension object. + /// Read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -165,7 +165,7 @@ public CustomAuthenticationExtensionItemRequestBuilder WithUrl(string rawUrl) { public class CustomAuthenticationExtensionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read the properties and relationships of a customAuthenticationExtension object. + /// Read the properties and relationships of an authenticationEventListener object. The @odata.type property in the response object indicates the type of the authenticationEventListener object. /// public class CustomAuthenticationExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageCatalogs/Item/AccessPackageCustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageCatalogs/Item/AccessPackageCustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs index be87df74b67..7a3d05260a3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageCatalogs/Item/AccessPackageCustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackageCatalogs/Item/AccessPackageCustomWorkflowExtensions/Item/CustomCalloutExtensionItemRequestBuilder.cs @@ -49,8 +49,8 @@ public async Task DeleteAsync(Action - /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. - /// Find more info here + /// Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -113,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. + /// Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -167,7 +167,7 @@ public CustomCalloutExtensionItemRequestBuilder WithUrl(string rawUrl) { public class CustomCalloutExtensionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read the properties and relationships of an accessPackageAssignmentWorkflowExtension object. + /// Read the properties and relationships of an accessPackageAssignmentRequestWorkflowExtension object. /// public class CustomCalloutExtensionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilder.cs index 52b4d29185a..747f59f743f 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskDetections/Item/RiskDetectionItemRequestBuilder.cs @@ -48,8 +48,8 @@ public async Task DeleteAsync(Action - /// Retrieve the properties of a riskDetection object. - /// Find more info here + /// Retrieve the properties of a collection of riskDetection objects. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -108,7 +108,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties of a riskDetection object. + /// Retrieve the properties of a collection of riskDetection objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -159,7 +159,7 @@ public RiskDetectionItemRequestBuilder WithUrl(string rawUrl) { public class RiskDetectionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Retrieve the properties of a riskDetection object. + /// Retrieve the properties of a collection of riskDetection objects. /// public class RiskDetectionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.cs index f1225a9c0c6..b07463b80c9 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/RiskyUsersRequestBuilder.cs @@ -53,8 +53,8 @@ public RiskyUsersRequestBuilder(Dictionary pathParameters, IRequ public RiskyUsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityProtection/riskyUsers{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Retrieve the properties and relationships of a collection of riskyUser objects. - /// Find more info here + /// Retrieve the properties and relationships of a riskyUser object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -96,7 +96,7 @@ public async Task PostAsync(RiskyUser body, Action(requestInfo, RiskyUser.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of a collection of riskyUser objects. + /// Retrieve the properties and relationships of a riskyUser object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -141,7 +141,7 @@ public RiskyUsersRequestBuilder WithUrl(string rawUrl) { return new RiskyUsersRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties and relationships of a collection of riskyUser objects. + /// Retrieve the properties and relationships of a riskyUser object. /// public class RiskyUsersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs index 02480ae6a94..b784cd894d9 100644 --- a/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs @@ -29,7 +29,8 @@ public ResetPasswordRequestBuilder(Dictionary pathParameters, IR public ResetPasswordRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/authentication/methods/{authenticationMethod%2Did}/resetPassword", rawUrl) { } /// - /// Invoke action resetPassword + /// Initiate a reset for the password associated with a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. + /// Find more info here /// /// A /// The request body @@ -51,7 +52,7 @@ public async Task PostAsync(ResetPasswordPostRequestBody return await RequestAdapter.SendAsync(requestInfo, PasswordResetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Invoke action resetPassword + /// Initiate a reset for the password associated with a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 5257ec9c138..10d4f50f7b5 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 1af5fa30303..0029c17adf5 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 754b86f3aad..20031fa07a3 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 144f5e38a1a..b2ba641d32c 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 704d10df256..1a353baba76 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs index f8cdaeb0c16..0efb6d3b1ed 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index d400c5f3aee..e821facbdda 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 50f0593e20d..d7fc70e60c9 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index c53f5746f44..096fedd531d 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 288f08ce048..da786e3d9ad 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 2b0a4e39044..9e328419dc2 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 33afad1a5f6..e4a3bcbb8d7 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 0c8ac29e585..3ab0cc05d17 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 3389f5edb9f..982e4b378df 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 608347e7baa..7dbaad953ca 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 293e88b0524..ab9c10752cd 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index daf0edfe0ff..5caee578205 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index be7c6e06764..eec9569fff7 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index eea39f2cf08..c058443b04d 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 8a88d6b5d38..b5177548159 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 30e8b06c571..70f78138e64 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index d6972b69630..67da8394687 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 0d771ddb910..67582ef9836 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index f44766e05d6..a37eb275701 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 020c26ec745..36ca00bfe88 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 8c15885a8a6..f79a5a71ae2 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 68fc856c690..41c2ce50dd1 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index f1bc57c85b9..49b1c0ad233 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 4a68834d028..5706249ef93 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 1958ce66f36..87f09499430 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index cf7900eb79b..f9c14e6505e 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 1ddd8293099..c2624ffc206 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 58a4aec467c..6bea7feb525 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 2d88365a59d..ba0aa5d1d51 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 0fe9d82428f..22037d94656 100644 --- a/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index ab657f78877..cb320cb5234 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -48,7 +48,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// Find more info here /// /// A @@ -92,7 +92,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,7 +137,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs index d0765f6de04..ca1d2f0f569 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -43,7 +43,7 @@ public PermissionGrantsRequestBuilder(Dictionary pathParameters, public PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/chats/{chat%2Did}/permissionGrants{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has. /// Find more info here /// /// A @@ -86,7 +86,7 @@ public async Task PostAsync(ResourceSpecificPer return await RequestAdapter.SendAsync(requestInfo, ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has. /// public class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs index 095a91cb3ba..6ce4e871ab2 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -75,7 +75,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. + /// Update the properties of the specified tab in a chat. This API can be used to configure the content of the tab. /// Find more info here /// /// A @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. + /// Update the properties of the specified tab in a chat. This API can be used to configure the content of the tab. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/CloudClipboard/CloudClipboardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CloudClipboard/CloudClipboardRequestBuilder.cs new file mode 100644 index 00000000000..7b613c7c923 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/CloudClipboard/CloudClipboardRequestBuilder.cs @@ -0,0 +1,203 @@ +// +using Microsoft.Graph.Beta.Me.CloudClipboard.Items; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Me.CloudClipboard { + /// + /// Provides operations to manage the cloudClipboard property of the microsoft.graph.user entity. + /// + public class CloudClipboardRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the items property of the microsoft.graph.cloudClipboardRoot entity. + public ItemsRequestBuilder Items { get => + new ItemsRequestBuilder(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 CloudClipboardRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/cloudClipboard{?%24expand,%24select}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CloudClipboardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/cloudClipboard{?%24expand,%24select}", rawUrl) { + } + /// + /// Delete navigation property cloudClipboard for me + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get cloudClipboard from me + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CloudClipboardRoot.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property cloudClipboard in me + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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(CloudClipboardRoot body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(CloudClipboardRoot body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CloudClipboardRoot.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property cloudClipboard for me + /// + /// A + /// Configuration 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, "{+baseurl}/me/cloudClipboard", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get cloudClipboard from me + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 cloudClipboard in me + /// + /// A + /// The request body + /// Configuration 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(CloudClipboardRoot body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(CloudClipboardRoot body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/me/cloudClipboard", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CloudClipboardRequestBuilder WithUrl(string rawUrl) { + return new CloudClipboardRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CloudClipboardRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Get cloudClipboard from me + /// + public class CloudClipboardRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CloudClipboardRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CloudClipboardRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/CloudClipboard/Items/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CloudClipboard/Items/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..7c8f7531482 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/CloudClipboard/Items/Count/CountRequestBuilder.cs @@ -0,0 +1,107 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Me.CloudClipboard.Items.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public 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}/me/cloudClipboard/items/$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}/me/cloudClipboard/items/$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", 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 CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public 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.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/CloudClipboard/Items/Item/CloudClipboardItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CloudClipboard/Items/Item/CloudClipboardItemItemRequestBuilder.cs new file mode 100644 index 00000000000..a476c85cfdc --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/CloudClipboard/Items/Item/CloudClipboardItemItemRequestBuilder.cs @@ -0,0 +1,198 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Me.CloudClipboard.Items.Item { + /// + /// Provides operations to manage the items property of the microsoft.graph.cloudClipboardRoot entity. + /// + public class CloudClipboardItemItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CloudClipboardItemItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/cloudClipboard/items/{cloudClipboardItem%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 CloudClipboardItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/cloudClipboard/items/{cloudClipboardItem%2Did}{?%24expand,%24select}", rawUrl) { + } + /// + /// Delete navigation property items for me + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get items from me + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CloudClipboardItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property items in me + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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(CloudClipboardItem body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(CloudClipboardItem body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CloudClipboardItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property items for me + /// + /// A + /// Configuration 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, "{+baseurl}/me/cloudClipboard/items/{cloudClipboardItem%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get items from me + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 items in me + /// + /// A + /// The request body + /// Configuration 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(CloudClipboardItem body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(CloudClipboardItem body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/me/cloudClipboard/items/{cloudClipboardItem%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CloudClipboardItemItemRequestBuilder WithUrl(string rawUrl) { + return new CloudClipboardItemItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CloudClipboardItemItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Get items from me + /// + public class CloudClipboardItemItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CloudClipboardItemItemRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CloudClipboardItemItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/CloudClipboard/Items/ItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CloudClipboard/Items/ItemsRequestBuilder.cs new file mode 100644 index 00000000000..0be876b431d --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/CloudClipboard/Items/ItemsRequestBuilder.cs @@ -0,0 +1,209 @@ +// +using Microsoft.Graph.Beta.Me.CloudClipboard.Items.Count; +using Microsoft.Graph.Beta.Me.CloudClipboard.Items.Item; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Me.CloudClipboard.Items { + /// + /// Provides operations to manage the items property of the microsoft.graph.cloudClipboardRoot entity. + /// + public class ItemsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the items property of the microsoft.graph.cloudClipboardRoot entity. + /// The unique identifier of cloudClipboardItem + /// A + public CloudClipboardItemItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("cloudClipboardItem%2Did", position); + return new CloudClipboardItemItemRequestBuilder(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 ItemsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/cloudClipboard/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ItemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/cloudClipboard/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { + } + /// + /// Get items from me + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CloudClipboardItemCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to items for me + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(CloudClipboardItem body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(CloudClipboardItem body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CloudClipboardItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get items from me + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 items for me + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(CloudClipboardItem body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(CloudClipboardItem body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/me/cloudClipboard/items", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public ItemsRequestBuilder WithUrl(string rawUrl) { + return new ItemsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get items from me + /// + public class ItemsRequestBuilderGetQueryParameters { + /// 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.")] + public class ItemsRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class ItemsRequestBuilderPostRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs index c995c09ed2c..3cfb945989f 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs @@ -36,44 +36,44 @@ public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// Optional contact picture. You can get or set a photo for a contact. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update the navigation property photo in me /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Optional contact picture. You can get or set a photo for a contact. @@ -100,10 +100,10 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/me/contactFolders/{contactFolder%2Did}/childFolders/{contactFolder%2Did1}/contacts/{contact%2Did}/photo", PathParameters); diff --git a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs index 7249c249b01..a94d54f3f74 100644 --- a/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/ContactFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs @@ -36,44 +36,44 @@ public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// Optional contact picture. You can get or set a photo for a contact. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update the navigation property photo in me /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Optional contact picture. You can get or set a photo for a contact. @@ -100,10 +100,10 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/me/contactFolders/{contactFolder%2Did}/contacts/{contact%2Did}/photo", PathParameters); diff --git a/src/Microsoft.Graph/Generated/Me/Contacts/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Contacts/Item/Photo/PhotoRequestBuilder.cs index f86b5c7de53..de09a5fe4f0 100644 --- a/src/Microsoft.Graph/Generated/Me/Contacts/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Contacts/Item/Photo/PhotoRequestBuilder.cs @@ -36,44 +36,44 @@ public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// Optional contact picture. You can get or set a photo for a contact. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update the navigation property photo in me /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Optional contact picture. You can get or set a photo for a contact. @@ -100,10 +100,10 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/me/contacts/{contact%2Did}/photo", PathParameters); diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 81c2f8998d7..7adfd1eec20 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 78f5da3bd0d..d39d9599edc 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 33527d3ea0c..7498dc9b05d 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 57c0afc1d2f..2ce628d10b7 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index a7f00ae511e..3633d5a55cf 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs index 741b2bd7f61..c4313544c07 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, MailFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. - /// Find more info here + /// Create a new mailSearchFolder in the specified user's mailbox. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. + /// Create a new mailSearchFolder in the specified user's mailbox. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index ebca02ccd85..0a5119e37e4 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,8 +48,8 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24select}", rawUrl) { } /// - /// Retrieve a list of attachment objects. - /// Find more info here + /// Retrieve a list of attachment objects attached to a message. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,7 +137,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MailFolderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MailFolderItemRequestBuilder.cs index ebb870bdd38..6a9268c140d 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MailFolderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/MailFolderItemRequestBuilder.cs @@ -100,8 +100,8 @@ public async Task GetAsync(Action(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the writable properties of a mailSearchFolder object. - /// Find more info here + /// Update the properties of mailFolder object. + /// Find more info here /// /// A /// The request body @@ -157,7 +157,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the writable properties of a mailSearchFolder object. + /// Update the properties of mailFolder object. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index b413901b207..b250e731103 100644 --- a/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,8 +48,8 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24select}", rawUrl) { } /// - /// Retrieve a list of attachment objects. - /// Find more info here + /// Retrieve a list of attachment objects attached to a message. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,7 +137,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs index d43d657b61e..a1c4995c528 100644 --- a/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs @@ -17,6 +17,7 @@ using Microsoft.Graph.Beta.Me.Chats; using Microsoft.Graph.Beta.Me.CheckMemberGroups; using Microsoft.Graph.Beta.Me.CheckMemberObjects; +using Microsoft.Graph.Beta.Me.CloudClipboard; using Microsoft.Graph.Beta.Me.CloudPCs; using Microsoft.Graph.Beta.Me.ContactFolders; using Microsoft.Graph.Beta.Me.Contacts; @@ -192,6 +193,10 @@ public class MeRequestBuilder : BaseRequestBuilder { public CheckMemberObjectsRequestBuilder CheckMemberObjects { get => new CheckMemberObjectsRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the cloudClipboard property of the microsoft.graph.user entity. + public CloudClipboardRequestBuilder CloudClipboard { get => + new CloudClipboardRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the cloudPCs property of the microsoft.graph.user entity. public CloudPCsRequestBuilder CloudPCs { get => new CloudPCsRequestBuilder(PathParameters, RequestAdapter); @@ -593,8 +598,8 @@ public FindRoomsWithRoomListRequestBuilder FindRoomsWithRoomList(string roomList return new FindRoomsWithRoomListRequestBuilder(PathParameters, RequestAdapter, roomList); } /// - /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. - /// Find more info here + /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -657,7 +662,7 @@ public ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder ReminderViewWi return new ReminderViewWithStartDateTimeWithEndDateTimeRequestBuilder(PathParameters, RequestAdapter, endDateTime, startDateTime); } /// - /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. + /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -702,7 +707,7 @@ public MeRequestBuilder WithUrl(string rawUrl) { return new MeRequestBuilder(rawUrl, RequestAdapter); } /// - /// Returns the user or organizational contact assigned as the user's manager. Optionally, you can expand the manager's chain up to the root node. + /// Retrieve the properties and relationships of user object. This operation returns by default only a subset of the more commonly used properties for each user. These default properties are noted in the Properties section. To get properties that are not returned by default, do a GET operation for the user and specify the properties in a $select OData query option. Because the user resource supports extensions, you can also use the GET operation to get custom properties and extension data in a user instance. /// public class MeRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 00c42bc664b..d055072c4ed 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,8 +48,8 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24select}", rawUrl) { } /// - /// Retrieve a list of attachment objects. - /// Find more info here + /// Retrieve a list of attachment objects attached to a message. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,7 +137,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs index dd4d0ea1927..7ddff8ce13f 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs @@ -130,7 +130,7 @@ public async Task DeleteAsync(Action /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs index 7712c831759..fa56e03026a 100644 --- a/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs @@ -39,8 +39,8 @@ public RegistrationRequestBuilder(Dictionary pathParameters, IRe public RegistrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/onlineMeetings/{onlineMeeting%2Did}/registration{?%24expand,%24select}", rawUrl) { } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. - /// Find more info here + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -103,7 +103,7 @@ public async Task PatchAsync(MeetingRegistration body, Acti return await RequestAdapter.SendAsync(requestInfo, MeetingRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Photo/PhotoRequestBuilder.cs index 10a35d6bb43..571eae22d89 100644 --- a/src/Microsoft.Graph/Generated/Me/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Photo/PhotoRequestBuilder.cs @@ -36,44 +36,44 @@ public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// The user's profile photo. Read-only. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update the navigation property photo in me /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The user's profile photo. Read-only. @@ -100,10 +100,10 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/me/photo", PathParameters); diff --git a/src/Microsoft.Graph/Generated/Me/Photos/Item/ProfilePhotoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Photos/Item/ProfilePhotoItemRequestBuilder.cs index 8509208e548..757fa827779 100644 --- a/src/Microsoft.Graph/Generated/Me/Photos/Item/ProfilePhotoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Photos/Item/ProfilePhotoItemRequestBuilder.cs @@ -36,22 +36,22 @@ public ProfilePhotoItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// The collection of the user's profile photos in different sizes. Read-only. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The collection of the user's profile photos in different sizes. Read-only. diff --git a/src/Microsoft.Graph/Generated/Me/Settings/SettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Settings/SettingsRequestBuilder.cs index 815c63d956d..c466c041831 100644 --- a/src/Microsoft.Graph/Generated/Me/Settings/SettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Settings/SettingsRequestBuilder.cs @@ -3,6 +3,7 @@ using Microsoft.Graph.Beta.Me.Settings.ItemInsights; using Microsoft.Graph.Beta.Me.Settings.RegionalAndLanguageSettings; using Microsoft.Graph.Beta.Me.Settings.ShiftPreferences; +using Microsoft.Graph.Beta.Me.Settings.Windows; using Microsoft.Graph.Beta.Models.ODataErrors; using Microsoft.Graph.Beta.Models; using Microsoft.Kiota.Abstractions.Serialization; @@ -34,6 +35,10 @@ public class SettingsRequestBuilder : BaseRequestBuilder { public ShiftPreferencesRequestBuilder ShiftPreferences { get => new ShiftPreferencesRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the windows property of the microsoft.graph.userSettings entity. + public WindowsRequestBuilder Windows { get => + new WindowsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Me/Settings/Windows/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Settings/Windows/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..470bd0bf4a1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Settings/Windows/Count/CountRequestBuilder.cs @@ -0,0 +1,107 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Me.Settings.Windows.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public 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}/me/settings/windows/$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}/me/settings/windows/$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", 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 CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public 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.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Settings/Windows/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Settings/Windows/Item/Instances/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..f60b4776642 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Settings/Windows/Item/Instances/Count/CountRequestBuilder.cs @@ -0,0 +1,107 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Me.Settings.Windows.Item.Instances.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public 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}/me/settings/windows/{windowsSetting%2Did}/instances/$count{?%24filter,%24search}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/settings/windows/{windowsSetting%2Did}/instances/$count{?%24filter,%24search}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", 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 CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public 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.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Settings/Windows/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Settings/Windows/Item/Instances/InstancesRequestBuilder.cs new file mode 100644 index 00000000000..245600e19a8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Settings/Windows/Item/Instances/InstancesRequestBuilder.cs @@ -0,0 +1,209 @@ +// +using Microsoft.Graph.Beta.Me.Settings.Windows.Item.Instances.Count; +using Microsoft.Graph.Beta.Me.Settings.Windows.Item.Instances.Item; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Me.Settings.Windows.Item.Instances { + /// + /// Provides operations to manage the instances property of the microsoft.graph.windowsSetting entity. + /// + public class InstancesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the instances property of the microsoft.graph.windowsSetting entity. + /// The unique identifier of windowsSettingInstance + /// A + public WindowsSettingInstanceItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("windowsSettingInstance%2Did", position); + return new WindowsSettingInstanceItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public InstancesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/settings/windows/{windowsSetting%2Did}/instances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public InstancesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/settings/windows/{windowsSetting%2Did}/instances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { + } + /// + /// Get instances from me + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WindowsSettingInstanceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to instances for me + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(WindowsSettingInstance body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(WindowsSettingInstance body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WindowsSettingInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get instances from me + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to instances for me + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(WindowsSettingInstance body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(WindowsSettingInstance body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/me/settings/windows/{windowsSetting%2Did}/instances", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public InstancesRequestBuilder WithUrl(string rawUrl) { + return new InstancesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get instances from me + /// + public class InstancesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class InstancesRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class InstancesRequestBuilderPostRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Settings/Windows/Item/Instances/Item/WindowsSettingInstanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Settings/Windows/Item/Instances/Item/WindowsSettingInstanceItemRequestBuilder.cs new file mode 100644 index 00000000000..9c4a686e893 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Settings/Windows/Item/Instances/Item/WindowsSettingInstanceItemRequestBuilder.cs @@ -0,0 +1,198 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Me.Settings.Windows.Item.Instances.Item { + /// + /// Provides operations to manage the instances property of the microsoft.graph.windowsSetting entity. + /// + public class WindowsSettingInstanceItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public WindowsSettingInstanceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/settings/windows/{windowsSetting%2Did}/instances/{windowsSettingInstance%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 WindowsSettingInstanceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/settings/windows/{windowsSetting%2Did}/instances/{windowsSettingInstance%2Did}{?%24expand,%24select}", rawUrl) { + } + /// + /// Delete navigation property instances for me + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get instances from me + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WindowsSettingInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property instances in me + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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(WindowsSettingInstance body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(WindowsSettingInstance body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WindowsSettingInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property instances for me + /// + /// A + /// Configuration 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, "{+baseurl}/me/settings/windows/{windowsSetting%2Did}/instances/{windowsSettingInstance%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get instances from me + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property instances in me + /// + /// A + /// The request body + /// Configuration 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(WindowsSettingInstance body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(WindowsSettingInstance body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/me/settings/windows/{windowsSetting%2Did}/instances/{windowsSettingInstance%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public WindowsSettingInstanceItemRequestBuilder WithUrl(string rawUrl) { + return new WindowsSettingInstanceItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class WindowsSettingInstanceItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Get instances from me + /// + public class WindowsSettingInstanceItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class WindowsSettingInstanceItemRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class WindowsSettingInstanceItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Settings/Windows/Item/WindowsSettingItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Settings/Windows/Item/WindowsSettingItemRequestBuilder.cs new file mode 100644 index 00000000000..1795b28b3a0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Settings/Windows/Item/WindowsSettingItemRequestBuilder.cs @@ -0,0 +1,203 @@ +// +using Microsoft.Graph.Beta.Me.Settings.Windows.Item.Instances; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Me.Settings.Windows.Item { + /// + /// Provides operations to manage the windows property of the microsoft.graph.userSettings entity. + /// + public class WindowsSettingItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the instances property of the microsoft.graph.windowsSetting entity. + public InstancesRequestBuilder Instances { get => + new InstancesRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public WindowsSettingItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/settings/windows/{windowsSetting%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 WindowsSettingItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/settings/windows/{windowsSetting%2Did}{?%24expand,%24select}", rawUrl) { + } + /// + /// Delete navigation property windows for me + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get windows from me + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WindowsSetting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property windows in me + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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(WindowsSetting body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(WindowsSetting body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WindowsSetting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property windows for me + /// + /// A + /// Configuration 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, "{+baseurl}/me/settings/windows/{windowsSetting%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get windows from me + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 windows in me + /// + /// A + /// The request body + /// Configuration 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(WindowsSetting body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(WindowsSetting body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/me/settings/windows/{windowsSetting%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public WindowsSettingItemRequestBuilder WithUrl(string rawUrl) { + return new WindowsSettingItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class WindowsSettingItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Get windows from me + /// + public class WindowsSettingItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class WindowsSettingItemRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class WindowsSettingItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Me/Settings/Windows/WindowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Settings/Windows/WindowsRequestBuilder.cs new file mode 100644 index 00000000000..24c5f6aef0a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Me/Settings/Windows/WindowsRequestBuilder.cs @@ -0,0 +1,209 @@ +// +using Microsoft.Graph.Beta.Me.Settings.Windows.Count; +using Microsoft.Graph.Beta.Me.Settings.Windows.Item; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Me.Settings.Windows { + /// + /// Provides operations to manage the windows property of the microsoft.graph.userSettings entity. + /// + public class WindowsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the windows property of the microsoft.graph.userSettings entity. + /// The unique identifier of windowsSetting + /// A + public WindowsSettingItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("windowsSetting%2Did", position); + return new WindowsSettingItemRequestBuilder(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 WindowsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/settings/windows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public WindowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/settings/windows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { + } + /// + /// Get windows from me + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WindowsSettingCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to windows for me + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(WindowsSetting body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(WindowsSetting body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WindowsSetting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get windows from me + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 windows for me + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(WindowsSetting body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(WindowsSetting body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/me/settings/windows", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public WindowsRequestBuilder WithUrl(string rawUrl) { + return new WindowsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get windows from me + /// + public class WindowsRequestBuilderGetQueryParameters { + /// 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.")] + public class WindowsRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class WindowsRequestBuilderPostRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AdministrativeUnit.cs b/src/Microsoft.Graph/Generated/Models/AdministrativeUnit.cs index 200ef77afd9..3b5cac429a0 100644 --- a/src/Microsoft.Graph/Generated/Models/AdministrativeUnit.cs +++ b/src/Microsoft.Graph/Generated/Models/AdministrativeUnit.cs @@ -66,6 +66,48 @@ public List Members { get { return BackingStore?.Get>("members"); } set { BackingStore?.Set("members", value); } } +#endif + /// Dynamic membership rule for the administrative unit. For more about the rules that you can use for dynamic administrative units and dynamic groups, see Using attributes to create advanced rules. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MembershipRule { + get { return BackingStore?.Get("membershipRule"); } + set { BackingStore?.Set("membershipRule", value); } + } +#nullable restore +#else + public string MembershipRule { + get { return BackingStore?.Get("membershipRule"); } + set { BackingStore?.Set("membershipRule", value); } + } +#endif + /// Used to control whether the dynamic membership rule is actively processed. Set to On when you want the dynamic membership rule to be active and Paused if you want to stop updating membership dynamically. If not set, the default behavior is Paused. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MembershipRuleProcessingState { + get { return BackingStore?.Get("membershipRuleProcessingState"); } + set { BackingStore?.Set("membershipRuleProcessingState", value); } + } +#nullable restore +#else + public string MembershipRuleProcessingState { + get { return BackingStore?.Get("membershipRuleProcessingState"); } + set { BackingStore?.Set("membershipRuleProcessingState", value); } + } +#endif + /// Membership type for the administrative unit. Can be dynamic or assigned. If not set, the default behavior is assigned. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MembershipType { + get { return BackingStore?.Get("membershipType"); } + set { BackingStore?.Set("membershipType", value); } + } +#nullable restore +#else + public string MembershipType { + get { return BackingStore?.Get("membershipType"); } + set { BackingStore?.Set("membershipType", value); } + } #endif /// Scoped-role members of this administrative unit. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -121,6 +163,9 @@ public override IDictionary> GetFieldDeserializers() {"extensions", n => { Extensions = n.GetCollectionOfObjectValues(Extension.CreateFromDiscriminatorValue)?.ToList(); } }, {"isMemberManagementRestricted", n => { IsMemberManagementRestricted = n.GetBoolValue(); } }, {"members", n => { Members = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + {"membershipRule", n => { MembershipRule = n.GetStringValue(); } }, + {"membershipRuleProcessingState", n => { MembershipRuleProcessingState = n.GetStringValue(); } }, + {"membershipType", n => { MembershipType = n.GetStringValue(); } }, {"scopedRoleMembers", n => { ScopedRoleMembers = n.GetCollectionOfObjectValues(ScopedRoleMembership.CreateFromDiscriminatorValue)?.ToList(); } }, {"visibility", n => { Visibility = n.GetStringValue(); } }, }; @@ -137,6 +182,9 @@ public override void Serialize(ISerializationWriter writer) { writer.WriteCollectionOfObjectValues("extensions", Extensions); writer.WriteBoolValue("isMemberManagementRestricted", IsMemberManagementRestricted); writer.WriteCollectionOfObjectValues("members", Members); + writer.WriteStringValue("membershipRule", MembershipRule); + writer.WriteStringValue("membershipRuleProcessingState", MembershipRuleProcessingState); + writer.WriteStringValue("membershipType", MembershipType); writer.WriteCollectionOfObjectValues("scopedRoleMembers", ScopedRoleMembers); writer.WriteStringValue("visibility", Visibility); } diff --git a/src/Microsoft.Graph/Generated/Models/AttendeeNotificationInfo.cs b/src/Microsoft.Graph/Generated/Models/AttendeeNotificationInfo.cs index d03f99ef537..b1a29ac0eb7 100644 --- a/src/Microsoft.Graph/Generated/Models/AttendeeNotificationInfo.cs +++ b/src/Microsoft.Graph/Generated/Models/AttendeeNotificationInfo.cs @@ -28,7 +28,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// The phoneNumber property + /// The phone number of the external attendee. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? PhoneNumber { @@ -42,7 +42,7 @@ public string PhoneNumber { set { BackingStore?.Set("phoneNumber", value); } } #endif - /// The timeZone property + /// The time zone of the external attendee. The timeZone property can be set to any of the time zones currently supported by Windows. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? TimeZone { diff --git a/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs b/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs index 8c4bce7c17b..1d8e3199891 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs @@ -244,6 +244,11 @@ public string InvoiceUrl { set { BackingStore?.Set("invoiceUrl", value); } } #endif + /// The isCustomerAllowedToManageBooking property + public bool? IsCustomerAllowedToManageBooking { + get { return BackingStore?.Get("isCustomerAllowedToManageBooking"); } + set { BackingStore?.Set("isCustomerAllowedToManageBooking", value); } + } /// True indicates that the appointment will be held online. Default value is false. public bool? IsLocationOnline { get { return BackingStore?.Get("isLocationOnline"); } @@ -464,6 +469,7 @@ public override IDictionary> GetFieldDeserializers() {"invoiceId", n => { InvoiceId = n.GetStringValue(); } }, {"invoiceStatus", n => { InvoiceStatus = n.GetEnumValue(); } }, {"invoiceUrl", n => { InvoiceUrl = n.GetStringValue(); } }, + {"isCustomerAllowedToManageBooking", n => { IsCustomerAllowedToManageBooking = n.GetBoolValue(); } }, {"isLocationOnline", n => { IsLocationOnline = n.GetBoolValue(); } }, {"joinWebUrl", n => { JoinWebUrl = n.GetStringValue(); } }, {"lastUpdatedDateTime", n => { LastUpdatedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -510,6 +516,7 @@ public override void Serialize(ISerializationWriter writer) { writer.WriteStringValue("invoiceId", InvoiceId); writer.WriteEnumValue("invoiceStatus", InvoiceStatus); writer.WriteStringValue("invoiceUrl", InvoiceUrl); + writer.WriteBoolValue("isCustomerAllowedToManageBooking", IsCustomerAllowedToManageBooking); writer.WriteBoolValue("isLocationOnline", IsLocationOnline); writer.WriteStringValue("joinWebUrl", JoinWebUrl); writer.WriteDateTimeOffsetValue("lastUpdatedDateTime", LastUpdatedDateTime); diff --git a/src/Microsoft.Graph/Generated/Models/BookingSchedulingPolicy.cs b/src/Microsoft.Graph/Generated/Models/BookingSchedulingPolicy.cs index 84400221318..d460dc399ab 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingSchedulingPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingSchedulingPolicy.cs @@ -22,6 +22,34 @@ public bool? AllowStaffSelection { } /// Stores model information. public IBackingStore BackingStore { get; private set; } + /// collection of custom availabilities for a given time range. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? CustomAvailabilities { + get { return BackingStore?.Get?>("customAvailabilities"); } + set { BackingStore?.Set("customAvailabilities", value); } + } +#nullable restore +#else + public List CustomAvailabilities { + get { return BackingStore?.Get>("customAvailabilities"); } + set { BackingStore?.Set("customAvailabilities", value); } + } +#endif + /// General availability +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public BookingsAvailability? GeneralAvailability { + get { return BackingStore?.Get("generalAvailability"); } + set { BackingStore?.Set("generalAvailability", value); } + } +#nullable restore +#else + public BookingsAvailability GeneralAvailability { + get { return BackingStore?.Get("generalAvailability"); } + set { BackingStore?.Set("generalAvailability", value); } + } +#endif /// Indicates if the meeting invite is sent to the customers. The default value is false public bool? IsMeetingInviteToCustomersEnabled { get { return BackingStore?.Get("isMeetingInviteToCustomersEnabled"); } @@ -84,6 +112,8 @@ public static BookingSchedulingPolicy CreateFromDiscriminatorValue(IParseNode pa public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"allowStaffSelection", n => { AllowStaffSelection = n.GetBoolValue(); } }, + {"customAvailabilities", n => { CustomAvailabilities = n.GetCollectionOfObjectValues(BookingsAvailabilityWindow.CreateFromDiscriminatorValue)?.ToList(); } }, + {"generalAvailability", n => { GeneralAvailability = n.GetObjectValue(BookingsAvailability.CreateFromDiscriminatorValue); } }, {"isMeetingInviteToCustomersEnabled", n => { IsMeetingInviteToCustomersEnabled = n.GetBoolValue(); } }, {"maximumAdvance", n => { MaximumAdvance = n.GetTimeSpanValue(); } }, {"minimumLeadTime", n => { MinimumLeadTime = n.GetTimeSpanValue(); } }, @@ -99,6 +129,8 @@ public virtual IDictionary> GetFieldDeserializers() { public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("allowStaffSelection", AllowStaffSelection); + writer.WriteCollectionOfObjectValues("customAvailabilities", CustomAvailabilities); + writer.WriteObjectValue("generalAvailability", GeneralAvailability); writer.WriteBoolValue("isMeetingInviteToCustomersEnabled", IsMeetingInviteToCustomersEnabled); writer.WriteTimeSpanValue("maximumAdvance", MaximumAdvance); writer.WriteTimeSpanValue("minimumLeadTime", MinimumLeadTime); diff --git a/src/Microsoft.Graph/Generated/Models/BookingService.cs b/src/Microsoft.Graph/Generated/Models/BookingService.cs index fa1e97537f3..5480a9940af 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingService.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingService.cs @@ -104,6 +104,11 @@ public bool? IsAnonymousJoinEnabled { get { return BackingStore?.Get("isAnonymousJoinEnabled"); } set { BackingStore?.Set("isAnonymousJoinEnabled", value); } } + /// The isCustomerAllowedToManageBooking property + public bool? IsCustomerAllowedToManageBooking { + get { return BackingStore?.Get("isCustomerAllowedToManageBooking"); } + set { BackingStore?.Set("isCustomerAllowedToManageBooking", value); } + } /// True means this service isn't available to customers for booking. public bool? IsHiddenFromCustomers { get { return BackingStore?.Get("isHiddenFromCustomers"); } @@ -240,6 +245,7 @@ public override IDictionary> GetFieldDeserializers() {"defaultReminders", n => { DefaultReminders = n.GetCollectionOfObjectValues(BookingReminder.CreateFromDiscriminatorValue)?.ToList(); } }, {"description", n => { Description = n.GetStringValue(); } }, {"isAnonymousJoinEnabled", n => { IsAnonymousJoinEnabled = n.GetBoolValue(); } }, + {"isCustomerAllowedToManageBooking", n => { IsCustomerAllowedToManageBooking = n.GetBoolValue(); } }, {"isHiddenFromCustomers", n => { IsHiddenFromCustomers = n.GetBoolValue(); } }, {"isLocationOnline", n => { IsLocationOnline = n.GetBoolValue(); } }, {"languageTag", n => { LanguageTag = n.GetStringValue(); } }, @@ -271,6 +277,7 @@ public override void Serialize(ISerializationWriter writer) { writer.WriteCollectionOfObjectValues("defaultReminders", DefaultReminders); writer.WriteStringValue("description", Description); writer.WriteBoolValue("isAnonymousJoinEnabled", IsAnonymousJoinEnabled); + writer.WriteBoolValue("isCustomerAllowedToManageBooking", IsCustomerAllowedToManageBooking); writer.WriteBoolValue("isHiddenFromCustomers", IsHiddenFromCustomers); writer.WriteBoolValue("isLocationOnline", IsLocationOnline); writer.WriteStringValue("languageTag", LanguageTag); diff --git a/src/Microsoft.Graph/Generated/Models/BookingsAvailability.cs b/src/Microsoft.Graph/Generated/Models/BookingsAvailability.cs new file mode 100644 index 00000000000..6797285f911 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/BookingsAvailability.cs @@ -0,0 +1,93 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class BookingsAvailability : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("AdditionalData"); } + set { BackingStore?.Set("AdditionalData", value); } + } + /// The availabilityType property + public BookingsServiceAvailabilityType? AvailabilityType { + get { return BackingStore?.Get("availabilityType"); } + set { BackingStore?.Set("availabilityType", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The hours of operation in a week. This is set to null if the availability type is not customWeeklyHours +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? BusinessHours { + get { return BackingStore?.Get?>("businessHours"); } + set { BackingStore?.Set("businessHours", value); } + } +#nullable restore +#else + public List BusinessHours { + get { return BackingStore?.Get>("businessHours"); } + set { BackingStore?.Set("businessHours", value); } + } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public BookingsAvailability() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + 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 BookingsAvailability CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.bookingsAvailabilityWindow" => new BookingsAvailabilityWindow(), + _ => new BookingsAvailability(), + }; + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"availabilityType", n => { AvailabilityType = n.GetEnumValue(); } }, + {"businessHours", n => { BusinessHours = n.GetCollectionOfObjectValues(BookingWorkHours.CreateFromDiscriminatorValue)?.ToList(); } }, + {"@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) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteEnumValue("availabilityType", AvailabilityType); + writer.WriteCollectionOfObjectValues("businessHours", BusinessHours); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/BookingsAvailabilityWindow.cs b/src/Microsoft.Graph/Generated/Models/BookingsAvailabilityWindow.cs new file mode 100644 index 00000000000..26b969b5805 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/BookingsAvailabilityWindow.cs @@ -0,0 +1,56 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class BookingsAvailabilityWindow : BookingsAvailability, IParsable { + /// Allow customers to end date of availability window. + public Date? EndDate { + get { return BackingStore?.Get("endDate"); } + set { BackingStore?.Set("endDate", value); } + } + /// Allow customers to start date of availability window. + public Date? StartDate { + get { return BackingStore?.Get("startDate"); } + set { BackingStore?.Set("startDate", value); } + } + /// + /// Instantiates a new and sets the default values. + /// + public BookingsAvailabilityWindow() : base() { + OdataType = "#microsoft.graph.bookingsAvailabilityWindow"; + } + /// + /// Creates a new instance of 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 BookingsAvailabilityWindow CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new BookingsAvailabilityWindow(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"endDate", n => { EndDate = n.GetDateValue(); } }, + {"startDate", n => { StartDate = n.GetDateValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteDateValue("endDate", EndDate); + writer.WriteDateValue("startDate", StartDate); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/BookingsServiceAvailabilityType.cs b/src/Microsoft.Graph/Generated/Models/BookingsServiceAvailabilityType.cs new file mode 100644 index 00000000000..3d7cc01616e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/BookingsServiceAvailabilityType.cs @@ -0,0 +1,15 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Beta.Models { + public enum BookingsServiceAvailabilityType { + [EnumMember(Value = "bookWhenStaffAreFree")] + BookWhenStaffAreFree, + [EnumMember(Value = "notBookable")] + NotBookable, + [EnumMember(Value = "customWeeklyHours")] + CustomWeeklyHours, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/CloudClipboardItem.cs b/src/Microsoft.Graph/Generated/Models/CloudClipboardItem.cs new file mode 100644 index 00000000000..e883c632dd3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CloudClipboardItem.cs @@ -0,0 +1,72 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class CloudClipboardItem : Entity, IParsable { + /// The createdDateTime property + public DateTimeOffset? CreatedDateTime { + get { return BackingStore?.Get("createdDateTime"); } + set { BackingStore?.Set("createdDateTime", value); } + } + /// The expirationDateTime property + public DateTimeOffset? ExpirationDateTime { + get { return BackingStore?.Get("expirationDateTime"); } + set { BackingStore?.Set("expirationDateTime", value); } + } + /// The lastModifiedDateTime property + public DateTimeOffset? LastModifiedDateTime { + get { return BackingStore?.Get("lastModifiedDateTime"); } + set { BackingStore?.Set("lastModifiedDateTime", value); } + } + /// The payloads property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Payloads { + get { return BackingStore?.Get?>("payloads"); } + set { BackingStore?.Set("payloads", value); } + } +#nullable restore +#else + public List Payloads { + get { return BackingStore?.Get>("payloads"); } + set { BackingStore?.Set("payloads", value); } + } +#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 CloudClipboardItem CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CloudClipboardItem(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + {"expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, + {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, + {"payloads", n => { Payloads = n.GetCollectionOfObjectValues(CloudClipboardItemPayload.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime); + writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); + writer.WriteCollectionOfObjectValues("payloads", Payloads); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/CloudClipboardItemCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/CloudClipboardItemCollectionResponse.cs new file mode 100644 index 00000000000..a24fee467af --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CloudClipboardItemCollectionResponse.cs @@ -0,0 +1,51 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class CloudClipboardItemCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#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 CloudClipboardItemCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CloudClipboardItemCollectionResponse(); + } + /// + /// 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(CloudClipboardItem.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/CloudClipboardItemPayload.cs b/src/Microsoft.Graph/Generated/Models/CloudClipboardItemPayload.cs new file mode 100644 index 00000000000..7665720a727 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CloudClipboardItemPayload.cs @@ -0,0 +1,98 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class CloudClipboardItemPayload : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("AdditionalData"); } + set { BackingStore?.Set("AdditionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The content property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Content { + get { return BackingStore?.Get("content"); } + set { BackingStore?.Set("content", value); } + } +#nullable restore +#else + public string Content { + get { return BackingStore?.Get("content"); } + set { BackingStore?.Set("content", value); } + } +#endif + /// The formatName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? FormatName { + get { return BackingStore?.Get("formatName"); } + set { BackingStore?.Set("formatName", value); } + } +#nullable restore +#else + public string FormatName { + get { return BackingStore?.Get("formatName"); } + set { BackingStore?.Set("formatName", value); } + } +#endif + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public CloudClipboardItemPayload() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + 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 CloudClipboardItemPayload CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CloudClipboardItemPayload(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"content", n => { Content = n.GetStringValue(); } }, + {"formatName", n => { FormatName = 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) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("content", Content); + writer.WriteStringValue("formatName", FormatName); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/CloudClipboardRoot.cs b/src/Microsoft.Graph/Generated/Models/CloudClipboardRoot.cs new file mode 100644 index 00000000000..b4fbc564a81 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CloudClipboardRoot.cs @@ -0,0 +1,51 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class CloudClipboardRoot : Entity, IParsable { + /// The items property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Items { + get { return BackingStore?.Get?>("items"); } + set { BackingStore?.Set("items", value); } + } +#nullable restore +#else + public List Items { + get { return BackingStore?.Get>("items"); } + set { BackingStore?.Set("items", value); } + } +#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 CloudClipboardRoot CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new CloudClipboardRoot(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"items", n => { Items = n.GetCollectionOfObjectValues(CloudClipboardItem.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("items", Items); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/CommunicationsGuestIdentity.cs b/src/Microsoft.Graph/Generated/Models/CommunicationsGuestIdentity.cs index 1996db29a7c..b0949c02c9c 100644 --- a/src/Microsoft.Graph/Generated/Models/CommunicationsGuestIdentity.cs +++ b/src/Microsoft.Graph/Generated/Models/CommunicationsGuestIdentity.cs @@ -6,6 +6,20 @@ using System; namespace Microsoft.Graph.Beta.Models { public class CommunicationsGuestIdentity : Identity, IParsable { + /// The email of the guest user. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Email { + get { return BackingStore?.Get("email"); } + set { BackingStore?.Set("email", value); } + } +#nullable restore +#else + public string Email { + get { return BackingStore?.Get("email"); } + set { BackingStore?.Set("email", value); } + } +#endif /// /// Instantiates a new and sets the default values. /// @@ -27,6 +41,7 @@ public CommunicationsGuestIdentity() : base() { /// A IDictionary<string, Action<IParseNode>> public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { + {"email", n => { Email = n.GetStringValue(); } }, }; } /// @@ -36,6 +51,7 @@ public override IDictionary> GetFieldDeserializers() public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); + writer.WriteStringValue("email", Email); } } } diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessConditionSet.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessConditionSet.cs index f54afc077d8..00c3c8fc73f 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessConditionSet.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessConditionSet.cs @@ -42,7 +42,7 @@ public ConditionalAccessClientApplications ClientApplications { set { BackingStore?.Set("clientApplications", value); } } #endif - /// Client application types included in the policy. Possible values are: all, browser, mobileAppsAndDesktopClients, exchangeActiveSync, easSupported, other. Required. The easUnsupported enumeration member will be deprecated in favor of exchangeActiveSync which includes EAS supported and unsupported platforms. + /// Client application types included in the policy. Possible values are: all, browser, mobileAppsAndDesktopClients, exchangeActiveSync, easSupported, other. Required. The easUnsupported enumeration member will be deprecated in favor of exchangeActiveSync, which includes EAS supported and unsupported platforms. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? ClientAppTypes { diff --git a/src/Microsoft.Graph/Generated/Models/DailyUserInsightMetricsRoot.cs b/src/Microsoft.Graph/Generated/Models/DailyUserInsightMetricsRoot.cs index b900e6cc3ec..d7190ecacf6 100644 --- a/src/Microsoft.Graph/Generated/Models/DailyUserInsightMetricsRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/DailyUserInsightMetricsRoot.cs @@ -20,7 +20,7 @@ public List ActiveUsers { set { BackingStore?.Set("activeUsers", value); } } #endif - /// Insights for the breakdown of users who were active on apps registered in the tenant for a specified period. + /// The activeUsersBreakdown property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? ActiveUsersBreakdown { diff --git a/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationship.cs b/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationship.cs index 9fd350d4a49..28e780e6c51 100644 --- a/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationship.cs +++ b/src/Microsoft.Graph/Generated/Models/DelegatedAdminRelationship.cs @@ -63,7 +63,7 @@ public DelegatedAdminRelationshipCustomerParticipant Customer { set { BackingStore?.Set("customer", value); } } #endif - /// The display name of the relationship used for ease of identification. Must be unique across all delegated admin relationships of the partner. This is set by the partner only when the relationship is in the created status and can't be changed by the customer. + /// The display name of the relationship used for ease of identification. Must be unique across all delegated admin relationships of the partner. This is set by the partner only when the relationship is in the created status and can't be changed by the customer. Maximum length is 50 characters. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationChoiceSettingDefinition.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationChoiceSettingDefinition.cs index 7da1e6e8c5a..237dff536f7 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationChoiceSettingDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationChoiceSettingDefinition.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Beta.Models { public class DeviceManagementConfigurationChoiceSettingDefinition : DeviceManagementConfigurationSettingDefinition, IParsable { - /// Default option for choice setting + /// Default option for the choice setting. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DefaultOptionId { @@ -20,7 +20,7 @@ public string DefaultOptionId { set { BackingStore?.Set("defaultOptionId", value); } } #endif - /// Options for the setting that can be selected + /// Options for the setting that can be selected. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Options { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationReferredSettingInformation.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationReferredSettingInformation.cs index 44da40ff108..d05a68abc13 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationReferredSettingInformation.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationReferredSettingInformation.cs @@ -31,7 +31,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// Setting definition id that is being referred to a setting. Applicable for reusable setting + /// Setting definition id that is being referred to a setting. Applicable for reusable setting. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? SettingDefinitionId { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSettingDefinition.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSettingDefinition.cs index 595e73a08a6..34ba333d9f7 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSettingDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSettingDefinition.cs @@ -11,7 +11,7 @@ public DeviceManagementConfigurationSettingAccessTypes? AccessTypes { get { return BackingStore?.Get("accessTypes"); } set { BackingStore?.Set("accessTypes", value); } } - /// Details which device setting is applicable on. Supports: $filters. + /// Details which device setting is applicable on #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public DeviceManagementConfigurationSettingApplicability? Applicability { @@ -39,7 +39,7 @@ public string BaseUri { set { BackingStore?.Set("baseUri", value); } } #endif - /// Specify category in which the setting is under. Support $filters. + /// Specifies the area group under which the setting is configured in a specified configuration service provider (CSP) #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? CategoryId { @@ -53,7 +53,7 @@ public string CategoryId { set { BackingStore?.Set("categoryId", value); } } #endif - /// Description of the setting. + /// Description of the item #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Description { @@ -67,7 +67,7 @@ public string Description { set { BackingStore?.Set("description", value); } } #endif - /// Name of the setting. For example: Allow Toast. + /// Display name of the item #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { @@ -81,7 +81,7 @@ public string DisplayName { set { BackingStore?.Set("displayName", value); } } #endif - /// Help text of the setting. Give more details of the setting. + /// Help text of the item #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? HelpText { @@ -95,7 +95,7 @@ public string HelpText { set { BackingStore?.Set("helpText", value); } } #endif - /// List of links more info for the setting can be found at. + /// List of links more info for the setting can be found at #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? InfoUrls { @@ -179,7 +179,7 @@ public List ReferredSet set { BackingStore?.Set("referredSettingInformationList", value); } } #endif - /// Root setting definition id if the setting is a child setting. + /// Root setting definition if the setting is a child setting. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? RootDefinitionId { diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSettingGroupCollectionDefinition.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSettingGroupCollectionDefinition.cs index 82369bbb540..c3065e9661f 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSettingGroupCollectionDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationSettingGroupCollectionDefinition.cs @@ -6,12 +6,12 @@ using System; namespace Microsoft.Graph.Beta.Models { public class DeviceManagementConfigurationSettingGroupCollectionDefinition : DeviceManagementConfigurationSettingGroupDefinition, IParsable { - /// Maximum number of setting group count in the collection + /// Maximum number of setting group count in the collection. Valid values 1 to 100 public int? MaximumCount { get { return BackingStore?.Get("maximumCount"); } set { BackingStore?.Set("maximumCount", value); } } - /// Minimum number of setting group count in the collection + /// Minimum number of setting group count in the collection. Valid values 1 to 100 public int? MinimumCount { get { return BackingStore?.Get("minimumCount"); } set { BackingStore?.Set("minimumCount", value); } diff --git a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationStringSettingValueDefinition.cs b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationStringSettingValueDefinition.cs index f00e6fcd486..f234eef0cc9 100644 --- a/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationStringSettingValueDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/DeviceManagementConfigurationStringSettingValueDefinition.cs @@ -23,7 +23,7 @@ public List FileTypes { set { BackingStore?.Set("fileTypes", value); } } #endif - /// Pre-defined format of the string. Possible values are: none, email, guid, ip, base64, url, version, xml, date, time, binary, regEx, json, dateTime, surfaceHub. + /// Pre-defined format of the string. Possible values are: none, email, guid, ip, base64, url, version, xml, date, time, binary, regEx, json, dateTime, surfaceHub, bashScript, unknownFutureValue. public DeviceManagementConfigurationStringFormat? Format { get { return BackingStore?.Get("format"); } set { BackingStore?.Set("format", value); } @@ -47,12 +47,12 @@ public bool? IsSecret { get { return BackingStore?.Get("isSecret"); } set { BackingStore?.Set("isSecret", value); } } - /// Maximum length of string + /// Maximum length of string. Valid values 0 to 87516 public long? MaximumLength { get { return BackingStore?.Get("maximumLength"); } set { BackingStore?.Set("maximumLength", value); } } - /// Minimum length of string + /// Minimum length of string. Valid values 0 to 87516 public long? MinimumLength { get { return BackingStore?.Get("minimumLength"); } set { BackingStore?.Set("minimumLength", value); } diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryObject.cs b/src/Microsoft.Graph/Generated/Models/DirectoryObject.cs index 8e28ffdd054..ab9436ec7ba 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryObject.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryObject.cs @@ -37,6 +37,8 @@ public DateTimeOffset? DeletedDateTime { "#microsoft.graph.endpoint" => new Endpoint(), "#microsoft.graph.extensionProperty" => new ExtensionProperty(), "#microsoft.graph.externalIdentitiesPolicy" => new ExternalIdentitiesPolicy(), + "#microsoft.graph.externalProfile" => new ExternalProfile(), + "#microsoft.graph.externalUserProfile" => new ExternalUserProfile(), "#microsoft.graph.federatedTokenValidationPolicy" => new FederatedTokenValidationPolicy(), "#microsoft.graph.group" => new Group(), "#microsoft.graph.homeRealmDiscoveryPolicy" => new HomeRealmDiscoveryPolicy(), @@ -44,6 +46,7 @@ public DateTimeOffset? DeletedDateTime { "#microsoft.graph.multiTenantOrganizationMember" => new MultiTenantOrganizationMember(), "#microsoft.graph.organization" => new Organization(), "#microsoft.graph.orgContact" => new OrgContact(), + "#microsoft.graph.pendingExternalUserProfile" => new PendingExternalUserProfile(), "#microsoft.graph.permissionGrantPolicy" => new PermissionGrantPolicy(), "#microsoft.graph.policyBase" => new PolicyBase(), "#microsoft.graph.resourceSpecificPermissionGrant" => new ResourceSpecificPermissionGrant(), diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryObject1.cs b/src/Microsoft.Graph/Generated/Models/DirectoryObject1.cs index 1f66cba5a98..fce5a7bb088 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryObject1.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryObject1.cs @@ -89,6 +89,20 @@ public List DeviceLocalCredentials { get { return BackingStore?.Get>("deviceLocalCredentials"); } set { BackingStore?.Set("deviceLocalCredentials", value); } } +#endif + /// Collection of external user profiles that represent collaborators in the directory. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? ExternalUserProfiles { + get { return BackingStore?.Get?>("externalUserProfiles"); } + set { BackingStore?.Set("externalUserProfiles", value); } + } +#nullable restore +#else + public List ExternalUserProfiles { + get { return BackingStore?.Get>("externalUserProfiles"); } + set { BackingStore?.Set("externalUserProfiles", value); } + } #endif /// The featureRolloutPolicies property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -173,6 +187,20 @@ public List OutboundSharedUserProfiles { get { return BackingStore?.Get>("outboundSharedUserProfiles"); } set { BackingStore?.Set("outboundSharedUserProfiles", value); } } +#endif + /// Collection of pending external user profiles representing collaborators in the directory that are unredeemed. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? PendingExternalUserProfiles { + get { return BackingStore?.Get?>("pendingExternalUserProfiles"); } + set { BackingStore?.Set("pendingExternalUserProfiles", value); } + } +#nullable restore +#else + public List PendingExternalUserProfiles { + get { return BackingStore?.Get>("pendingExternalUserProfiles"); } + set { BackingStore?.Set("pendingExternalUserProfiles", value); } + } #endif /// List of recommended improvements to improve tenant posture. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -237,12 +265,14 @@ public override IDictionary> GetFieldDeserializers() {"customSecurityAttributeDefinitions", n => { CustomSecurityAttributeDefinitions = n.GetCollectionOfObjectValues(CustomSecurityAttributeDefinition.CreateFromDiscriminatorValue)?.ToList(); } }, {"deletedItems", n => { DeletedItems = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, {"deviceLocalCredentials", n => { DeviceLocalCredentials = n.GetCollectionOfObjectValues(DeviceLocalCredentialInfo.CreateFromDiscriminatorValue)?.ToList(); } }, + {"externalUserProfiles", n => { ExternalUserProfiles = n.GetCollectionOfObjectValues(ExternalUserProfile.CreateFromDiscriminatorValue)?.ToList(); } }, {"featureRolloutPolicies", n => { FeatureRolloutPolicies = n.GetCollectionOfObjectValues(FeatureRolloutPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, {"federationConfigurations", n => { FederationConfigurations = n.GetCollectionOfObjectValues(IdentityProviderBase.CreateFromDiscriminatorValue)?.ToList(); } }, {"impactedResources", n => { ImpactedResources = n.GetCollectionOfObjectValues(ImpactedResource.CreateFromDiscriminatorValue)?.ToList(); } }, {"inboundSharedUserProfiles", n => { InboundSharedUserProfiles = n.GetCollectionOfObjectValues(InboundSharedUserProfile.CreateFromDiscriminatorValue)?.ToList(); } }, {"onPremisesSynchronization", n => { OnPremisesSynchronization = n.GetCollectionOfObjectValues(OnPremisesDirectorySynchronization.CreateFromDiscriminatorValue)?.ToList(); } }, {"outboundSharedUserProfiles", n => { OutboundSharedUserProfiles = n.GetCollectionOfObjectValues(OutboundSharedUserProfile.CreateFromDiscriminatorValue)?.ToList(); } }, + {"pendingExternalUserProfiles", n => { PendingExternalUserProfiles = n.GetCollectionOfObjectValues(PendingExternalUserProfile.CreateFromDiscriminatorValue)?.ToList(); } }, {"recommendations", n => { Recommendations = n.GetCollectionOfObjectValues(Recommendation.CreateFromDiscriminatorValue)?.ToList(); } }, {"sharedEmailDomains", n => { SharedEmailDomains = n.GetCollectionOfObjectValues(SharedEmailDomain.CreateFromDiscriminatorValue)?.ToList(); } }, {"subscriptions", n => { Subscriptions = n.GetCollectionOfObjectValues(CompanySubscription.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -261,12 +291,14 @@ public override void Serialize(ISerializationWriter writer) { writer.WriteCollectionOfObjectValues("customSecurityAttributeDefinitions", CustomSecurityAttributeDefinitions); writer.WriteCollectionOfObjectValues("deletedItems", DeletedItems); writer.WriteCollectionOfObjectValues("deviceLocalCredentials", DeviceLocalCredentials); + writer.WriteCollectionOfObjectValues("externalUserProfiles", ExternalUserProfiles); writer.WriteCollectionOfObjectValues("featureRolloutPolicies", FeatureRolloutPolicies); writer.WriteCollectionOfObjectValues("federationConfigurations", FederationConfigurations); writer.WriteCollectionOfObjectValues("impactedResources", ImpactedResources); writer.WriteCollectionOfObjectValues("inboundSharedUserProfiles", InboundSharedUserProfiles); writer.WriteCollectionOfObjectValues("onPremisesSynchronization", OnPremisesSynchronization); writer.WriteCollectionOfObjectValues("outboundSharedUserProfiles", OutboundSharedUserProfiles); + writer.WriteCollectionOfObjectValues("pendingExternalUserProfiles", PendingExternalUserProfiles); writer.WriteCollectionOfObjectValues("recommendations", Recommendations); writer.WriteCollectionOfObjectValues("sharedEmailDomains", SharedEmailDomains); writer.WriteCollectionOfObjectValues("subscriptions", Subscriptions); diff --git a/src/Microsoft.Graph/Generated/Models/DriveItemSourceApplication.cs b/src/Microsoft.Graph/Generated/Models/DriveItemSourceApplication.cs index 745a802fe81..53af0a3753e 100644 --- a/src/Microsoft.Graph/Generated/Models/DriveItemSourceApplication.cs +++ b/src/Microsoft.Graph/Generated/Models/DriveItemSourceApplication.cs @@ -17,6 +17,12 @@ public enum DriveItemSourceApplication { PowerPoint, [EnumMember(Value = "office")] Office, + [EnumMember(Value = "loki")] + Loki, + [EnumMember(Value = "loop")] + Loop, + [EnumMember(Value = "other")] + Other, [EnumMember(Value = "unknownFutureValue")] UnknownFutureValue, } diff --git a/src/Microsoft.Graph/Generated/Models/DriveItemUploadableProperties.cs b/src/Microsoft.Graph/Generated/Models/DriveItemUploadableProperties.cs index f90e37d7760..e3a0904b33e 100644 --- a/src/Microsoft.Graph/Generated/Models/DriveItemUploadableProperties.cs +++ b/src/Microsoft.Graph/Generated/Models/DriveItemUploadableProperties.cs @@ -27,6 +27,20 @@ public string Description { get { return BackingStore?.Get("description"); } set { BackingStore?.Set("description", value); } } +#endif + /// Information about the drive item source. Read-write. Only on OneDrive for Business and SharePoint. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Beta.Models.DriveItemSource? DriveItemSource { + get { return BackingStore?.Get("driveItemSource"); } + set { BackingStore?.Set("driveItemSource", value); } + } +#nullable restore +#else + public Microsoft.Graph.Beta.Models.DriveItemSource DriveItemSource { + get { return BackingStore?.Get("driveItemSource"); } + set { BackingStore?.Set("driveItemSource", value); } + } #endif /// Provides an expected file size to perform a quota check prior to upload. Only on OneDrive Personal. public long? FileSize { @@ -46,6 +60,20 @@ public Microsoft.Graph.Beta.Models.FileSystemInfo FileSystemInfo { get { return BackingStore?.Get("fileSystemInfo"); } set { BackingStore?.Set("fileSystemInfo", value); } } +#endif + /// Media source information. Read-write. Only on OneDrive for Business and SharePoint. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public Microsoft.Graph.Beta.Models.MediaSource? MediaSource { + get { return BackingStore?.Get("mediaSource"); } + set { BackingStore?.Set("mediaSource", value); } + } +#nullable restore +#else + public Microsoft.Graph.Beta.Models.MediaSource MediaSource { + get { return BackingStore?.Get("mediaSource"); } + set { BackingStore?.Set("mediaSource", value); } + } #endif /// The name of the item (filename and extension). Read-write. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -98,8 +126,10 @@ public static DriveItemUploadableProperties CreateFromDiscriminatorValue(IParseN public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { {"description", n => { Description = n.GetStringValue(); } }, + {"driveItemSource", n => { DriveItemSource = n.GetObjectValue(Microsoft.Graph.Beta.Models.DriveItemSource.CreateFromDiscriminatorValue); } }, {"fileSize", n => { FileSize = n.GetLongValue(); } }, {"fileSystemInfo", n => { FileSystemInfo = n.GetObjectValue(Microsoft.Graph.Beta.Models.FileSystemInfo.CreateFromDiscriminatorValue); } }, + {"mediaSource", n => { MediaSource = n.GetObjectValue(Microsoft.Graph.Beta.Models.MediaSource.CreateFromDiscriminatorValue); } }, {"name", n => { Name = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, }; @@ -111,8 +141,10 @@ public virtual IDictionary> GetFieldDeserializers() { public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("description", Description); + writer.WriteObjectValue("driveItemSource", DriveItemSource); writer.WriteLongValue("fileSize", FileSize); writer.WriteObjectValue("fileSystemInfo", FileSystemInfo); + writer.WriteObjectValue("mediaSource", MediaSource); writer.WriteStringValue("name", Name); writer.WriteStringValue("@odata.type", OdataType); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignment.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignment.cs index dbfcbf741b6..b798c545513 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignment.cs @@ -162,6 +162,20 @@ public EducationGradingCategory GradingCategory { get { return BackingStore?.Get("gradingCategory"); } set { BackingStore?.Set("gradingCategory", value); } } +#endif + /// The gradingScheme property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public EducationGradingScheme? GradingScheme { + get { return BackingStore?.Get("gradingScheme"); } + set { BackingStore?.Set("gradingScheme", value); } + } +#nullable restore +#else + public EducationGradingScheme GradingScheme { + get { return BackingStore?.Get("gradingScheme"); } + set { BackingStore?.Set("gradingScheme", value); } + } #endif /// Instructions for the assignment. This property and the display name tell the student what to do. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -266,7 +280,7 @@ public EducationRubric Rubric { set { BackingStore?.Set("rubric", value); } } #endif - /// Status of the Assignment. You can’t PATCH this value. Possible values are: draft, scheduled, published, assigned, unknownFutureValue and inactive. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: inactive. + /// Status of the assignment. You can't PATCH this value. Possible values are: draft, scheduled, published, assigned, unknownFutureValue, inactive. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: inactive. public EducationAssignmentStatus? Status { get { return BackingStore?.Get("status"); } set { BackingStore?.Set("status", value); } @@ -331,6 +345,7 @@ public override IDictionary> GetFieldDeserializers() {"feedbackResourcesFolderUrl", n => { FeedbackResourcesFolderUrl = n.GetStringValue(); } }, {"grading", n => { Grading = n.GetObjectValue(EducationAssignmentGradeType.CreateFromDiscriminatorValue); } }, {"gradingCategory", n => { GradingCategory = n.GetObjectValue(EducationGradingCategory.CreateFromDiscriminatorValue); } }, + {"gradingScheme", n => { GradingScheme = n.GetObjectValue(EducationGradingScheme.CreateFromDiscriminatorValue); } }, {"instructions", n => { Instructions = n.GetObjectValue(EducationItemBody.CreateFromDiscriminatorValue); } }, {"lastModifiedBy", n => { LastModifiedBy = n.GetObjectValue(IdentitySet.CreateFromDiscriminatorValue); } }, {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, @@ -363,6 +378,7 @@ public override void Serialize(ISerializationWriter writer) { writer.WriteDateTimeOffsetValue("dueDateTime", DueDateTime); writer.WriteObjectValue("grading", Grading); writer.WriteObjectValue("gradingCategory", GradingCategory); + writer.WriteObjectValue("gradingScheme", GradingScheme); writer.WriteObjectValue("instructions", Instructions); writer.WriteStringValue("moduleUrl", ModuleUrl); writer.WriteStringValue("notificationChannelUrl", NotificationChannelUrl); diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignmentSettings.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignmentSettings.cs index a32eae08386..5c0a39dd6a1 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignmentSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignmentSettings.cs @@ -6,6 +6,20 @@ using System; namespace Microsoft.Graph.Beta.Models { public class EducationAssignmentSettings : Entity, IParsable { + /// The defaultGradingScheme property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public EducationGradingScheme? DefaultGradingScheme { + get { return BackingStore?.Get("defaultGradingScheme"); } + set { BackingStore?.Set("defaultGradingScheme", value); } + } +#nullable restore +#else + public EducationGradingScheme DefaultGradingScheme { + get { return BackingStore?.Get("defaultGradingScheme"); } + set { BackingStore?.Set("defaultGradingScheme", value); } + } +#endif /// When set, enables users to weight assignments differently when computing a class average grade. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -19,6 +33,20 @@ public List GradingCategories { get { return BackingStore?.Get>("gradingCategories"); } set { BackingStore?.Set("gradingCategories", value); } } +#endif + /// The gradingSchemes property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? GradingSchemes { + get { return BackingStore?.Get?>("gradingSchemes"); } + set { BackingStore?.Set("gradingSchemes", value); } + } +#nullable restore +#else + public List GradingSchemes { + get { return BackingStore?.Get>("gradingSchemes"); } + set { BackingStore?.Set("gradingSchemes", value); } + } #endif /// Indicates whether turn-in celebration animation will be shown. If true, the animation won't be shown. The default value is false. public bool? SubmissionAnimationDisabled { @@ -40,7 +68,9 @@ public bool? SubmissionAnimationDisabled { /// A IDictionary<string, Action<IParseNode>> public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { + {"defaultGradingScheme", n => { DefaultGradingScheme = n.GetObjectValue(EducationGradingScheme.CreateFromDiscriminatorValue); } }, {"gradingCategories", n => { GradingCategories = n.GetCollectionOfObjectValues(EducationGradingCategory.CreateFromDiscriminatorValue)?.ToList(); } }, + {"gradingSchemes", n => { GradingSchemes = n.GetCollectionOfObjectValues(EducationGradingScheme.CreateFromDiscriminatorValue)?.ToList(); } }, {"submissionAnimationDisabled", n => { SubmissionAnimationDisabled = n.GetBoolValue(); } }, }; } @@ -51,7 +81,9 @@ public override IDictionary> GetFieldDeserializers() public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); + writer.WriteObjectValue("defaultGradingScheme", DefaultGradingScheme); writer.WriteCollectionOfObjectValues("gradingCategories", GradingCategories); + writer.WriteCollectionOfObjectValues("gradingSchemes", GradingSchemes); writer.WriteBoolValue("submissionAnimationDisabled", SubmissionAnimationDisabled); } } diff --git a/src/Microsoft.Graph/Generated/Models/EducationGradingScheme.cs b/src/Microsoft.Graph/Generated/Models/EducationGradingScheme.cs new file mode 100644 index 00000000000..8efbf8151e5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/EducationGradingScheme.cs @@ -0,0 +1,74 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class EducationGradingScheme : Entity, IParsable { + /// The displayName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#nullable restore +#else + public string DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#endif + /// The grades property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Grades { + get { return BackingStore?.Get?>("grades"); } + set { BackingStore?.Set("grades", value); } + } +#nullable restore +#else + public List Grades { + get { return BackingStore?.Get>("grades"); } + set { BackingStore?.Set("grades", value); } + } +#endif + /// The hidePointsDuringGrading property + public bool? HidePointsDuringGrading { + get { return BackingStore?.Get("hidePointsDuringGrading"); } + set { BackingStore?.Set("hidePointsDuringGrading", value); } + } + /// + /// Creates a new instance of 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 EducationGradingScheme CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new EducationGradingScheme(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"grades", n => { Grades = n.GetCollectionOfObjectValues(EducationGradingSchemeGrade.CreateFromDiscriminatorValue)?.ToList(); } }, + {"hidePointsDuringGrading", n => { HidePointsDuringGrading = n.GetBoolValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteCollectionOfObjectValues("grades", Grades); + writer.WriteBoolValue("hidePointsDuringGrading", HidePointsDuringGrading); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/EducationGradingSchemeCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/EducationGradingSchemeCollectionResponse.cs new file mode 100644 index 00000000000..f79a27a84a1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/EducationGradingSchemeCollectionResponse.cs @@ -0,0 +1,51 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class EducationGradingSchemeCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#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 EducationGradingSchemeCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new EducationGradingSchemeCollectionResponse(); + } + /// + /// 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(EducationGradingScheme.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/EducationGradingSchemeGrade.cs b/src/Microsoft.Graph/Generated/Models/EducationGradingSchemeGrade.cs new file mode 100644 index 00000000000..b6a1d34d857 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/EducationGradingSchemeGrade.cs @@ -0,0 +1,96 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class EducationGradingSchemeGrade : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("AdditionalData"); } + set { BackingStore?.Set("AdditionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The defaultPercentage property + public float? DefaultPercentage { + get { return BackingStore?.Get("defaultPercentage"); } + set { BackingStore?.Set("defaultPercentage", value); } + } + /// The displayName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#nullable restore +#else + public string DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#endif + /// The minPercentage property + public float? MinPercentage { + get { return BackingStore?.Get("minPercentage"); } + set { BackingStore?.Set("minPercentage", value); } + } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public EducationGradingSchemeGrade() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + 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 EducationGradingSchemeGrade CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new EducationGradingSchemeGrade(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"defaultPercentage", n => { DefaultPercentage = n.GetFloatValue(); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"minPercentage", n => { MinPercentage = n.GetFloatValue(); } }, + {"@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) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteFloatValue("defaultPercentage", DefaultPercentage); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteFloatValue("minPercentage", MinPercentage); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Entity.cs b/src/Microsoft.Graph/Generated/Models/Entity.cs index 9a0003e3d5e..cf0d2785622 100644 --- a/src/Microsoft.Graph/Generated/Models/Entity.cs +++ b/src/Microsoft.Graph/Generated/Models/Entity.cs @@ -361,6 +361,8 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.claimsMappingPolicy" => new ClaimsMappingPolicy(), "#microsoft.graph.classificationJobResponse" => new ClassificationJobResponse(), "#microsoft.graph.cloudAppSecurityProfile" => new CloudAppSecurityProfile(), + "#microsoft.graph.cloudClipboardItem" => new CloudClipboardItem(), + "#microsoft.graph.cloudClipboardRoot" => new CloudClipboardRoot(), "#microsoft.graph.cloudPC" => new CloudPC(), "#microsoft.graph.cloudPcAuditEvent" => new CloudPcAuditEvent(), "#microsoft.graph.cloudPcBulkAction" => new CloudPcBulkAction(), @@ -645,6 +647,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.educationFeedbackOutcome" => new EducationFeedbackOutcome(), "#microsoft.graph.educationFeedbackResourceOutcome" => new EducationFeedbackResourceOutcome(), "#microsoft.graph.educationGradingCategory" => new EducationGradingCategory(), + "#microsoft.graph.educationGradingScheme" => new EducationGradingScheme(), "#microsoft.graph.educationModule" => new EducationModule(), "#microsoft.graph.educationModuleResource" => new EducationModuleResource(), "#microsoft.graph.educationOrganization" => new EducationOrganization(), @@ -715,6 +718,8 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.externallyAccessibleGcpStorageBucketFinding" => new ExternallyAccessibleGcpStorageBucketFinding(), "#microsoft.graph.externalMeetingRegistrant" => new ExternalMeetingRegistrant(), "#microsoft.graph.externalMeetingRegistration" => new ExternalMeetingRegistration(), + "#microsoft.graph.externalProfile" => new ExternalProfile(), + "#microsoft.graph.externalUserProfile" => new ExternalUserProfile(), "#microsoft.graph.externalUsersSelfServiceSignUpEventsFlow" => new ExternalUsersSelfServiceSignUpEventsFlow(), "#microsoft.graph.featureRolloutPolicy" => new FeatureRolloutPolicy(), "#microsoft.graph.federatedIdentityCredential" => new FederatedIdentityCredential(), @@ -1199,8 +1204,10 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.participantLeftNotification" => new ParticipantLeftNotification(), "#microsoft.graph.partners" => new Microsoft.Graph.Beta.Models.Partners.Partners(), "#microsoft.graph.partners.billing.azureUsage" => new AzureUsage(), + "#microsoft.graph.partners.billing.billedReconciliation" => new BilledReconciliation(), "#microsoft.graph.partners.billing.billedUsage" => new BilledUsage(), "#microsoft.graph.partners.billing.billing" => new Microsoft.Graph.Beta.Models.Partners.Billing.Billing(), + "#microsoft.graph.partners.billing.billingReconciliation" => new BillingReconciliation(), "#microsoft.graph.partners.billing.exportSuccessOperation" => new ExportSuccessOperation(), "#microsoft.graph.partners.billing.failedOperation" => new FailedOperation(), "#microsoft.graph.partners.billing.manifest" => new Manifest(), @@ -1212,6 +1219,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.payload" => new Payload(), "#microsoft.graph.payloadCompatibleAssignmentFilter" => new PayloadCompatibleAssignmentFilter(), "#microsoft.graph.payloadResponse" => new PayloadResponse(), + "#microsoft.graph.pendingExternalUserProfile" => new PendingExternalUserProfile(), "#microsoft.graph.peopleAdminSettings" => new PeopleAdminSettings(), "#microsoft.graph.permission" => new Permission(), "#microsoft.graph.permissionGrantConditionSet" => new PermissionGrantConditionSet(), @@ -1457,6 +1465,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.security.retentionEvent" => new RetentionEvent(), "#microsoft.graph.security.retentionEventType" => new Microsoft.Graph.Beta.Models.Security.RetentionEventType(), "#microsoft.graph.security.retentionLabel" => new Microsoft.Graph.Beta.Models.Security.RetentionLabel(), + "#microsoft.graph.security.rulesRoot" => new RulesRoot(), "#microsoft.graph.security.search" => new Microsoft.Graph.Beta.Models.Security.Search(), "#microsoft.graph.security.security" => new Microsoft.Graph.Beta.Models.Security.Security(), "#microsoft.graph.security.sensitivityLabel" => new Microsoft.Graph.Beta.Models.Security.SensitivityLabel(), @@ -1855,6 +1864,8 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.windowsQualityUpdateCatalogItem" => new WindowsQualityUpdateCatalogItem(), "#microsoft.graph.windowsQualityUpdateProfile" => new WindowsQualityUpdateProfile(), "#microsoft.graph.windowsQualityUpdateProfileAssignment" => new WindowsQualityUpdateProfileAssignment(), + "#microsoft.graph.windowsSetting" => new WindowsSetting(), + "#microsoft.graph.windowsSettingInstance" => new WindowsSettingInstance(), "#microsoft.graph.windowsStoreApp" => new WindowsStoreApp(), "#microsoft.graph.windowsUniversalAppX" => new WindowsUniversalAppX(), "#microsoft.graph.windowsUniversalAppXContainedApp" => new WindowsUniversalAppXContainedApp(), diff --git a/src/Microsoft.Graph/Generated/Models/ExternalProfile.cs b/src/Microsoft.Graph/Generated/Models/ExternalProfile.cs new file mode 100644 index 00000000000..0409ac77d4e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/ExternalProfile.cs @@ -0,0 +1,195 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class ExternalProfile : DirectoryObject, IParsable { + /// The office address of the external user profile. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public PhysicalOfficeAddress? Address { + get { return BackingStore?.Get("address"); } + set { BackingStore?.Set("address", value); } + } +#nullable restore +#else + public PhysicalOfficeAddress Address { + get { return BackingStore?.Get("address"); } + set { BackingStore?.Set("address", value); } + } +#endif + /// The company name of the external user profile. Supports $filter (eq, startswith). +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? CompanyName { + get { return BackingStore?.Get("companyName"); } + set { BackingStore?.Set("companyName", value); } + } +#nullable restore +#else + public string CompanyName { + get { return BackingStore?.Get("companyName"); } + set { BackingStore?.Set("companyName", value); } + } +#endif + /// The object ID of the user who created the external user profile. Read-only. Not nullable. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? CreatedBy { + get { return BackingStore?.Get("createdBy"); } + set { BackingStore?.Set("createdBy", value); } + } +#nullable restore +#else + public string CreatedBy { + get { return BackingStore?.Get("createdBy"); } + set { BackingStore?.Set("createdBy", value); } + } +#endif + /// Date and time when this external user was created. Not nullable. Read-only. + public DateTimeOffset? CreatedDateTime { + get { return BackingStore?.Get("createdDateTime"); } + set { BackingStore?.Set("createdDateTime", value); } + } + /// The department of the external user profile. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Department { + get { return BackingStore?.Get("department"); } + set { BackingStore?.Set("department", value); } + } +#nullable restore +#else + public string Department { + get { return BackingStore?.Get("department"); } + set { BackingStore?.Set("department", value); } + } +#endif + /// The display name of the external user profile. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#nullable restore +#else + public string DisplayName { + get { return BackingStore?.Get("displayName"); } + set { BackingStore?.Set("displayName", value); } + } +#endif + /// Represents whether the external user profile is discoverable in the directory. When true, this external profile shows up in Teams search. + public bool? IsDiscoverable { + get { return BackingStore?.Get("isDiscoverable"); } + set { BackingStore?.Set("isDiscoverable", value); } + } + /// Represents whether the external user profile is enabled in the directory. This property is peer to the accountEnabled property on the user object. + public bool? IsEnabled { + get { return BackingStore?.Get("isEnabled"); } + set { BackingStore?.Set("isEnabled", value); } + } + /// The job title of the external user profile. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? JobTitle { + get { return BackingStore?.Get("jobTitle"); } + set { BackingStore?.Set("jobTitle", value); } + } +#nullable restore +#else + public string JobTitle { + get { return BackingStore?.Get("jobTitle"); } + set { BackingStore?.Set("jobTitle", value); } + } +#endif + /// The phone number of the external user profile. Must be in E164 format. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PhoneNumber { + get { return BackingStore?.Get("phoneNumber"); } + set { BackingStore?.Set("phoneNumber", value); } + } +#nullable restore +#else + public string PhoneNumber { + get { return BackingStore?.Get("phoneNumber"); } + set { BackingStore?.Set("phoneNumber", value); } + } +#endif + /// The object ID of the supervisor of the external user profile. Supports $filter (eq, startswith). +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? SupervisorId { + get { return BackingStore?.Get("supervisorId"); } + set { BackingStore?.Set("supervisorId", value); } + } +#nullable restore +#else + public string SupervisorId { + get { return BackingStore?.Get("supervisorId"); } + set { BackingStore?.Set("supervisorId", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ExternalProfile() : base() { + OdataType = "#microsoft.graph.externalProfile"; + } + /// + /// Creates a new instance of 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 ExternalProfile CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.externalUserProfile" => new ExternalUserProfile(), + "#microsoft.graph.pendingExternalUserProfile" => new PendingExternalUserProfile(), + _ => new ExternalProfile(), + }; + } + /// + /// 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(PhysicalOfficeAddress.CreateFromDiscriminatorValue); } }, + {"companyName", n => { CompanyName = n.GetStringValue(); } }, + {"createdBy", n => { CreatedBy = n.GetStringValue(); } }, + {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + {"department", n => { Department = n.GetStringValue(); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"isDiscoverable", n => { IsDiscoverable = n.GetBoolValue(); } }, + {"isEnabled", n => { IsEnabled = n.GetBoolValue(); } }, + {"jobTitle", n => { JobTitle = n.GetStringValue(); } }, + {"phoneNumber", n => { PhoneNumber = n.GetStringValue(); } }, + {"supervisorId", n => { SupervisorId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("address", Address); + writer.WriteStringValue("companyName", CompanyName); + writer.WriteStringValue("createdBy", CreatedBy); + writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteStringValue("department", Department); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteBoolValue("isDiscoverable", IsDiscoverable); + writer.WriteBoolValue("isEnabled", IsEnabled); + writer.WriteStringValue("jobTitle", JobTitle); + writer.WriteStringValue("phoneNumber", PhoneNumber); + writer.WriteStringValue("supervisorId", SupervisorId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/ExternalUserProfile.cs b/src/Microsoft.Graph/Generated/Models/ExternalUserProfile.cs new file mode 100644 index 00000000000..9d851e43fca --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/ExternalUserProfile.cs @@ -0,0 +1,41 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class ExternalUserProfile : ExternalProfile, IParsable { + /// + /// Instantiates a new and sets the default values. + /// + public ExternalUserProfile() : base() { + OdataType = "#microsoft.graph.externalUserProfile"; + } + /// + /// Creates a new instance of 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 ExternalUserProfile CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new ExternalUserProfile(); + } + /// + /// 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) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/ExternalUserProfileCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/ExternalUserProfileCollectionResponse.cs new file mode 100644 index 00000000000..460a2b704e8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/ExternalUserProfileCollectionResponse.cs @@ -0,0 +1,51 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class ExternalUserProfileCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#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 ExternalUserProfileCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new ExternalUserProfileCollectionResponse(); + } + /// + /// 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(ExternalUserProfile.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/KeyValue.cs b/src/Microsoft.Graph/Generated/Models/KeyValue.cs index 5cdc27841d1..b7918c4b00d 100644 --- a/src/Microsoft.Graph/Generated/Models/KeyValue.cs +++ b/src/Microsoft.Graph/Generated/Models/KeyValue.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// Contains the name of the field that a value is associated with. + /// Key. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Key { @@ -42,7 +42,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// Contains the corresponding value for the specified key. + /// Value. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Value { diff --git a/src/Microsoft.Graph/Generated/Models/MediaSourceContentCategory.cs b/src/Microsoft.Graph/Generated/Models/MediaSourceContentCategory.cs index 914ef8a15ea..ca16fe9b04c 100644 --- a/src/Microsoft.Graph/Generated/Models/MediaSourceContentCategory.cs +++ b/src/Microsoft.Graph/Generated/Models/MediaSourceContentCategory.cs @@ -11,6 +11,16 @@ public enum MediaSourceContentCategory { Presentation, [EnumMember(Value = "screenRecording")] ScreenRecording, + [EnumMember(Value = "story")] + Story, + [EnumMember(Value = "profile")] + Profile, + [EnumMember(Value = "chat")] + Chat, + [EnumMember(Value = "note")] + Note, + [EnumMember(Value = "comment")] + Comment, [EnumMember(Value = "unknownFutureValue")] UnknownFutureValue, } diff --git a/src/Microsoft.Graph/Generated/Models/MonthlyUserInsightMetricsRoot.cs b/src/Microsoft.Graph/Generated/Models/MonthlyUserInsightMetricsRoot.cs index 679d9917532..4196ee5c86a 100644 --- a/src/Microsoft.Graph/Generated/Models/MonthlyUserInsightMetricsRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/MonthlyUserInsightMetricsRoot.cs @@ -20,7 +20,7 @@ public List ActiveUsers { set { BackingStore?.Set("activeUsers", value); } } #endif - /// Insights for the breakdown of users who were active on apps registered in the tenant for a specified period. + /// The activeUsersBreakdown property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? ActiveUsersBreakdown { diff --git a/src/Microsoft.Graph/Generated/Models/Networkaccess/Alert.cs b/src/Microsoft.Graph/Generated/Models/Networkaccess/Alert.cs index 8cff029d070..20f59778f51 100644 --- a/src/Microsoft.Graph/Generated/Models/Networkaccess/Alert.cs +++ b/src/Microsoft.Graph/Generated/Models/Networkaccess/Alert.cs @@ -49,6 +49,20 @@ public DateTimeOffset? FirstImpactedDateTime { get { return BackingStore?.Get("firstImpactedDateTime"); } set { BackingStore?.Set("firstImpactedDateTime", value); } } + /// The relatedResources property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? RelatedResources { + get { return BackingStore?.Get?>("relatedResources"); } + set { BackingStore?.Set("relatedResources", value); } + } +#nullable restore +#else + public List RelatedResources { + get { return BackingStore?.Get>("relatedResources"); } + set { BackingStore?.Set("relatedResources", value); } + } +#endif /// /// Creates a new instance of the appropriate class based on discriminator value /// @@ -69,6 +83,7 @@ public override IDictionary> GetFieldDeserializers() {"creationDateTime", n => { CreationDateTime = n.GetDateTimeOffsetValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, {"firstImpactedDateTime", n => { FirstImpactedDateTime = n.GetDateTimeOffsetValue(); } }, + {"relatedResources", n => { RelatedResources = n.GetCollectionOfObjectValues(RelatedResource.CreateFromDiscriminatorValue)?.ToList(); } }, }; } /// @@ -83,6 +98,7 @@ public override void Serialize(ISerializationWriter writer) { writer.WriteDateTimeOffsetValue("creationDateTime", CreationDateTime); writer.WriteStringValue("description", Description); writer.WriteDateTimeOffsetValue("firstImpactedDateTime", FirstImpactedDateTime); + writer.WriteCollectionOfObjectValues("relatedResources", RelatedResources); } } } diff --git a/src/Microsoft.Graph/Generated/Models/Networkaccess/AlertCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Networkaccess/AlertCollectionResponse.cs new file mode 100644 index 00000000000..fd113c7c8b8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Networkaccess/AlertCollectionResponse.cs @@ -0,0 +1,51 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models.Networkaccess { + public class AlertCollectionResponse : Microsoft.Graph.Beta.Models.BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#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 AlertCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AlertCollectionResponse(); + } + /// + /// 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(Alert.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Networkaccess/AlertType.cs b/src/Microsoft.Graph/Generated/Models/Networkaccess/AlertType.cs index a46e7699655..c13624bc0b1 100644 --- a/src/Microsoft.Graph/Generated/Models/Networkaccess/AlertType.cs +++ b/src/Microsoft.Graph/Generated/Models/Networkaccess/AlertType.cs @@ -17,5 +17,7 @@ public enum AlertType { ThreatIntelligenceTransactions, [EnumMember(Value = "unknownFutureValue")] UnknownFutureValue, + [EnumMember(Value = "webContentBlocked")] + WebContentBlocked, } } diff --git a/src/Microsoft.Graph/Generated/Models/Networkaccess/DeviceCategory.cs b/src/Microsoft.Graph/Generated/Models/Networkaccess/DeviceCategory.cs index 440f4bfc613..c2199ce532d 100644 --- a/src/Microsoft.Graph/Generated/Models/Networkaccess/DeviceCategory.cs +++ b/src/Microsoft.Graph/Generated/Models/Networkaccess/DeviceCategory.cs @@ -9,5 +9,7 @@ public enum DeviceCategory { Branch, [EnumMember(Value = "unknownFutureValue")] UnknownFutureValue, + [EnumMember(Value = "remoteNetwork")] + RemoteNetwork, } } diff --git a/src/Microsoft.Graph/Generated/Models/Networkaccess/NetworkAccessRoot.cs b/src/Microsoft.Graph/Generated/Models/Networkaccess/NetworkAccessRoot.cs index fbbec241375..8940b8a0830 100644 --- a/src/Microsoft.Graph/Generated/Models/Networkaccess/NetworkAccessRoot.cs +++ b/src/Microsoft.Graph/Generated/Models/Networkaccess/NetworkAccessRoot.cs @@ -6,6 +6,20 @@ using System; namespace Microsoft.Graph.Beta.Models.Networkaccess { public class NetworkAccessRoot : Microsoft.Graph.Beta.Models.Entity, IParsable { + /// The alerts property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Alerts { + get { return BackingStore?.Get?>("alerts"); } + set { BackingStore?.Set("alerts", value); } + } +#nullable restore +#else + public List Alerts { + get { return BackingStore?.Get>("alerts"); } + set { BackingStore?.Set("alerts", value); } + } +#endif /// Connectivity represents all the connectivity components in Global Secure Access. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -147,6 +161,7 @@ public Microsoft.Graph.Beta.Models.Networkaccess.TenantStatus TenantStatus { /// A IDictionary<string, Action<IParseNode>> public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { + {"alerts", n => { Alerts = n.GetCollectionOfObjectValues(Alert.CreateFromDiscriminatorValue)?.ToList(); } }, {"connectivity", n => { Connectivity = n.GetObjectValue(Microsoft.Graph.Beta.Models.Networkaccess.Connectivity.CreateFromDiscriminatorValue); } }, {"filteringPolicies", n => { FilteringPolicies = n.GetCollectionOfObjectValues(FilteringPolicy.CreateFromDiscriminatorValue)?.ToList(); } }, {"filteringProfiles", n => { FilteringProfiles = n.GetCollectionOfObjectValues(FilteringProfile.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -165,6 +180,7 @@ public override IDictionary> GetFieldDeserializers() public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); + writer.WriteCollectionOfObjectValues("alerts", Alerts); writer.WriteObjectValue("connectivity", Connectivity); writer.WriteCollectionOfObjectValues("filteringPolicies", FilteringPolicies); writer.WriteCollectionOfObjectValues("filteringProfiles", FilteringProfiles); diff --git a/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedDestination.cs b/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedDestination.cs new file mode 100644 index 00000000000..5056c501343 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedDestination.cs @@ -0,0 +1,87 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models.Networkaccess { + public class RelatedDestination : RelatedResource, IParsable { + /// The fqdn property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Fqdn { + get { return BackingStore?.Get("fqdn"); } + set { BackingStore?.Set("fqdn", value); } + } +#nullable restore +#else + public string Fqdn { + get { return BackingStore?.Get("fqdn"); } + set { BackingStore?.Set("fqdn", value); } + } +#endif + /// The ip property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Ip { + get { return BackingStore?.Get("ip"); } + set { BackingStore?.Set("ip", value); } + } +#nullable restore +#else + public string Ip { + get { return BackingStore?.Get("ip"); } + set { BackingStore?.Set("ip", value); } + } +#endif + /// The networkingProtocol property + public Microsoft.Graph.Beta.Models.Networkaccess.NetworkingProtocol? NetworkingProtocol { + get { return BackingStore?.Get("networkingProtocol"); } + set { BackingStore?.Set("networkingProtocol", value); } + } + /// The port property + public int? Port { + get { return BackingStore?.Get("port"); } + set { BackingStore?.Set("port", value); } + } + /// + /// Instantiates a new and sets the default values. + /// + public RelatedDestination() : base() { + OdataType = "#microsoft.graph.networkaccess.relatedDestination"; + } + /// + /// Creates a new instance of 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 RelatedDestination CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RelatedDestination(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"fqdn", n => { Fqdn = n.GetStringValue(); } }, + {"ip", n => { Ip = n.GetStringValue(); } }, + {"networkingProtocol", n => { NetworkingProtocol = n.GetEnumValue(); } }, + {"port", n => { Port = n.GetIntValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("fqdn", Fqdn); + writer.WriteStringValue("ip", Ip); + writer.WriteEnumValue("networkingProtocol", NetworkingProtocol); + writer.WriteIntValue("port", Port); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedDevice.cs b/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedDevice.cs new file mode 100644 index 00000000000..7f661021a93 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedDevice.cs @@ -0,0 +1,57 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models.Networkaccess { + public class RelatedDevice : RelatedResource, IParsable { + /// The deviceId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DeviceId { + get { return BackingStore?.Get("deviceId"); } + set { BackingStore?.Set("deviceId", value); } + } +#nullable restore +#else + public string DeviceId { + get { return BackingStore?.Get("deviceId"); } + set { BackingStore?.Set("deviceId", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public RelatedDevice() : base() { + OdataType = "#microsoft.graph.networkaccess.relatedDevice"; + } + /// + /// Creates a new instance of 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 RelatedDevice CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RelatedDevice(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"deviceId", n => { DeviceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("deviceId", DeviceId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedProcess.cs b/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedProcess.cs new file mode 100644 index 00000000000..4fa72043859 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedProcess.cs @@ -0,0 +1,64 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models.Networkaccess { + public class RelatedProcess : RelatedResource, IParsable { + /// The isSuspicious property + public bool? IsSuspicious { + get { return BackingStore?.Get("isSuspicious"); } + set { BackingStore?.Set("isSuspicious", value); } + } + /// The processName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ProcessName { + get { return BackingStore?.Get("processName"); } + set { BackingStore?.Set("processName", value); } + } +#nullable restore +#else + public string ProcessName { + get { return BackingStore?.Get("processName"); } + set { BackingStore?.Set("processName", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public RelatedProcess() : base() { + OdataType = "#microsoft.graph.networkaccess.relatedProcess"; + } + /// + /// Creates a new instance of 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 RelatedProcess CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RelatedProcess(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"isSuspicious", n => { IsSuspicious = n.GetBoolValue(); } }, + {"processName", n => { ProcessName = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteBoolValue("isSuspicious", IsSuspicious); + writer.WriteStringValue("processName", ProcessName); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedRemoteNetwork.cs b/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedRemoteNetwork.cs new file mode 100644 index 00000000000..488f90da01e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedRemoteNetwork.cs @@ -0,0 +1,57 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models.Networkaccess { + public class RelatedRemoteNetwork : RelatedResource, IParsable { + /// The remoteNetworkId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? RemoteNetworkId { + get { return BackingStore?.Get("remoteNetworkId"); } + set { BackingStore?.Set("remoteNetworkId", value); } + } +#nullable restore +#else + public string RemoteNetworkId { + get { return BackingStore?.Get("remoteNetworkId"); } + set { BackingStore?.Set("remoteNetworkId", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public RelatedRemoteNetwork() : base() { + OdataType = "#microsoft.graph.networkaccess.relatedRemoteNetwork"; + } + /// + /// Creates a new instance of 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 RelatedRemoteNetwork CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RelatedRemoteNetwork(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"remoteNetworkId", n => { RemoteNetworkId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("remoteNetworkId", RemoteNetworkId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedResource.cs b/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedResource.cs new file mode 100644 index 00000000000..8c631f82677 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedResource.cs @@ -0,0 +1,76 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models.Networkaccess { + public class RelatedResource : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("AdditionalData"); } + set { BackingStore?.Set("AdditionalData", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The OdataType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#nullable restore +#else + public string OdataType { + get { return BackingStore?.Get("@odata.type"); } + set { BackingStore?.Set("@odata.type", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public RelatedResource() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + 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 RelatedResource CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.networkaccess.relatedDestination" => new RelatedDestination(), + "#microsoft.graph.networkaccess.relatedDevice" => new RelatedDevice(), + "#microsoft.graph.networkaccess.relatedProcess" => new RelatedProcess(), + "#microsoft.graph.networkaccess.relatedRemoteNetwork" => new RelatedRemoteNetwork(), + "#microsoft.graph.networkaccess.relatedTenant" => new RelatedTenant(), + "#microsoft.graph.networkaccess.relatedThreatIntelligence" => new RelatedThreatIntelligence(), + "#microsoft.graph.networkaccess.relatedWebCategory" => new RelatedWebCategory(), + _ => new RelatedResource(), + }; + } + /// + /// 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) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedTenant.cs b/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedTenant.cs new file mode 100644 index 00000000000..92256e863ea --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedTenant.cs @@ -0,0 +1,57 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models.Networkaccess { + public class RelatedTenant : RelatedResource, IParsable { + /// The tenantId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TenantId { + get { return BackingStore?.Get("tenantId"); } + set { BackingStore?.Set("tenantId", value); } + } +#nullable restore +#else + public string TenantId { + get { return BackingStore?.Get("tenantId"); } + set { BackingStore?.Set("tenantId", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public RelatedTenant() : base() { + OdataType = "#microsoft.graph.networkaccess.relatedTenant"; + } + /// + /// Creates a new instance of 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 RelatedTenant CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RelatedTenant(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"tenantId", n => { TenantId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("tenantId", TenantId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedThreatIntelligence.cs b/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedThreatIntelligence.cs new file mode 100644 index 00000000000..dbeaed788bf --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedThreatIntelligence.cs @@ -0,0 +1,48 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models.Networkaccess { + public class RelatedThreatIntelligence : RelatedResource, IParsable { + /// The threatCount property + public long? ThreatCount { + get { return BackingStore?.Get("threatCount"); } + set { BackingStore?.Set("threatCount", value); } + } + /// + /// Instantiates a new and sets the default values. + /// + public RelatedThreatIntelligence() : base() { + OdataType = "#microsoft.graph.networkaccess.relatedThreatIntelligence"; + } + /// + /// Creates a new instance of 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 RelatedThreatIntelligence CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RelatedThreatIntelligence(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"threatCount", n => { ThreatCount = n.GetLongValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteLongValue("threatCount", ThreatCount); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedWebCategory.cs b/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedWebCategory.cs new file mode 100644 index 00000000000..e2ba62d55dd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Networkaccess/RelatedWebCategory.cs @@ -0,0 +1,57 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models.Networkaccess { + public class RelatedWebCategory : RelatedResource, IParsable { + /// The webCategoryName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? WebCategoryName { + get { return BackingStore?.Get("webCategoryName"); } + set { BackingStore?.Set("webCategoryName", value); } + } +#nullable restore +#else + public string WebCategoryName { + get { return BackingStore?.Get("webCategoryName"); } + set { BackingStore?.Set("webCategoryName", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public RelatedWebCategory() : base() { + OdataType = "#microsoft.graph.networkaccess.relatedWebCategory"; + } + /// + /// Creates a new instance of 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 RelatedWebCategory CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RelatedWebCategory(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"webCategoryName", n => { WebCategoryName = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteStringValue("webCategoryName", WebCategoryName); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs b/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs index 3b2c2758b87..ea5b6ea9d51 100644 --- a/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs +++ b/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs @@ -132,6 +132,20 @@ public Microsoft.Graph.Beta.Models.MeetingAttendanceReport MeetingAttendanceRepo get { return BackingStore?.Get("meetingAttendanceReport"); } set { BackingStore?.Set("meetingAttendanceReport", value); } } +#endif + /// The ID of the meeting template. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MeetingTemplateId { + get { return BackingStore?.Get("meetingTemplateId"); } + set { BackingStore?.Set("meetingTemplateId", value); } + } +#nullable restore +#else + public string MeetingTemplateId { + get { return BackingStore?.Get("meetingTemplateId"); } + set { BackingStore?.Set("meetingTemplateId", value); } + } #endif /// The participants associated with the online meeting, including the organizer and the attendees. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -240,6 +254,7 @@ public override IDictionary> GetFieldDeserializers() {"isBroadcast", n => { IsBroadcast = n.GetBoolValue(); } }, {"joinUrl", n => { JoinUrl = n.GetStringValue(); } }, {"meetingAttendanceReport", n => { MeetingAttendanceReport = n.GetObjectValue(Microsoft.Graph.Beta.Models.MeetingAttendanceReport.CreateFromDiscriminatorValue); } }, + {"meetingTemplateId", n => { MeetingTemplateId = n.GetStringValue(); } }, {"participants", n => { Participants = n.GetObjectValue(MeetingParticipants.CreateFromDiscriminatorValue); } }, {"recording", n => { Recording = n.GetByteArrayValue(); } }, {"recordings", n => { Recordings = n.GetCollectionOfObjectValues(CallRecording.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -266,6 +281,7 @@ public override void Serialize(ISerializationWriter writer) { writer.WriteBoolValue("isBroadcast", IsBroadcast); writer.WriteStringValue("joinUrl", JoinUrl); writer.WriteObjectValue("meetingAttendanceReport", MeetingAttendanceReport); + writer.WriteStringValue("meetingTemplateId", MeetingTemplateId); writer.WriteObjectValue("participants", Participants); writer.WriteByteArrayValue("recording", Recording); writer.WriteCollectionOfObjectValues("recordings", Recordings); diff --git a/src/Microsoft.Graph/Generated/Models/Partners/Billing/BilledReconciliation.cs b/src/Microsoft.Graph/Generated/Models/Partners/Billing/BilledReconciliation.cs new file mode 100644 index 00000000000..a848e72c6d2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Partners/Billing/BilledReconciliation.cs @@ -0,0 +1,35 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models.Partners.Billing { + public class BilledReconciliation : Microsoft.Graph.Beta.Models.Entity, IParsable { + /// + /// Creates a new instance of 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 BilledReconciliation CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new BilledReconciliation(); + } + /// + /// 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) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Partners/Billing/Billing.cs b/src/Microsoft.Graph/Generated/Models/Partners/Billing/Billing.cs index 1d78f919f6e..3b3ef4c65ad 100644 --- a/src/Microsoft.Graph/Generated/Models/Partners/Billing/Billing.cs +++ b/src/Microsoft.Graph/Generated/Models/Partners/Billing/Billing.cs @@ -33,6 +33,20 @@ public List Operations { get { return BackingStore?.Get>("operations"); } set { BackingStore?.Set("operations", value); } } +#endif + /// The reconciliation property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public BillingReconciliation? Reconciliation { + get { return BackingStore?.Get("reconciliation"); } + set { BackingStore?.Set("reconciliation", value); } + } +#nullable restore +#else + public BillingReconciliation Reconciliation { + get { return BackingStore?.Get("reconciliation"); } + set { BackingStore?.Set("reconciliation", value); } + } #endif /// The usage property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -65,6 +79,7 @@ public override IDictionary> GetFieldDeserializers() return new Dictionary>(base.GetFieldDeserializers()) { {"manifests", n => { Manifests = n.GetCollectionOfObjectValues(Manifest.CreateFromDiscriminatorValue)?.ToList(); } }, {"operations", n => { Operations = n.GetCollectionOfObjectValues(Operation.CreateFromDiscriminatorValue)?.ToList(); } }, + {"reconciliation", n => { Reconciliation = n.GetObjectValue(BillingReconciliation.CreateFromDiscriminatorValue); } }, {"usage", n => { Usage = n.GetObjectValue(AzureUsage.CreateFromDiscriminatorValue); } }, }; } @@ -77,6 +92,7 @@ public override void Serialize(ISerializationWriter writer) { base.Serialize(writer); writer.WriteCollectionOfObjectValues("manifests", Manifests); writer.WriteCollectionOfObjectValues("operations", Operations); + writer.WriteObjectValue("reconciliation", Reconciliation); writer.WriteObjectValue("usage", Usage); } } diff --git a/src/Microsoft.Graph/Generated/Models/Partners/Billing/BillingReconciliation.cs b/src/Microsoft.Graph/Generated/Models/Partners/Billing/BillingReconciliation.cs new file mode 100644 index 00000000000..29ed6de1d17 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Partners/Billing/BillingReconciliation.cs @@ -0,0 +1,51 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models.Partners.Billing { + public class BillingReconciliation : Microsoft.Graph.Beta.Models.Entity, IParsable { + /// The billed property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public BilledReconciliation? Billed { + get { return BackingStore?.Get("billed"); } + set { BackingStore?.Set("billed", value); } + } +#nullable restore +#else + public BilledReconciliation Billed { + get { return BackingStore?.Get("billed"); } + set { BackingStore?.Set("billed", value); } + } +#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 BillingReconciliation CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new BillingReconciliation(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"billed", n => { Billed = n.GetObjectValue(BilledReconciliation.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("billed", Billed); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PendingExternalUserProfile.cs b/src/Microsoft.Graph/Generated/Models/PendingExternalUserProfile.cs new file mode 100644 index 00000000000..6bf4ed4d7ae --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PendingExternalUserProfile.cs @@ -0,0 +1,41 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class PendingExternalUserProfile : ExternalProfile, IParsable { + /// + /// Instantiates a new and sets the default values. + /// + public PendingExternalUserProfile() : base() { + OdataType = "#microsoft.graph.pendingExternalUserProfile"; + } + /// + /// Creates a new instance of 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 PendingExternalUserProfile CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PendingExternalUserProfile(); + } + /// + /// 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) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PendingExternalUserProfileCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/PendingExternalUserProfileCollectionResponse.cs new file mode 100644 index 00000000000..46f6ec8e067 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/PendingExternalUserProfileCollectionResponse.cs @@ -0,0 +1,51 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class PendingExternalUserProfileCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#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 PendingExternalUserProfileCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new PendingExternalUserProfileCollectionResponse(); + } + /// + /// 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(PendingExternalUserProfile.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/PermissionGrantPolicy.cs b/src/Microsoft.Graph/Generated/Models/PermissionGrantPolicy.cs index a9dfbaad4b0..062d8c77805 100644 --- a/src/Microsoft.Graph/Generated/Models/PermissionGrantPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/PermissionGrantPolicy.cs @@ -34,6 +34,11 @@ public List Includes { set { BackingStore?.Set("includes", value); } } #endif + /// The resource type the pre-approval policy applies to. Possible values: group for groups and teams, chat for chats, tenant for all supported resources in the tenant. Required. + public Microsoft.Graph.Beta.Models.ResourceScopeType? ResourceScopeType { + get { return BackingStore?.Get("resourceScopeType"); } + set { BackingStore?.Set("resourceScopeType", value); } + } /// /// Instantiates a new and sets the default values. /// @@ -57,6 +62,7 @@ public override IDictionary> GetFieldDeserializers() return new Dictionary>(base.GetFieldDeserializers()) { {"excludes", n => { Excludes = n.GetCollectionOfObjectValues(PermissionGrantConditionSet.CreateFromDiscriminatorValue)?.ToList(); } }, {"includes", n => { Includes = n.GetCollectionOfObjectValues(PermissionGrantConditionSet.CreateFromDiscriminatorValue)?.ToList(); } }, + {"resourceScopeType", n => { ResourceScopeType = n.GetEnumValue(); } }, }; } /// @@ -68,6 +74,7 @@ public override void Serialize(ISerializationWriter writer) { base.Serialize(writer); writer.WriteCollectionOfObjectValues("excludes", Excludes); writer.WriteCollectionOfObjectValues("includes", Includes); + writer.WriteEnumValue("resourceScopeType", ResourceScopeType); } } } diff --git a/src/Microsoft.Graph/Generated/Models/Place.cs b/src/Microsoft.Graph/Generated/Models/Place.cs index 714e1708134..a941b4932fd 100644 --- a/src/Microsoft.Graph/Generated/Models/Place.cs +++ b/src/Microsoft.Graph/Generated/Models/Place.cs @@ -61,6 +61,20 @@ public string Phone { get { return BackingStore?.Get("phone"); } set { BackingStore?.Set("phone", value); } } +#endif + /// An alternate immutable unique identifier of the place. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PlaceId { + get { return BackingStore?.Get("placeId"); } + set { BackingStore?.Set("placeId", value); } + } +#nullable restore +#else + public string PlaceId { + get { return BackingStore?.Get("placeId"); } + set { BackingStore?.Set("placeId", value); } + } #endif /// /// Creates a new instance of the appropriate class based on discriminator value @@ -87,6 +101,7 @@ public override IDictionary> GetFieldDeserializers() {"displayName", n => { DisplayName = n.GetStringValue(); } }, {"geoCoordinates", n => { GeoCoordinates = n.GetObjectValue(OutlookGeoCoordinates.CreateFromDiscriminatorValue); } }, {"phone", n => { Phone = n.GetStringValue(); } }, + {"placeId", n => { PlaceId = n.GetStringValue(); } }, }; } /// @@ -100,6 +115,7 @@ public override void Serialize(ISerializationWriter writer) { writer.WriteStringValue("displayName", DisplayName); writer.WriteObjectValue("geoCoordinates", GeoCoordinates); writer.WriteStringValue("phone", Phone); + writer.WriteStringValue("placeId", PlaceId); } } } diff --git a/src/Microsoft.Graph/Generated/Models/PlannerTaskCompletionRequirements.cs b/src/Microsoft.Graph/Generated/Models/PlannerTaskCompletionRequirements.cs index 4de864b8b2f..b32eb3295aa 100644 --- a/src/Microsoft.Graph/Generated/Models/PlannerTaskCompletionRequirements.cs +++ b/src/Microsoft.Graph/Generated/Models/PlannerTaskCompletionRequirements.cs @@ -14,5 +14,7 @@ public enum PlannerTaskCompletionRequirements { FormCompletion = 8, [EnumMember(Value = "approvalCompletion")] ApprovalCompletion = 16, + [EnumMember(Value = "completionInHostedApp")] + CompletionInHostedApp = 32, } } diff --git a/src/Microsoft.Graph/Generated/Models/RecommendationBase.cs b/src/Microsoft.Graph/Generated/Models/RecommendationBase.cs index 51bd4309ecc..69a0fff13cf 100644 --- a/src/Microsoft.Graph/Generated/Models/RecommendationBase.cs +++ b/src/Microsoft.Graph/Generated/Models/RecommendationBase.cs @@ -163,7 +163,7 @@ public RecommendationPriority? Priority { get { return BackingStore?.Get("priority"); } set { BackingStore?.Set("priority", value); } } - /// Friendly shortname to identify the recommendation. The possible values are: adfsAppsMigration, enableDesktopSSO, enablePHS, enableProvisioning, switchFromPerUserMFA, tenantMFA, thirdPartyApps, turnOffPerUserMFA, useAuthenticatorApp, useMyApps, staleApps, staleAppCreds, applicationCredentialExpiry, servicePrincipalKeyExpiry, adminMFAV2, blockLegacyAuthentication, integratedApps, mfaRegistrationV2, pwagePolicyNew, passwordHashSync, oneAdmin, roleOverlap, selfServicePasswordReset, signinRiskPolicy, userRiskPolicy, verifyAppPublisher, privateLinkForAAD, appRoleAssignmentsGroups, appRoleAssignmentsUsers, managedIdentity, overprivilegedApps, unknownFutureValue, longLivedCredentials, aadConnectDeprecated, adalToMsalMigration, ownerlessApps, inactiveGuests. Also, please note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: longLivedCredentials, aadConnectDeprecated, adalToMsalMigration, ownerlessApps, inactiveGuests. + /// Friendly shortname to identify the recommendation. The possible values are: adfsAppsMigration, enableDesktopSSO, enablePHS, enableProvisioning, switchFromPerUserMFA, tenantMFA, thirdPartyApps, turnOffPerUserMFA, useAuthenticatorApp, useMyApps, staleApps, staleAppCreds, applicationCredentialExpiry, servicePrincipalKeyExpiry, adminMFAV2, blockLegacyAuthentication, integratedApps, mfaRegistrationV2, pwagePolicyNew, passwordHashSync, oneAdmin, roleOverlap, selfServicePasswordReset, signinRiskPolicy, userRiskPolicy, verifyAppPublisher, privateLinkForAAD, appRoleAssignmentsGroups, appRoleAssignmentsUsers, managedIdentity, overprivilegedApps, unknownFutureValue, longLivedCredentials, aadConnectDeprecated, adalToMsalMigration, ownerlessApps, inactiveGuests, aadGraphDeprecationApplication, aadGraphDeprecationServicePrincipal, mfaServerDeprecation. Also, please note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: longLivedCredentials, aadConnectDeprecated, adalToMsalMigration, ownerlessApps, inactiveGuests. public Microsoft.Graph.Beta.Models.RecommendationType? RecommendationType { get { return BackingStore?.Get("recommendationType"); } set { BackingStore?.Set("recommendationType", value); } diff --git a/src/Microsoft.Graph/Generated/Models/ResourceScopeType.cs b/src/Microsoft.Graph/Generated/Models/ResourceScopeType.cs new file mode 100644 index 00000000000..3caa01df6a2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/ResourceScopeType.cs @@ -0,0 +1,17 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Beta.Models { + public enum ResourceScopeType { + [EnumMember(Value = "group")] + Group, + [EnumMember(Value = "chat")] + Chat, + [EnumMember(Value = "tenant")] + Tenant, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + [EnumMember(Value = "team")] + Team, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Schedule.cs b/src/Microsoft.Graph/Generated/Models/Schedule.cs index 852bf81b1dc..9a98e385db4 100644 --- a/src/Microsoft.Graph/Generated/Models/Schedule.cs +++ b/src/Microsoft.Graph/Generated/Models/Schedule.cs @@ -30,6 +30,16 @@ public bool? Enabled { get { return BackingStore?.Get("enabled"); } set { BackingStore?.Set("enabled", value); } } + /// Indicates whether approval is required by a manager of this schedule for cross location shift requests. + public bool? IsCrossLocationShiftRequestApprovalRequired { + get { return BackingStore?.Get("isCrossLocationShiftRequestApprovalRequired"); } + set { BackingStore?.Set("isCrossLocationShiftRequestApprovalRequired", value); } + } + /// Indicates whether the cross-location marketplace feature is enabled for this schedule. + public bool? IsCrossLocationShiftsEnabled { + get { return BackingStore?.Get("isCrossLocationShiftsEnabled"); } + set { BackingStore?.Set("isCrossLocationShiftsEnabled", value); } + } /// The offer requests for shifts in the schedule. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -143,7 +153,7 @@ public List ShiftsRoleDefinitions { set { BackingStore?.Set("shiftsRoleDefinitions", value); } } #endif - /// Indicates the start day of the week. + /// Indicates the start day of the week. The possible values are: sunday, monday, tuesday, wednesday, thursday, friday, saturday. public DayOfWeekObject? StartDayOfWeek { get { return BackingStore?.Get("startDayOfWeek"); } set { BackingStore?.Set("startDayOfWeek", value); } @@ -261,7 +271,7 @@ public string TimeZone { set { BackingStore?.Set("timeZone", value); } } #endif - /// The Ids for the workforce integrations associated with this schedule. + /// The IDs for the workforce integrations associated with this schedule. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? WorkforceIntegrationIds { @@ -293,6 +303,8 @@ public override IDictionary> GetFieldDeserializers() {"activitiesIncludedWhenCopyingShiftsEnabled", n => { ActivitiesIncludedWhenCopyingShiftsEnabled = n.GetBoolValue(); } }, {"dayNotes", n => { DayNotes = n.GetCollectionOfObjectValues(DayNote.CreateFromDiscriminatorValue)?.ToList(); } }, {"enabled", n => { Enabled = n.GetBoolValue(); } }, + {"isCrossLocationShiftRequestApprovalRequired", n => { IsCrossLocationShiftRequestApprovalRequired = n.GetBoolValue(); } }, + {"isCrossLocationShiftsEnabled", n => { IsCrossLocationShiftsEnabled = n.GetBoolValue(); } }, {"offerShiftRequests", n => { OfferShiftRequests = n.GetCollectionOfObjectValues(OfferShiftRequest.CreateFromDiscriminatorValue)?.ToList(); } }, {"offerShiftRequestsEnabled", n => { OfferShiftRequestsEnabled = n.GetBoolValue(); } }, {"openShiftChangeRequests", n => { OpenShiftChangeRequests = n.GetCollectionOfObjectValues(OpenShiftChangeRequest.CreateFromDiscriminatorValue)?.ToList(); } }, @@ -327,6 +339,8 @@ public override void Serialize(ISerializationWriter writer) { writer.WriteBoolValue("activitiesIncludedWhenCopyingShiftsEnabled", ActivitiesIncludedWhenCopyingShiftsEnabled); writer.WriteCollectionOfObjectValues("dayNotes", DayNotes); writer.WriteBoolValue("enabled", Enabled); + writer.WriteBoolValue("isCrossLocationShiftRequestApprovalRequired", IsCrossLocationShiftRequestApprovalRequired); + writer.WriteBoolValue("isCrossLocationShiftsEnabled", IsCrossLocationShiftsEnabled); writer.WriteCollectionOfObjectValues("offerShiftRequests", OfferShiftRequests); writer.WriteBoolValue("offerShiftRequestsEnabled", OfferShiftRequestsEnabled); writer.WriteCollectionOfObjectValues("openShiftChangeRequests", OpenShiftChangeRequests); diff --git a/src/Microsoft.Graph/Generated/Models/SchedulingGroup.cs b/src/Microsoft.Graph/Generated/Models/SchedulingGroup.cs index d1b60fb727d..da3dc0b62a2 100644 --- a/src/Microsoft.Graph/Generated/Models/SchedulingGroup.cs +++ b/src/Microsoft.Graph/Generated/Models/SchedulingGroup.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Beta.Models { public class SchedulingGroup : ChangeTrackedEntity, IParsable { - /// The code for the schedulingGroup to represent an external identifier. + /// The code for the schedulingGroup to represent an external identifier. This field must be unique within the team in Microsoft Teams and uses an alphanumeric format, with a maximum of 100 characters. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Code { diff --git a/src/Microsoft.Graph/Generated/Models/Security/Alert.cs b/src/Microsoft.Graph/Generated/Models/Security/Alert.cs index 3ccbf31be52..89c01a3b8a1 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Alert.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Alert.cs @@ -20,7 +20,7 @@ public string ActorDisplayName { set { BackingStore?.Set("actorDisplayName", value); } } #endif - /// The alertPolicyId property + /// The ID of the policy that generated the alert, and populated when there is a specific policy that generated the alert, whether configured by a customer or a built-in policy. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? AlertPolicyId { @@ -34,7 +34,7 @@ public string AlertPolicyId { set { BackingStore?.Set("alertPolicyId", value); } } #endif - /// URL for the alert page in the Microsoft 365 Defender portal. + /// URL for the Microsoft 365 Defender portal alert page. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? AlertWebUrl { @@ -114,7 +114,7 @@ public string Description { set { BackingStore?.Set("description", value); } } #endif - /// Detection technology or sensor that identified the notable component or activity. Possible values are: unknown, microsoftDefenderForEndpoint, antivirus, smartScreen, customTi, microsoftDefenderForOffice365, automatedInvestigation, microsoftThreatExperts, customDetection, microsoftDefenderForIdentity, cloudAppSecurity, microsoft365Defender, azureAdIdentityProtection, manual, microsoftDataLossPrevention, appGovernancePolicy, appGovernanceDetection, unknownFutureValue, microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement. + /// Detection technology or sensor that identified the notable component or activity. Possible values are: unknown, microsoftDefenderForEndpoint, antivirus, smartScreen, customTi, microsoftDefenderForOffice365, automatedInvestigation, microsoftThreatExperts, customDetection, microsoftDefenderForIdentity, cloudAppSecurity, microsoft365Defender, azureAdIdentityProtection, manual, microsoftDataLossPrevention, appGovernancePolicy, appGovernanceDetection, unknownFutureValue, microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement, microsoftSentinel, nrtAlerts, scheduledAlerts, microsoftDefenderThreatIntelligenceAnalytics, builtInMl. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement, microsoftSentinel, nrtAlerts, scheduledAlerts, microsoftDefenderThreatIntelligenceAnalytics, builtInMl. public Microsoft.Graph.Beta.Models.Security.DetectionSource? DetectionSource { get { return BackingStore?.Get("detectionSource"); } set { BackingStore?.Set("detectionSource", value); } @@ -133,7 +133,7 @@ public string DetectorId { set { BackingStore?.Set("detectorId", value); } } #endif - /// Specifies the result of the investigation, whether the alert represents a true attack and if so, the nature of the attack. Possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedUser, phishing, maliciousUserActivity, clean, insufficientData, confirmedUserActivity, lineOfBusinessApplication, unknownFutureValue. + /// Specifies the result of the investigation, whether the alert represents a true attack, and if so, the nature of the attack. Possible values are: unknown, apt, malware, securityPersonnel, securityTesting, unwantedSoftware, other, multiStagedAttack, compromisedUser, phishing, maliciousUserActivity, clean, insufficientData, confirmedUserActivity, lineOfBusinessApplication, unknownFutureValue. public AlertDetermination? Determination { get { return BackingStore?.Get("determination"); } set { BackingStore?.Set("determination", value); } @@ -209,7 +209,7 @@ public List MitreTechniques { set { BackingStore?.Set("mitreTechniques", value); } } #endif - /// The productName property + /// The name of the product which published this alert. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ProductName { @@ -271,7 +271,7 @@ public AlertStatus? Status { get { return BackingStore?.Get("status"); } set { BackingStore?.Set("status", value); } } - /// The system tags associated with the alert + /// The system tags associated with the alert. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? SystemTags { diff --git a/src/Microsoft.Graph/Generated/Models/Security/DetectionRuleCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/Security/DetectionRuleCollectionResponse.cs new file mode 100644 index 00000000000..e7d2575ced7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/DetectionRuleCollectionResponse.cs @@ -0,0 +1,51 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models.Security { + public class DetectionRuleCollectionResponse : Microsoft.Graph.Beta.Models.BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#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 DetectionRuleCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DetectionRuleCollectionResponse(); + } + /// + /// 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(DetectionRule.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/Incident.cs b/src/Microsoft.Graph/Generated/Models/Security/Incident.cs index 09d84da6b4a..2553c767c14 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/Incident.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/Incident.cs @@ -72,7 +72,7 @@ public List CustomTags { set { BackingStore?.Set("customTags", value); } } #endif - /// A rich text string describing the incident + /// Description of the incident. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Description { @@ -119,7 +119,7 @@ public string IncidentWebUrl { set { BackingStore?.Set("incidentWebUrl", value); } } #endif - /// The lastModifiedBy property + /// The identity that last modified the incident. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? LastModifiedBy { diff --git a/src/Microsoft.Graph/Generated/Models/Security/RulesRoot.cs b/src/Microsoft.Graph/Generated/Models/Security/RulesRoot.cs new file mode 100644 index 00000000000..00fa1c4e8ac --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/RulesRoot.cs @@ -0,0 +1,51 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models.Security { + public class RulesRoot : Microsoft.Graph.Beta.Models.Entity, IParsable { + /// The detectionRules property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? DetectionRules { + get { return BackingStore?.Get?>("detectionRules"); } + set { BackingStore?.Set("detectionRules", value); } + } +#nullable restore +#else + public List DetectionRules { + get { return BackingStore?.Get>("detectionRules"); } + set { BackingStore?.Set("detectionRules", value); } + } +#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 RulesRoot CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new RulesRoot(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"detectionRules", n => { DetectionRules = n.GetCollectionOfObjectValues(DetectionRule.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("detectionRules", DetectionRules); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardBotConfiguration.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardBotConfiguration.cs index 086a448a054..6389f07de3a 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardBotConfiguration.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardBotConfiguration.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The botId property + /// The ID (usually a GUID) of the bot associated with the specific teamsAppDefinition. This is a unique app ID for the bot as registered with the Bot Framework. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? BotId { diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardContentSource.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardContentSource.cs index dbf6a6625d1..6ed4ba42b03 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardContentSource.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardContentSource.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The botConfiguration property + /// The configuration for the bot source. Required if sourceType is set to bot. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public TeamsAppDashboardCardBotConfiguration? BotConfiguration { @@ -42,7 +42,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// The sourceType property + /// Represents the type of source that powers the content of the dashboard card. The possible values are: bot, unknownFutureValue. public TeamsAppDashboardCardSourceType? SourceType { get { return BackingStore?.Get("sourceType"); } set { BackingStore?.Set("sourceType", value); } diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardDefinition.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardDefinition.cs index 6dec5259f78..d96e24d93cf 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardDefinition.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Beta.Models { public class TeamsAppDashboardCardDefinition : Entity, IParsable { - /// The contentSource property + /// The configuration for the source of the card content. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public TeamsAppDashboardCardContentSource? ContentSource { @@ -20,12 +20,12 @@ public TeamsAppDashboardCardContentSource ContentSource { set { BackingStore?.Set("contentSource", value); } } #endif - /// The defaultSize property + /// The size of the card. The possible values are: medium, large, unknownFutureValue. Required. public TeamsAppDashboardCardSize? DefaultSize { get { return BackingStore?.Get("defaultSize"); } set { BackingStore?.Set("defaultSize", value); } } - /// The description property + /// The description for the card. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Description { @@ -39,7 +39,7 @@ public string Description { set { BackingStore?.Set("description", value); } } #endif - /// The displayName property + /// The name of the card. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { @@ -53,7 +53,7 @@ public string DisplayName { set { BackingStore?.Set("displayName", value); } } #endif - /// The icon property + /// Configuration for the display of the icon in the card picker. If neither this nor any of its properties (iconUrl and officeUIFabricIconName) are specified, the color icon of the app is used. Optional. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public TeamsAppDashboardCardIcon? Icon { @@ -67,7 +67,7 @@ public TeamsAppDashboardCardIcon Icon { set { BackingStore?.Set("icon", value); } } #endif - /// The pickerGroupId property + /// ID for the group in the card picker. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? PickerGroupId { diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardIcon.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardIcon.cs index 859c5f5a515..a12eddb3a7e 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardIcon.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppDashboardCardIcon.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The iconUrl property + /// The icon for the card, displayed in the toolbox and card bar, is represented as a URL. The preferred size for raster images is 28x28 pixels. If this property has a value, the officeFabricIconFontName property is ignored. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? IconUrl { @@ -42,7 +42,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// The officeUIFabricIconName property + /// The friendly name of the Office UI Fabric/Fluent UI icon for the card that is used when the iconUrl property isn't specified. For example, 'officeUIFabricIconName': 'Search'. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? OfficeUIFabricIconName { diff --git a/src/Microsoft.Graph/Generated/Models/TeamsAppDefinition.cs b/src/Microsoft.Graph/Generated/Models/TeamsAppDefinition.cs index c15a1cf6546..543f6d6c9fc 100644 --- a/src/Microsoft.Graph/Generated/Models/TeamsAppDefinition.cs +++ b/src/Microsoft.Graph/Generated/Models/TeamsAppDefinition.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Beta.Models { public class TeamsAppDefinition : Entity, IParsable { - /// A collection of scopes where the Teams app can be installed. Possible values are:team—Indicates that the Teams app can be installed within a team and is authorized to access that team's data. groupChat—Indicates that the Teams app can be installed within a group chat and is authorized to access that group chat's data. personal—Indicates that the Teams app can be installed in the personal scope of a user and is authorized to access that user's data. + /// A collection of scopes where the Teams app can be installed. Possible values are:team—Indicates that the Teams app can be installed within a team and is authorized to access that team's data. groupChat—Indicates that the Teams app can be installed within a group chat and is authorized to access that group chat's data. personal—Indicates that the Teams app can be installed in the personal scope of a user and is authorized to access that user's data. public TeamsAppInstallationScopes? AllowedInstallationScopes { get { return BackingStore?.Get("allowedInstallationScopes"); } set { BackingStore?.Set("allowedInstallationScopes", value); } @@ -81,7 +81,7 @@ public IdentitySet CreatedBy { set { BackingStore?.Set("createdBy", value); } } #endif - /// The dashboardCards property + /// Dashboard cards specified in the Teams app manifest. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? DashboardCards { @@ -142,7 +142,7 @@ public TeamsAppIcon OutlineIcon { set { BackingStore?.Set("outlineIcon", value); } } #endif - /// The published status of a specific version of a Teams app. Possible values are:submitted—The specific version of the Teams app has been submitted and is under review. published—The request to publish the specific version of the Teams app has been approved by the admin and the app is published. rejected — The request to publish the specific version of the Teams app was rejected by the admin. + /// The published status of a specific version of a Teams app. Possible values are:submitted—The specific version of the Teams app has been submitted and is under review. published - The request to publish the specific version of the Teams app has been approved by the admin and the app is published. rejected - The request to publish the specific version of the Teams app was rejected by the admin. public TeamsAppPublishingState? PublishingState { get { return BackingStore?.Get("publishingState"); } set { BackingStore?.Set("publishingState", value); } diff --git a/src/Microsoft.Graph/Generated/Models/TimeOffReason.cs b/src/Microsoft.Graph/Generated/Models/TimeOffReason.cs index 1f4fa0d5417..0515700ca90 100644 --- a/src/Microsoft.Graph/Generated/Models/TimeOffReason.cs +++ b/src/Microsoft.Graph/Generated/Models/TimeOffReason.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Beta.Models { public class TimeOffReason : ChangeTrackedEntity, IParsable { - /// The code of the timeOffReason to represent an external identifier. + /// The code of the timeOffReason to represent an external identifier. This field must be unique within the team in Microsoft Teams and uses an alphanumeric format, with a maximum of 100 characters. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Code { diff --git a/src/Microsoft.Graph/Generated/Models/User.cs b/src/Microsoft.Graph/Generated/Models/User.cs index 81d5e1b5ab7..44ed74e0149 100644 --- a/src/Microsoft.Graph/Generated/Models/User.cs +++ b/src/Microsoft.Graph/Generated/Models/User.cs @@ -296,6 +296,20 @@ public string City { get { return BackingStore?.Get("city"); } set { BackingStore?.Set("city", value); } } +#endif + /// The cloudClipboard property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public CloudClipboardRoot? CloudClipboard { + get { return BackingStore?.Get("cloudClipboard"); } + set { BackingStore?.Set("cloudClipboard", value); } + } +#nullable restore +#else + public CloudClipboardRoot CloudClipboard { + get { return BackingStore?.Get("cloudClipboard"); } + set { BackingStore?.Set("cloudClipboard", value); } + } #endif /// The cloudPCs property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -2034,6 +2048,7 @@ public override IDictionary> GetFieldDeserializers() {"calendars", n => { Calendars = n.GetCollectionOfObjectValues(Microsoft.Graph.Beta.Models.Calendar.CreateFromDiscriminatorValue)?.ToList(); } }, {"chats", n => { Chats = n.GetCollectionOfObjectValues(Chat.CreateFromDiscriminatorValue)?.ToList(); } }, {"city", n => { City = n.GetStringValue(); } }, + {"cloudClipboard", n => { CloudClipboard = n.GetObjectValue(CloudClipboardRoot.CreateFromDiscriminatorValue); } }, {"cloudPCs", n => { CloudPCs = n.GetCollectionOfObjectValues(CloudPC.CreateFromDiscriminatorValue)?.ToList(); } }, {"cloudRealtimeCommunicationInfo", n => { CloudRealtimeCommunicationInfo = n.GetObjectValue(Microsoft.Graph.Beta.Models.CloudRealtimeCommunicationInfo.CreateFromDiscriminatorValue); } }, {"companyName", n => { CompanyName = n.GetStringValue(); } }, @@ -2195,6 +2210,7 @@ public override void Serialize(ISerializationWriter writer) { writer.WriteCollectionOfObjectValues("calendarView", CalendarView); writer.WriteCollectionOfObjectValues("chats", Chats); writer.WriteStringValue("city", City); + writer.WriteObjectValue("cloudClipboard", CloudClipboard); writer.WriteCollectionOfObjectValues("cloudPCs", CloudPCs); writer.WriteObjectValue("cloudRealtimeCommunicationInfo", CloudRealtimeCommunicationInfo); writer.WriteStringValue("companyName", CompanyName); diff --git a/src/Microsoft.Graph/Generated/Models/UserSettings.cs b/src/Microsoft.Graph/Generated/Models/UserSettings.cs index ab5882e3686..b8d4ca91786 100644 --- a/src/Microsoft.Graph/Generated/Models/UserSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/UserSettings.cs @@ -71,6 +71,20 @@ public Microsoft.Graph.Beta.Models.ShiftPreferences ShiftPreferences { get { return BackingStore?.Get("shiftPreferences"); } set { BackingStore?.Set("shiftPreferences", value); } } +#endif + /// The windows property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Windows { + get { return BackingStore?.Get?>("windows"); } + set { BackingStore?.Set("windows", value); } + } +#nullable restore +#else + public List Windows { + get { return BackingStore?.Get>("windows"); } + set { BackingStore?.Set("windows", value); } + } #endif /// /// Creates a new instance of the appropriate class based on discriminator value @@ -93,6 +107,7 @@ public override IDictionary> GetFieldDeserializers() {"itemInsights", n => { ItemInsights = n.GetObjectValue(UserInsightsSettings.CreateFromDiscriminatorValue); } }, {"regionalAndLanguageSettings", n => { RegionalAndLanguageSettings = n.GetObjectValue(Microsoft.Graph.Beta.Models.RegionalAndLanguageSettings.CreateFromDiscriminatorValue); } }, {"shiftPreferences", n => { ShiftPreferences = n.GetObjectValue(Microsoft.Graph.Beta.Models.ShiftPreferences.CreateFromDiscriminatorValue); } }, + {"windows", n => { Windows = n.GetCollectionOfObjectValues(WindowsSetting.CreateFromDiscriminatorValue)?.ToList(); } }, }; } /// @@ -108,6 +123,7 @@ public override void Serialize(ISerializationWriter writer) { writer.WriteObjectValue("itemInsights", ItemInsights); writer.WriteObjectValue("regionalAndLanguageSettings", RegionalAndLanguageSettings); writer.WriteObjectValue("shiftPreferences", ShiftPreferences); + writer.WriteCollectionOfObjectValues("windows", Windows); } } } diff --git a/src/Microsoft.Graph/Generated/Models/UserTeamwork.cs b/src/Microsoft.Graph/Generated/Models/UserTeamwork.cs index 6b2113a23a7..7467f29c75b 100644 --- a/src/Microsoft.Graph/Generated/Models/UserTeamwork.cs +++ b/src/Microsoft.Graph/Generated/Models/UserTeamwork.cs @@ -34,7 +34,7 @@ public List InstalledApps { set { BackingStore?.Set("installedApps", value); } } #endif - /// Represents the chosen locale of a user in Microsoft Teams. + /// The chosen locale of a user in Microsoft Teams. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Locale { @@ -48,7 +48,7 @@ public string Locale { set { BackingStore?.Set("locale", value); } } #endif - /// Represents the region of the user in Microsoft Teams. + /// The region of the user in Microsoft Teams. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Region { diff --git a/src/Microsoft.Graph/Generated/Models/VirtualEventPresenter.cs b/src/Microsoft.Graph/Generated/Models/VirtualEventPresenter.cs index 920f16612b0..707dcce1caf 100644 --- a/src/Microsoft.Graph/Generated/Models/VirtualEventPresenter.cs +++ b/src/Microsoft.Graph/Generated/Models/VirtualEventPresenter.cs @@ -20,17 +20,17 @@ public string Email { set { BackingStore?.Set("email", value); } } #endif - /// Identity information of the presenter. + /// Identity information of the presenter. The supported identites are: communicationsGuestIdentity and communicationsUserIdentity. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public CommunicationsUserIdentity? Identity { - get { return BackingStore?.Get("identity"); } + public Microsoft.Graph.Beta.Models.Identity? Identity { + get { return BackingStore?.Get("identity"); } set { BackingStore?.Set("identity", value); } } #nullable restore #else - public CommunicationsUserIdentity Identity { - get { return BackingStore?.Get("identity"); } + public Microsoft.Graph.Beta.Models.Identity Identity { + get { return BackingStore?.Get("identity"); } set { BackingStore?.Set("identity", value); } } #endif @@ -47,20 +47,6 @@ public VirtualEventPresenterDetails PresenterDetails { get { return BackingStore?.Get("presenterDetails"); } set { BackingStore?.Set("presenterDetails", value); } } -#endif - /// The profilePhoto property -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public byte[]? ProfilePhoto { - get { return BackingStore?.Get("profilePhoto"); } - set { BackingStore?.Set("profilePhoto", value); } - } -#nullable restore -#else - public byte[] ProfilePhoto { - get { return BackingStore?.Get("profilePhoto"); } - set { BackingStore?.Set("profilePhoto", value); } - } #endif /// The sessions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -92,9 +78,8 @@ public List Sessions { public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { {"email", n => { Email = n.GetStringValue(); } }, - {"identity", n => { Identity = n.GetObjectValue(CommunicationsUserIdentity.CreateFromDiscriminatorValue); } }, + {"identity", n => { Identity = n.GetObjectValue(Microsoft.Graph.Beta.Models.Identity.CreateFromDiscriminatorValue); } }, {"presenterDetails", n => { PresenterDetails = n.GetObjectValue(VirtualEventPresenterDetails.CreateFromDiscriminatorValue); } }, - {"profilePhoto", n => { ProfilePhoto = n.GetByteArrayValue(); } }, {"sessions", n => { Sessions = n.GetCollectionOfObjectValues(VirtualEventSession.CreateFromDiscriminatorValue)?.ToList(); } }, }; } @@ -106,9 +91,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteStringValue("email", Email); - writer.WriteObjectValue("identity", Identity); + writer.WriteObjectValue("identity", Identity); writer.WriteObjectValue("presenterDetails", PresenterDetails); - writer.WriteByteArrayValue("profilePhoto", ProfilePhoto); writer.WriteCollectionOfObjectValues("sessions", Sessions); } } diff --git a/src/Microsoft.Graph/Generated/Models/VirtualEventPresenterDetails.cs b/src/Microsoft.Graph/Generated/Models/VirtualEventPresenterDetails.cs index 79b045d9a58..af740b5f494 100644 --- a/src/Microsoft.Graph/Generated/Models/VirtualEventPresenterDetails.cs +++ b/src/Microsoft.Graph/Generated/Models/VirtualEventPresenterDetails.cs @@ -97,6 +97,20 @@ public string PersonalSiteWebUrl { get { return BackingStore?.Get("personalSiteWebUrl"); } set { BackingStore?.Set("personalSiteWebUrl", value); } } +#endif + /// The content stream of the presenter's photo. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public byte[]? Photo { + get { return BackingStore?.Get("photo"); } + set { BackingStore?.Set("photo", value); } + } +#nullable restore +#else + public byte[] Photo { + get { return BackingStore?.Get("photo"); } + set { BackingStore?.Set("photo", value); } + } #endif /// The presenter's Twitter profile URL. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -140,6 +154,7 @@ public virtual IDictionary> GetFieldDeserializers() { {"linkedInProfileWebUrl", n => { LinkedInProfileWebUrl = n.GetStringValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, {"personalSiteWebUrl", n => { PersonalSiteWebUrl = n.GetStringValue(); } }, + {"photo", n => { Photo = n.GetByteArrayValue(); } }, {"twitterProfileWebUrl", n => { TwitterProfileWebUrl = n.GetStringValue(); } }, }; } @@ -155,6 +170,7 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteStringValue("linkedInProfileWebUrl", LinkedInProfileWebUrl); writer.WriteStringValue("@odata.type", OdataType); writer.WriteStringValue("personalSiteWebUrl", PersonalSiteWebUrl); + writer.WriteByteArrayValue("photo", Photo); writer.WriteStringValue("twitterProfileWebUrl", TwitterProfileWebUrl); writer.WriteAdditionalData(AdditionalData); } diff --git a/src/Microsoft.Graph/Generated/Models/VirtualEventTownhall.cs b/src/Microsoft.Graph/Generated/Models/VirtualEventTownhall.cs index bd90eb3e8fd..a2392700421 100644 --- a/src/Microsoft.Graph/Generated/Models/VirtualEventTownhall.cs +++ b/src/Microsoft.Graph/Generated/Models/VirtualEventTownhall.cs @@ -28,14 +28,14 @@ public List CoOrganizers { /// The invitedAttendees property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? InvitedAttendees { - get { return BackingStore?.Get?>("invitedAttendees"); } + public List? InvitedAttendees { + get { return BackingStore?.Get?>("invitedAttendees"); } set { BackingStore?.Set("invitedAttendees", value); } } #nullable restore #else - public List InvitedAttendees { - get { return BackingStore?.Get>("invitedAttendees"); } + public List InvitedAttendees { + get { return BackingStore?.Get>("invitedAttendees"); } set { BackingStore?.Set("invitedAttendees", value); } } #endif @@ -67,7 +67,7 @@ public override IDictionary> GetFieldDeserializers() return new Dictionary>(base.GetFieldDeserializers()) { {"audience", n => { Audience = n.GetEnumValue(); } }, {"coOrganizers", n => { CoOrganizers = n.GetCollectionOfObjectValues(CommunicationsUserIdentity.CreateFromDiscriminatorValue)?.ToList(); } }, - {"invitedAttendees", n => { InvitedAttendees = n.GetCollectionOfObjectValues(CommunicationsUserIdentity.CreateFromDiscriminatorValue)?.ToList(); } }, + {"invitedAttendees", n => { InvitedAttendees = n.GetCollectionOfObjectValues(Identity.CreateFromDiscriminatorValue)?.ToList(); } }, {"isInviteOnly", n => { IsInviteOnly = n.GetBoolValue(); } }, }; } @@ -80,7 +80,7 @@ public override void Serialize(ISerializationWriter writer) { base.Serialize(writer); writer.WriteEnumValue("audience", Audience); writer.WriteCollectionOfObjectValues("coOrganizers", CoOrganizers); - writer.WriteCollectionOfObjectValues("invitedAttendees", InvitedAttendees); + writer.WriteCollectionOfObjectValues("invitedAttendees", InvitedAttendees); writer.WriteBoolValue("isInviteOnly", IsInviteOnly); } } diff --git a/src/Microsoft.Graph/Generated/Models/WindowsSetting.cs b/src/Microsoft.Graph/Generated/Models/WindowsSetting.cs new file mode 100644 index 00000000000..51e39a150f7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/WindowsSetting.cs @@ -0,0 +1,90 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class WindowsSetting : Entity, IParsable { + /// The instances property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Instances { + get { return BackingStore?.Get?>("instances"); } + set { BackingStore?.Set("instances", value); } + } +#nullable restore +#else + public List Instances { + get { return BackingStore?.Get>("instances"); } + set { BackingStore?.Set("instances", value); } + } +#endif + /// The payloadType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PayloadType { + get { return BackingStore?.Get("payloadType"); } + set { BackingStore?.Set("payloadType", value); } + } +#nullable restore +#else + public string PayloadType { + get { return BackingStore?.Get("payloadType"); } + set { BackingStore?.Set("payloadType", value); } + } +#endif + /// The settingType property + public WindowsSettingType? SettingType { + get { return BackingStore?.Get("settingType"); } + set { BackingStore?.Set("settingType", value); } + } + /// The windowsDeviceId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? WindowsDeviceId { + get { return BackingStore?.Get("windowsDeviceId"); } + set { BackingStore?.Set("windowsDeviceId", value); } + } +#nullable restore +#else + public string WindowsDeviceId { + get { return BackingStore?.Get("windowsDeviceId"); } + set { BackingStore?.Set("windowsDeviceId", value); } + } +#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 WindowsSetting CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new WindowsSetting(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"instances", n => { Instances = n.GetCollectionOfObjectValues(WindowsSettingInstance.CreateFromDiscriminatorValue)?.ToList(); } }, + {"payloadType", n => { PayloadType = n.GetStringValue(); } }, + {"settingType", n => { SettingType = n.GetEnumValue(); } }, + {"windowsDeviceId", n => { WindowsDeviceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("instances", Instances); + writer.WriteStringValue("payloadType", PayloadType); + writer.WriteEnumValue("settingType", SettingType); + writer.WriteStringValue("windowsDeviceId", WindowsDeviceId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/WindowsSettingCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WindowsSettingCollectionResponse.cs new file mode 100644 index 00000000000..d2f109fa4c0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/WindowsSettingCollectionResponse.cs @@ -0,0 +1,51 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class WindowsSettingCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#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 WindowsSettingCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new WindowsSettingCollectionResponse(); + } + /// + /// 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(WindowsSetting.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/WindowsSettingInstance.cs b/src/Microsoft.Graph/Generated/Models/WindowsSettingInstance.cs new file mode 100644 index 00000000000..89b0154bdc7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/WindowsSettingInstance.cs @@ -0,0 +1,72 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class WindowsSettingInstance : Entity, IParsable { + /// The createdDateTime property + public DateTimeOffset? CreatedDateTime { + get { return BackingStore?.Get("createdDateTime"); } + set { BackingStore?.Set("createdDateTime", value); } + } + /// The expirationDateTime property + public DateTimeOffset? ExpirationDateTime { + get { return BackingStore?.Get("expirationDateTime"); } + set { BackingStore?.Set("expirationDateTime", value); } + } + /// The lastModifiedDateTime property + public DateTimeOffset? LastModifiedDateTime { + get { return BackingStore?.Get("lastModifiedDateTime"); } + set { BackingStore?.Set("lastModifiedDateTime", value); } + } + /// The payload property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Payload { + get { return BackingStore?.Get("payload"); } + set { BackingStore?.Set("payload", value); } + } +#nullable restore +#else + public string Payload { + get { return BackingStore?.Get("payload"); } + set { BackingStore?.Set("payload", value); } + } +#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 WindowsSettingInstance CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new WindowsSettingInstance(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + {"expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, + {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, + {"payload", n => { Payload = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); + writer.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime); + writer.WriteDateTimeOffsetValue("lastModifiedDateTime", LastModifiedDateTime); + writer.WriteStringValue("payload", Payload); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/WindowsSettingInstanceCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/WindowsSettingInstanceCollectionResponse.cs new file mode 100644 index 00000000000..4bdaa74e18f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/WindowsSettingInstanceCollectionResponse.cs @@ -0,0 +1,51 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Models { + public class WindowsSettingInstanceCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#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 WindowsSettingInstanceCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new WindowsSettingInstanceCollectionResponse(); + } + /// + /// 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(WindowsSettingInstance.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public override void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/WindowsSettingType.cs b/src/Microsoft.Graph/Generated/Models/WindowsSettingType.cs new file mode 100644 index 00000000000..ee44608405a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/WindowsSettingType.cs @@ -0,0 +1,13 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Beta.Models { + public enum WindowsSettingType { + [EnumMember(Value = "roaming")] + Roaming, + [EnumMember(Value = "backup")] + Backup, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/WindowsUniversalAppXAppAssignmentSettings.cs b/src/Microsoft.Graph/Generated/Models/WindowsUniversalAppXAppAssignmentSettings.cs index 40968f03089..e71c335125d 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsUniversalAppXAppAssignmentSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsUniversalAppXAppAssignmentSettings.cs @@ -9,7 +9,7 @@ namespace Microsoft.Graph.Beta.Models { /// Contains properties used when assigning a Windows Universal AppX mobile app to a group. /// public class WindowsUniversalAppXAppAssignmentSettings : MobileAppAssignmentSettings, IParsable { - /// Whether or not to use device execution context for Windows Universal AppX mobile app. + /// If true, uses device execution context for Windows Universal AppX mobile app. Device-context install is not allowed when this type of app is targeted with Available intent. Defaults to false. public bool? UseDeviceContext { get { return BackingStore?.Get("useDeviceContext"); } set { BackingStore?.Set("useDeviceContext", value); } diff --git a/src/Microsoft.Graph/Generated/Models/WindowsUpdates/ApplicableContent.cs b/src/Microsoft.Graph/Generated/Models/WindowsUpdates/ApplicableContent.cs index 9050846ca04..557e35e0347 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsUpdates/ApplicableContent.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsUpdates/ApplicableContent.cs @@ -28,7 +28,7 @@ public Microsoft.Graph.Beta.Models.WindowsUpdates.CatalogEntry CatalogEntry { set { BackingStore?.Set("catalogEntry", value); } } #endif - /// Collection of devices and recommendations for applicable catalog content. + /// The matchedDevices property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? MatchedDevices { diff --git a/src/Microsoft.Graph/Generated/Models/WindowsUpdates/ApplicableContentDeviceMatch.cs b/src/Microsoft.Graph/Generated/Models/WindowsUpdates/ApplicableContentDeviceMatch.cs index a7c278f3904..8c5d597767d 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsUpdates/ApplicableContentDeviceMatch.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsUpdates/ApplicableContentDeviceMatch.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The deviceId property + /// Collection of vendors who recommend the content. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DeviceId { diff --git a/src/Microsoft.Graph/Generated/Models/WindowsUpdates/DeploymentAudience.cs b/src/Microsoft.Graph/Generated/Models/WindowsUpdates/DeploymentAudience.cs index f256ad5e0c2..b72006b2dc1 100644 --- a/src/Microsoft.Graph/Generated/Models/WindowsUpdates/DeploymentAudience.cs +++ b/src/Microsoft.Graph/Generated/Models/WindowsUpdates/DeploymentAudience.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Beta.Models.WindowsUpdates { public class DeploymentAudience : Microsoft.Graph.Beta.Models.Entity, IParsable { - /// Content eligible to deploy to devices in the audience. Not nullable. Read-only. + /// The applicableContent property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? ApplicableContent { diff --git a/src/Microsoft.Graph/Generated/NetworkAccess/Alerts/AlertsRequestBuilder.cs b/src/Microsoft.Graph/Generated/NetworkAccess/Alerts/AlertsRequestBuilder.cs new file mode 100644 index 00000000000..29e7997bcaf --- /dev/null +++ b/src/Microsoft.Graph/Generated/NetworkAccess/Alerts/AlertsRequestBuilder.cs @@ -0,0 +1,209 @@ +// +using Microsoft.Graph.Beta.Models.Networkaccess; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.NetworkAccess.Alerts.Count; +using Microsoft.Graph.Beta.NetworkAccess.Alerts.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.NetworkAccess.Alerts { + /// + /// Provides operations to manage the alerts property of the microsoft.graph.networkaccess.networkAccessRoot entity. + /// + public class AlertsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the alerts property of the microsoft.graph.networkaccess.networkAccessRoot entity. + /// The unique identifier of alert + /// A + public AlertItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("alert%2Did", position); + return new AlertItemRequestBuilder(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 AlertsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/networkAccess/alerts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public AlertsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/networkAccess/alerts{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { + } + /// + /// Get alerts from networkAccess + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, AlertCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to alerts for networkAccess + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(Microsoft.Graph.Beta.Models.Networkaccess.Alert body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(Microsoft.Graph.Beta.Models.Networkaccess.Alert body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.Networkaccess.Alert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get alerts from networkAccess + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 alerts for networkAccess + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Beta.Models.Networkaccess.Alert body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(Microsoft.Graph.Beta.Models.Networkaccess.Alert body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/networkAccess/alerts", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public AlertsRequestBuilder WithUrl(string rawUrl) { + return new AlertsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get alerts from networkAccess + /// + public class AlertsRequestBuilderGetQueryParameters { + /// 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.")] + public class AlertsRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class AlertsRequestBuilderPostRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/NetworkAccess/Alerts/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/NetworkAccess/Alerts/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..98db5591b25 --- /dev/null +++ b/src/Microsoft.Graph/Generated/NetworkAccess/Alerts/Count/CountRequestBuilder.cs @@ -0,0 +1,107 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.NetworkAccess.Alerts.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public 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}/networkAccess/alerts/$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}/networkAccess/alerts/$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", 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 CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public 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.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/NetworkAccess/Alerts/Item/AlertItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/NetworkAccess/Alerts/Item/AlertItemRequestBuilder.cs new file mode 100644 index 00000000000..2166daf033a --- /dev/null +++ b/src/Microsoft.Graph/Generated/NetworkAccess/Alerts/Item/AlertItemRequestBuilder.cs @@ -0,0 +1,198 @@ +// +using Microsoft.Graph.Beta.Models.Networkaccess; +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.NetworkAccess.Alerts.Item { + /// + /// Provides operations to manage the alerts property of the microsoft.graph.networkaccess.networkAccessRoot entity. + /// + public class AlertItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public AlertItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/networkAccess/alerts/{alert%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 AlertItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/networkAccess/alerts/{alert%2Did}{?%24expand,%24select}", rawUrl) { + } + /// + /// Delete navigation property alerts for networkAccess + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get alerts from networkAccess + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.Networkaccess.Alert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property alerts in networkAccess + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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(Microsoft.Graph.Beta.Models.Networkaccess.Alert body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Microsoft.Graph.Beta.Models.Networkaccess.Alert body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.Networkaccess.Alert.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property alerts for networkAccess + /// + /// A + /// Configuration 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, "{+baseurl}/networkAccess/alerts/{alert%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get alerts from networkAccess + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 alerts in networkAccess + /// + /// A + /// The request body + /// Configuration 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(Microsoft.Graph.Beta.Models.Networkaccess.Alert body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models.Networkaccess.Alert body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/networkAccess/alerts/{alert%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public AlertItemRequestBuilder WithUrl(string rawUrl) { + return new AlertItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class AlertItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Get alerts from networkAccess + /// + public class AlertItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class AlertItemRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class AlertItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/NetworkAccess/NetworkAccessRequestBuilder.cs b/src/Microsoft.Graph/Generated/NetworkAccess/NetworkAccessRequestBuilder.cs index 7cffd4adeb8..c583d245a94 100644 --- a/src/Microsoft.Graph/Generated/NetworkAccess/NetworkAccessRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/NetworkAccess/NetworkAccessRequestBuilder.cs @@ -1,6 +1,7 @@ // using Microsoft.Graph.Beta.Models.Networkaccess; using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.NetworkAccess.Alerts; using Microsoft.Graph.Beta.NetworkAccess.Connectivity; using Microsoft.Graph.Beta.NetworkAccess.FilteringPolicies; using Microsoft.Graph.Beta.NetworkAccess.FilteringProfiles; @@ -24,6 +25,10 @@ namespace Microsoft.Graph.Beta.NetworkAccess { /// Provides operations to manage the networkAccessRoot singleton. /// public class NetworkAccessRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the alerts property of the microsoft.graph.networkaccess.networkAccessRoot entity. + public AlertsRequestBuilder Alerts { get => + new AlertsRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the connectivity property of the microsoft.graph.networkaccess.networkAccessRoot entity. public ConnectivityRequestBuilder Connectivity { get => new ConnectivityRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/GraphRoomListRequestBuilder.cs b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/GraphRoomListRequestBuilder.cs index cdd442547b9..76d5da27f46 100644 --- a/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/GraphRoomListRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/GraphRoomListRequestBuilder.cs @@ -2,7 +2,9 @@ using Microsoft.Graph.Beta.Models.ODataErrors; using Microsoft.Graph.Beta.Models; using Microsoft.Graph.Beta.Places.Item.GraphRoomList.Rooms; +using Microsoft.Graph.Beta.Places.Item.GraphRoomList.RoomsWithPlaceId; using Microsoft.Graph.Beta.Places.Item.GraphRoomList.Workspaces; +using Microsoft.Graph.Beta.Places.Item.GraphRoomList.WorkspacesWithPlaceId; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -59,6 +61,15 @@ public async Task GetAsync(Action(requestInfo, RoomList.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// + /// Provides operations to manage the rooms property of the microsoft.graph.roomList entity. + /// + /// A + /// Alternate key of room + public RoomsWithPlaceIdRequestBuilder RoomsWithPlaceId(string placeId) { + if(string.IsNullOrEmpty(placeId)) throw new ArgumentNullException(nameof(placeId)); + return new RoomsWithPlaceIdRequestBuilder(PathParameters, RequestAdapter, placeId); + } + /// /// Get the item of type microsoft.graph.place as microsoft.graph.roomList /// /// A @@ -84,6 +95,15 @@ public GraphRoomListRequestBuilder WithUrl(string rawUrl) { return new GraphRoomListRequestBuilder(rawUrl, RequestAdapter); } /// + /// Provides operations to manage the workspaces property of the microsoft.graph.roomList entity. + /// + /// A + /// Alternate key of workspace + public WorkspacesWithPlaceIdRequestBuilder WorkspacesWithPlaceId(string placeId) { + if(string.IsNullOrEmpty(placeId)) throw new ArgumentNullException(nameof(placeId)); + return new WorkspacesWithPlaceIdRequestBuilder(PathParameters, RequestAdapter, placeId); + } + /// /// Get the item of type microsoft.graph.place as microsoft.graph.roomList /// public class GraphRoomListRequestBuilderGetQueryParameters { diff --git a/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/RoomsWithPlaceId/RoomsWithPlaceIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/RoomsWithPlaceId/RoomsWithPlaceIdRequestBuilder.cs new file mode 100644 index 00000000000..aef91f74226 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/RoomsWithPlaceId/RoomsWithPlaceIdRequestBuilder.cs @@ -0,0 +1,200 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Places.Item.GraphRoomList.RoomsWithPlaceId { + /// + /// Provides operations to manage the rooms property of the microsoft.graph.roomList entity. + /// + public class RoomsWithPlaceIdRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// Alternate key of room + /// The request adapter to use to execute the requests. + public RoomsWithPlaceIdRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string placeId = "") : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms(placeId='{placeId}'){?%24expand,%24select}", pathParameters) { + if (!string.IsNullOrWhiteSpace(placeId)) PathParameters.Add("placeId", placeId); + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RoomsWithPlaceIdRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms(placeId='{placeId}'){?%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", 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", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, 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(Room body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Room body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, 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, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms(placeId='{placeId}')", 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(Room body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Room body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/places/{place%2Did}/graph.roomList/rooms(placeId='{placeId}')", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public RoomsWithPlaceIdRequestBuilder WithUrl(string rawUrl) { + return new RoomsWithPlaceIdRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RoomsWithPlaceIdRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Get rooms from places + /// + public class RoomsWithPlaceIdRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RoomsWithPlaceIdRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RoomsWithPlaceIdRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/WorkspacesWithPlaceId/WorkspacesWithPlaceIdRequestBuilder.cs b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/WorkspacesWithPlaceId/WorkspacesWithPlaceIdRequestBuilder.cs new file mode 100644 index 00000000000..c5beef0fdd0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Places/Item/GraphRoomList/WorkspacesWithPlaceId/WorkspacesWithPlaceIdRequestBuilder.cs @@ -0,0 +1,200 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Places.Item.GraphRoomList.WorkspacesWithPlaceId { + /// + /// Provides operations to manage the workspaces property of the microsoft.graph.roomList entity. + /// + public class WorkspacesWithPlaceIdRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// Alternate key of workspace + /// The request adapter to use to execute the requests. + public WorkspacesWithPlaceIdRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string placeId = "") : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/workspaces(placeId='{placeId}'){?%24expand,%24select}", pathParameters) { + if (!string.IsNullOrWhiteSpace(placeId)) PathParameters.Add("placeId", placeId); + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public WorkspacesWithPlaceIdRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places/{place%2Did}/graph.roomList/workspaces(placeId='{placeId}'){?%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", 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", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, 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(Workspace body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(Workspace body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, 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, "{+baseurl}/places/{place%2Did}/graph.roomList/workspaces(placeId='{placeId}')", 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(Workspace body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(Workspace body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/places/{place%2Did}/graph.roomList/workspaces(placeId='{placeId}')", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public WorkspacesWithPlaceIdRequestBuilder WithUrl(string rawUrl) { + return new WorkspacesWithPlaceIdRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class WorkspacesWithPlaceIdRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Get workspaces from places + /// + public class WorkspacesWithPlaceIdRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class WorkspacesWithPlaceIdRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class WorkspacesWithPlaceIdRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Webinars/Item/Sessions/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/PlacesWithPlaceId/PlacesWithPlaceIdRequestBuilder.cs similarity index 51% rename from src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Webinars/Item/Sessions/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs rename to src/Microsoft.Graph/Generated/PlacesWithPlaceId/PlacesWithPlaceIdRequestBuilder.cs index 7720c2b221b..297420735b8 100644 --- a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Webinars/Item/Sessions/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PlacesWithPlaceId/PlacesWithPlaceIdRequestBuilder.cs @@ -1,5 +1,6 @@ // using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -8,123 +9,125 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Microsoft.Graph.Beta.Solutions.VirtualEvents.Webinars.Item.Sessions.Item.Presenters.Item.ProfilePhoto { +namespace Microsoft.Graph.Beta.PlacesWithPlaceId { /// - /// Provides operations to manage the media for the solutionsRoot entity. + /// Provides operations to manage the collection of place entities. /// - public class ProfilePhotoRequestBuilder : BaseRequestBuilder { + public class PlacesWithPlaceIdRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request + /// Alternate key of place /// The request adapter to use to execute the requests. - public ProfilePhotoRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/sessions/{virtualEventSession%2Did}/presenters/{virtualEventPresenter%2Did}/profilePhoto", pathParameters) { + public PlacesWithPlaceIdRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string placeId = "") : base(requestAdapter, "{+baseurl}/places(placeId='{placeId}')", pathParameters) { + if (!string.IsNullOrWhiteSpace(placeId)) PathParameters.Add("placeId", placeId); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public ProfilePhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/sessions/{virtualEventSession%2Did}/presenters/{virtualEventPresenter%2Did}/profilePhoto", rawUrl) { + public PlacesWithPlaceIdRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/places(placeId='{placeId}')", rawUrl) { } /// - /// Get profilePhoto for the navigation property presenters from solutions + /// Delete entity from places by placeId /// - /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task DeleteAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif - var requestInfo = ToGetRequestInformation(requestConfiguration); + var requestInfo = ToDeleteRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update profilePhoto for the navigation property presenters in solutions + /// Update the properties of place object, which can be a room, workspace, or roomList. You can identify the room, workspace, or roomList by specifying the id or emailAddress property. + /// Find more info here /// - /// A - /// Binary request body + /// A + /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(Place body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(Place body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Place.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get profilePhoto for the navigation property presenters from solutions + /// Delete entity from places by placeId /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); + requestInfo.Headers.TryAdd("Accept", "application/json"); return requestInfo; } /// - /// Update profilePhoto for the navigation property presenters in solutions + /// Update the properties of place object, which can be a room, workspace, or roomList. You can identify the room, workspace, or roomList by specifying the id or emailAddress property. /// /// A - /// Binary request body + /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(Place body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(Place body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetStreamContent(body, "application/octet-stream"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); return requestInfo; } /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ProfilePhotoRequestBuilder WithUrl(string rawUrl) { - return new ProfilePhotoRequestBuilder(rawUrl, RequestAdapter); + public PlacesWithPlaceIdRequestBuilder WithUrl(string rawUrl) { + return new PlacesWithPlaceIdRequestBuilder(rawUrl, RequestAdapter); } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ProfilePhotoRequestBuilderGetRequestConfiguration : RequestConfiguration { + public class PlacesWithPlaceIdRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ProfilePhotoRequestBuilderPutRequestConfiguration : RequestConfiguration { + public class PlacesWithPlaceIdRequestBuilderPatchRequestConfiguration : RequestConfiguration { } } } diff --git a/src/Microsoft.Graph/Generated/Reports/Partners/Billing/BillingRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/Partners/Billing/BillingRequestBuilder.cs index 6288df30b97..411506dcd4f 100644 --- a/src/Microsoft.Graph/Generated/Reports/Partners/Billing/BillingRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/Partners/Billing/BillingRequestBuilder.cs @@ -3,6 +3,7 @@ using Microsoft.Graph.Beta.Models.Partners.Billing; using Microsoft.Graph.Beta.Reports.Partners.Billing.Manifests; using Microsoft.Graph.Beta.Reports.Partners.Billing.Operations; +using Microsoft.Graph.Beta.Reports.Partners.Billing.Reconciliation; using Microsoft.Graph.Beta.Reports.Partners.Billing.Usage; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; @@ -25,6 +26,10 @@ public class BillingRequestBuilder : BaseRequestBuilder { public OperationsRequestBuilder Operations { get => new OperationsRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the reconciliation property of the microsoft.graph.partners.billing.billing entity. + public ReconciliationRequestBuilder Reconciliation { get => + new ReconciliationRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the usage property of the microsoft.graph.partners.billing.billing entity. public UsageRequestBuilder Usage { get => new UsageRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Reports/Partners/Billing/Reconciliation/Billed/BilledRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/Partners/Billing/Reconciliation/Billed/BilledRequestBuilder.cs new file mode 100644 index 00000000000..f0a13266c00 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Reports/Partners/Billing/Reconciliation/Billed/BilledRequestBuilder.cs @@ -0,0 +1,203 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models.Partners.Billing; +using Microsoft.Graph.Beta.Reports.Partners.Billing.Reconciliation.Billed.MicrosoftGraphPartnersBillingExport; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Reports.Partners.Billing.Reconciliation.Billed { + /// + /// Provides operations to manage the billed property of the microsoft.graph.partners.billing.billingReconciliation entity. + /// + public class BilledRequestBuilder : BaseRequestBuilder { + /// Provides operations to call the export method. + public MicrosoftGraphPartnersBillingExportRequestBuilder MicrosoftGraphPartnersBillingExport { get => + new MicrosoftGraphPartnersBillingExportRequestBuilder(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 BilledRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/reports/partners/billing/reconciliation/billed{?%24expand,%24select}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public BilledRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/reports/partners/billing/reconciliation/billed{?%24expand,%24select}", rawUrl) { + } + /// + /// Delete navigation property billed for reports + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Represents details for billed invoice reconciliation data. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, BilledReconciliation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property billed in reports + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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(BilledReconciliation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(BilledReconciliation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, BilledReconciliation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property billed for reports + /// + /// A + /// Configuration 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, "{+baseurl}/reports/partners/billing/reconciliation/billed", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Represents details for billed invoice reconciliation data. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 billed in reports + /// + /// A + /// The request body + /// Configuration 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(BilledReconciliation body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(BilledReconciliation body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/reports/partners/billing/reconciliation/billed", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public BilledRequestBuilder WithUrl(string rawUrl) { + return new BilledRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class BilledRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Represents details for billed invoice reconciliation data. + /// + public class BilledRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class BilledRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class BilledRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Reports/Partners/Billing/Reconciliation/Billed/MicrosoftGraphPartnersBillingExport/ExportPostRequestBody.cs b/src/Microsoft.Graph/Generated/Reports/Partners/Billing/Reconciliation/Billed/MicrosoftGraphPartnersBillingExport/ExportPostRequestBody.cs new file mode 100644 index 00000000000..d31b05ee391 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Reports/Partners/Billing/Reconciliation/Billed/MicrosoftGraphPartnersBillingExport/ExportPostRequestBody.cs @@ -0,0 +1,74 @@ +// +using Microsoft.Graph.Beta.Models.Partners.Billing; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Store; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Beta.Reports.Partners.Billing.Reconciliation.Billed.MicrosoftGraphPartnersBillingExport { + public class ExportPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable { + /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. + public IDictionary AdditionalData { + get { return BackingStore?.Get>("AdditionalData"); } + set { BackingStore?.Set("AdditionalData", value); } + } + /// The attributeSet property + public Microsoft.Graph.Beta.Models.Partners.Billing.AttributeSet? AttributeSet { + get { return BackingStore?.Get("attributeSet"); } + set { BackingStore?.Set("attributeSet", value); } + } + /// Stores model information. + public IBackingStore BackingStore { get; private set; } + /// The invoiceId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? InvoiceId { + get { return BackingStore?.Get("invoiceId"); } + set { BackingStore?.Set("invoiceId", value); } + } +#nullable restore +#else + public string InvoiceId { + get { return BackingStore?.Get("invoiceId"); } + set { BackingStore?.Set("invoiceId", value); } + } +#endif + /// + /// Instantiates a new and sets the default values. + /// + public ExportPostRequestBody() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + 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 ExportPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new ExportPostRequestBody(); + } + /// + /// The deserialization information for the current model + /// + /// A IDictionary<string, Action<IParseNode>> + public virtual IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"attributeSet", n => { AttributeSet = n.GetEnumValue(); } }, + {"invoiceId", n => { InvoiceId = n.GetStringValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public virtual void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + writer.WriteEnumValue("attributeSet", AttributeSet); + writer.WriteStringValue("invoiceId", InvoiceId); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Reports/Partners/Billing/Reconciliation/Billed/MicrosoftGraphPartnersBillingExport/MicrosoftGraphPartnersBillingExportRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/Partners/Billing/Reconciliation/Billed/MicrosoftGraphPartnersBillingExport/MicrosoftGraphPartnersBillingExportRequestBuilder.cs new file mode 100644 index 00000000000..c1da139149f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Reports/Partners/Billing/Reconciliation/Billed/MicrosoftGraphPartnersBillingExport/MicrosoftGraphPartnersBillingExportRequestBuilder.cs @@ -0,0 +1,89 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models.Partners.Billing; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Reports.Partners.Billing.Reconciliation.Billed.MicrosoftGraphPartnersBillingExport { + /// + /// Provides operations to call the export method. + /// + public class MicrosoftGraphPartnersBillingExportRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public MicrosoftGraphPartnersBillingExportRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/reports/partners/billing/reconciliation/billed/microsoft.graph.partners.billing.export", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public MicrosoftGraphPartnersBillingExportRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/reports/partners/billing/reconciliation/billed/microsoft.graph.partners.billing.export", rawUrl) { + } + /// + /// Export the billed invoice reconciliation data. + /// 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(ExportPostRequestBody body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(ExportPostRequestBody body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, Operation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Export the billed invoice reconciliation data. + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(ExportPostRequestBody body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(ExportPostRequestBody body, Action> requestConfiguration = default) { +#endif + _ = body ?? 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 MicrosoftGraphPartnersBillingExportRequestBuilder WithUrl(string rawUrl) { + return new MicrosoftGraphPartnersBillingExportRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class MicrosoftGraphPartnersBillingExportRequestBuilderPostRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Reports/Partners/Billing/Reconciliation/ReconciliationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/Partners/Billing/Reconciliation/ReconciliationRequestBuilder.cs new file mode 100644 index 00000000000..66be6e26ea9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Reports/Partners/Billing/Reconciliation/ReconciliationRequestBuilder.cs @@ -0,0 +1,203 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models.Partners.Billing; +using Microsoft.Graph.Beta.Reports.Partners.Billing.Reconciliation.Billed; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Reports.Partners.Billing.Reconciliation { + /// + /// Provides operations to manage the reconciliation property of the microsoft.graph.partners.billing.billing entity. + /// + public class ReconciliationRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the billed property of the microsoft.graph.partners.billing.billingReconciliation entity. + public BilledRequestBuilder Billed { get => + new BilledRequestBuilder(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 ReconciliationRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/reports/partners/billing/reconciliation{?%24expand,%24select}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ReconciliationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/reports/partners/billing/reconciliation{?%24expand,%24select}", rawUrl) { + } + /// + /// Delete navigation property reconciliation for reports + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Represents details for billed invoice reconciliation data. + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, BillingReconciliation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property reconciliation in reports + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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(BillingReconciliation body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(BillingReconciliation body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, BillingReconciliation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property reconciliation for reports + /// + /// A + /// Configuration 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, "{+baseurl}/reports/partners/billing/reconciliation", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Represents details for billed invoice reconciliation data. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 reconciliation in reports + /// + /// A + /// The request body + /// Configuration 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(BillingReconciliation body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(BillingReconciliation body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/reports/partners/billing/reconciliation", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public ReconciliationRequestBuilder WithUrl(string rawUrl) { + return new ReconciliationRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class ReconciliationRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Represents details for billed invoice reconciliation data. + /// + public class ReconciliationRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class ReconciliationRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class ReconciliationRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/ActiveUsersBreakdown/ActiveUsersBreakdownRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/ActiveUsersBreakdown/ActiveUsersBreakdownRequestBuilder.cs index 4455a69ac9b..58e38981c49 100644 --- a/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/ActiveUsersBreakdown/ActiveUsersBreakdownRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/ActiveUsersBreakdown/ActiveUsersBreakdownRequestBuilder.cs @@ -17,12 +17,14 @@ namespace Microsoft.Graph.Beta.Reports.UserInsights.Daily.ActiveUsersBreakdown { /// public class ActiveUsersBreakdownRequestBuilder : BaseRequestBuilder { /// Provides operations to count the resources in the collection. + [Obsolete("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); } /// Provides operations to manage the activeUsersBreakdown property of the microsoft.graph.dailyUserInsightMetricsRoot entity. /// The unique identifier of activeUsersBreakdownMetric /// A + [Obsolete("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] public ActiveUsersBreakdownMetricItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("activeUsersBreakdownMetric%2Did", position); @@ -50,6 +52,7 @@ public ActiveUsersBreakdownRequestBuilder(string rawUrl, IRequestAdapter request /// Cancellation token to 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("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -68,6 +71,7 @@ public async Task GetAsync(Action< /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { @@ -85,6 +89,7 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. + [Obsolete("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] public ActiveUsersBreakdownRequestBuilder WithUrl(string rawUrl) { return new ActiveUsersBreakdownRequestBuilder(rawUrl, RequestAdapter); } diff --git a/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/ActiveUsersBreakdown/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/ActiveUsersBreakdown/Count/CountRequestBuilder.cs index 1a2ff2f0ca4..8b6538e8ece 100644 --- a/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/ActiveUsersBreakdown/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/ActiveUsersBreakdown/Count/CountRequestBuilder.cs @@ -34,6 +34,7 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to 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("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -52,6 +53,7 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { @@ -69,6 +71,7 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. + [Obsolete("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] public CountRequestBuilder WithUrl(string rawUrl) { return new CountRequestBuilder(rawUrl, RequestAdapter); } diff --git a/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/ActiveUsersBreakdown/Item/ActiveUsersBreakdownMetricItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/ActiveUsersBreakdown/Item/ActiveUsersBreakdownMetricItemRequestBuilder.cs index 0acf37325a5..29cef21ab62 100644 --- a/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/ActiveUsersBreakdown/Item/ActiveUsersBreakdownMetricItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/ActiveUsersBreakdown/Item/ActiveUsersBreakdownMetricItemRequestBuilder.cs @@ -29,12 +29,13 @@ public ActiveUsersBreakdownMetricItemRequestBuilder(Dictionary p public ActiveUsersBreakdownMetricItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/reports/userInsights/daily/activeUsersBreakdown/{activeUsersBreakdownMetric%2Did}{?%24expand,%24select}", rawUrl) { } /// - /// Insights for the breakdown of users who were active on apps registered in the tenant for a specified period. + /// Get activeUsersBreakdown from reports /// /// A /// Cancellation token to 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("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -49,10 +50,11 @@ public async Task GetAsync(Action(requestInfo, ActiveUsersBreakdownMetric.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Insights for the breakdown of users who were active on apps registered in the tenant for a specified period. + /// Get activeUsersBreakdown from reports /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { @@ -70,11 +72,12 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. + [Obsolete("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] public ActiveUsersBreakdownMetricItemRequestBuilder WithUrl(string rawUrl) { return new ActiveUsersBreakdownMetricItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Insights for the breakdown of users who were active on apps registered in the tenant for a specified period. + /// Get activeUsersBreakdown from reports /// public class ActiveUsersBreakdownMetricItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/InactiveUsersByApplication/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/InactiveUsersByApplication/Count/CountRequestBuilder.cs index fe52ecec8cb..9d9aa769b0f 100644 --- a/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/InactiveUsersByApplication/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/InactiveUsersByApplication/Count/CountRequestBuilder.cs @@ -34,6 +34,7 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to 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("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -52,6 +53,7 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { @@ -69,6 +71,7 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. + [Obsolete("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] public CountRequestBuilder WithUrl(string rawUrl) { return new CountRequestBuilder(rawUrl, RequestAdapter); } diff --git a/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/InactiveUsersByApplication/InactiveUsersByApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/InactiveUsersByApplication/InactiveUsersByApplicationRequestBuilder.cs index 2bd831551dd..edc78f59e65 100644 --- a/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/InactiveUsersByApplication/InactiveUsersByApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/InactiveUsersByApplication/InactiveUsersByApplicationRequestBuilder.cs @@ -17,12 +17,14 @@ namespace Microsoft.Graph.Beta.Reports.UserInsights.Daily.InactiveUsersByApplica /// public class InactiveUsersByApplicationRequestBuilder : BaseRequestBuilder { /// Provides operations to count the resources in the collection. + [Obsolete("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); } /// Provides operations to manage the inactiveUsersByApplication property of the microsoft.graph.dailyUserInsightMetricsRoot entity. /// The unique identifier of dailyInactiveUsersByApplicationMetric /// A + [Obsolete("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] public DailyInactiveUsersByApplicationMetricItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("dailyInactiveUsersByApplicationMetric%2Did", position); @@ -49,6 +51,7 @@ public InactiveUsersByApplicationRequestBuilder(string rawUrl, IRequestAdapter r /// Cancellation token to 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("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -67,6 +70,7 @@ public async Task GetAs /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { @@ -84,6 +88,7 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. + [Obsolete("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] public InactiveUsersByApplicationRequestBuilder WithUrl(string rawUrl) { return new InactiveUsersByApplicationRequestBuilder(rawUrl, RequestAdapter); } diff --git a/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/InactiveUsersByApplication/Item/DailyInactiveUsersByApplicationMetricItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/InactiveUsersByApplication/Item/DailyInactiveUsersByApplicationMetricItemRequestBuilder.cs index 38757bc34e2..4dabed5b272 100644 --- a/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/InactiveUsersByApplication/Item/DailyInactiveUsersByApplicationMetricItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/UserInsights/Daily/InactiveUsersByApplication/Item/DailyInactiveUsersByApplicationMetricItemRequestBuilder.cs @@ -35,6 +35,7 @@ public DailyInactiveUsersByApplicationMetricItemRequestBuilder(string rawUrl, IR /// Cancellation token to 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("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -53,6 +54,7 @@ public async Task GetAsync(Action /// A /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { @@ -70,6 +72,7 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. + [Obsolete("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] public DailyInactiveUsersByApplicationMetricItemRequestBuilder WithUrl(string rawUrl) { return new DailyInactiveUsersByApplicationMetricItemRequestBuilder(rawUrl, RequestAdapter); } diff --git a/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/ActiveUsersBreakdown/ActiveUsersBreakdownRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/ActiveUsersBreakdown/ActiveUsersBreakdownRequestBuilder.cs index 4d815fc1dc5..1aedced71c8 100644 --- a/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/ActiveUsersBreakdown/ActiveUsersBreakdownRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/ActiveUsersBreakdown/ActiveUsersBreakdownRequestBuilder.cs @@ -17,12 +17,14 @@ namespace Microsoft.Graph.Beta.Reports.UserInsights.Monthly.ActiveUsersBreakdown /// public class ActiveUsersBreakdownRequestBuilder : BaseRequestBuilder { /// Provides operations to count the resources in the collection. + [Obsolete("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); } /// Provides operations to manage the activeUsersBreakdown property of the microsoft.graph.monthlyUserInsightMetricsRoot entity. /// The unique identifier of activeUsersBreakdownMetric /// A + [Obsolete("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] public ActiveUsersBreakdownMetricItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("activeUsersBreakdownMetric%2Did", position); @@ -50,6 +52,7 @@ public ActiveUsersBreakdownRequestBuilder(string rawUrl, IRequestAdapter request /// Cancellation token to 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("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -68,6 +71,7 @@ public async Task GetAsync(Action< /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { @@ -85,6 +89,7 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. + [Obsolete("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] public ActiveUsersBreakdownRequestBuilder WithUrl(string rawUrl) { return new ActiveUsersBreakdownRequestBuilder(rawUrl, RequestAdapter); } diff --git a/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/ActiveUsersBreakdown/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/ActiveUsersBreakdown/Count/CountRequestBuilder.cs index 6b0b85efc8b..ff4f357cf6b 100644 --- a/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/ActiveUsersBreakdown/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/ActiveUsersBreakdown/Count/CountRequestBuilder.cs @@ -34,6 +34,7 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to 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("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -52,6 +53,7 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { @@ -69,6 +71,7 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. + [Obsolete("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] public CountRequestBuilder WithUrl(string rawUrl) { return new CountRequestBuilder(rawUrl, RequestAdapter); } diff --git a/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/ActiveUsersBreakdown/Item/ActiveUsersBreakdownMetricItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/ActiveUsersBreakdown/Item/ActiveUsersBreakdownMetricItemRequestBuilder.cs index 828d3af2970..3d9691019be 100644 --- a/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/ActiveUsersBreakdown/Item/ActiveUsersBreakdownMetricItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/ActiveUsersBreakdown/Item/ActiveUsersBreakdownMetricItemRequestBuilder.cs @@ -29,12 +29,13 @@ public ActiveUsersBreakdownMetricItemRequestBuilder(Dictionary p public ActiveUsersBreakdownMetricItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/reports/userInsights/monthly/activeUsersBreakdown/{activeUsersBreakdownMetric%2Did}{?%24expand,%24select}", rawUrl) { } /// - /// Insights for the breakdown of users who were active on apps registered in the tenant for a specified period. + /// Get activeUsersBreakdown from reports /// /// A /// Cancellation token to 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("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -49,10 +50,11 @@ public async Task GetAsync(Action(requestInfo, ActiveUsersBreakdownMetric.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Insights for the breakdown of users who were active on apps registered in the tenant for a specified period. + /// Get activeUsersBreakdown from reports /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { @@ -70,11 +72,12 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. + [Obsolete("The Active Users Breakdown Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Active Users API. as of 2024-02/Remove_Breakdown_APIs")] public ActiveUsersBreakdownMetricItemRequestBuilder WithUrl(string rawUrl) { return new ActiveUsersBreakdownMetricItemRequestBuilder(rawUrl, RequestAdapter); } /// - /// Insights for the breakdown of users who were active on apps registered in the tenant for a specified period. + /// Get activeUsersBreakdown from reports /// public class ActiveUsersBreakdownMetricItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/InactiveUsersByApplication/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/InactiveUsersByApplication/Count/CountRequestBuilder.cs index 6017b1a7333..20dc88037fa 100644 --- a/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/InactiveUsersByApplication/Count/CountRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/InactiveUsersByApplication/Count/CountRequestBuilder.cs @@ -34,6 +34,7 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Cancellation token to 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("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -52,6 +53,7 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { @@ -69,6 +71,7 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. + [Obsolete("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] public CountRequestBuilder WithUrl(string rawUrl) { return new CountRequestBuilder(rawUrl, RequestAdapter); } diff --git a/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/InactiveUsersByApplication/InactiveUsersByApplicationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/InactiveUsersByApplication/InactiveUsersByApplicationRequestBuilder.cs index 2c9d8a584f6..0ec602b9a22 100644 --- a/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/InactiveUsersByApplication/InactiveUsersByApplicationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/InactiveUsersByApplication/InactiveUsersByApplicationRequestBuilder.cs @@ -17,12 +17,14 @@ namespace Microsoft.Graph.Beta.Reports.UserInsights.Monthly.InactiveUsersByAppli /// public class InactiveUsersByApplicationRequestBuilder : BaseRequestBuilder { /// Provides operations to count the resources in the collection. + [Obsolete("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); } /// Provides operations to manage the inactiveUsersByApplication property of the microsoft.graph.monthlyUserInsightMetricsRoot entity. /// The unique identifier of monthlyInactiveUsersByApplicationMetric /// A + [Obsolete("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] public MonthlyInactiveUsersByApplicationMetricItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("monthlyInactiveUsersByApplicationMetric%2Did", position); @@ -49,6 +51,7 @@ public InactiveUsersByApplicationRequestBuilder(string rawUrl, IRequestAdapter r /// Cancellation token to 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("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -67,6 +70,7 @@ public async Task Get /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { @@ -84,6 +88,7 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. + [Obsolete("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] public InactiveUsersByApplicationRequestBuilder WithUrl(string rawUrl) { return new InactiveUsersByApplicationRequestBuilder(rawUrl, RequestAdapter); } diff --git a/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/InactiveUsersByApplication/Item/MonthlyInactiveUsersByApplicationMetricItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/InactiveUsersByApplication/Item/MonthlyInactiveUsersByApplicationMetricItemRequestBuilder.cs index 72393f56db6..067d1214ae5 100644 --- a/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/InactiveUsersByApplication/Item/MonthlyInactiveUsersByApplicationMetricItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Reports/UserInsights/Monthly/InactiveUsersByApplication/Item/MonthlyInactiveUsersByApplicationMetricItemRequestBuilder.cs @@ -35,6 +35,7 @@ public MonthlyInactiveUsersByApplicationMetricItemRequestBuilder(string rawUrl, /// Cancellation token to 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("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { @@ -53,6 +54,7 @@ public async Task GetAsync(Action /// A /// Configuration for the request such as headers, query parameters, and middleware options. + [Obsolete("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { @@ -70,6 +72,7 @@ public RequestInformation ToGetRequestInformation(Action /// A /// The raw URL to use for the request builder. + [Obsolete("The Inactive Users By Application Metric is deprecated and will stop returning data on February 16, 2024. Please use the existing Inactive Users API. as of 2024-02/Remove_Breakdown_APIs")] public MonthlyInactiveUsersByApplicationMetricItemRequestBuilder WithUrl(string rawUrl) { return new MonthlyInactiveUsersByApplicationMetricItemRequestBuilder(rawUrl, RequestAdapter); } diff --git a/src/Microsoft.Graph/Generated/RiskDetections/RiskDetectionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/RiskDetections/RiskDetectionsRequestBuilder.cs index 0929ad8096b..14bc2c22e6d 100644 --- a/src/Microsoft.Graph/Generated/RiskDetections/RiskDetectionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/RiskDetections/RiskDetectionsRequestBuilder.cs @@ -38,8 +38,8 @@ public RiskDetectionsRequestBuilder(Dictionary pathParameters, I public RiskDetectionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/riskDetections{?%24expand,%24filter,%24orderby,%24search,%24select,%24top}", rawUrl) { } /// - /// Retrieve the properties of a riskDetection object. - /// Find more info here + /// Retrieve the properties of a collection of riskDetection objects. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -81,7 +81,7 @@ public async Task PostAsync(RiskDetection body, Action(requestInfo, RiskDetection.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties of a riskDetection object. + /// Retrieve the properties of a collection of riskDetection objects. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -126,7 +126,7 @@ public RiskDetectionsRequestBuilder WithUrl(string rawUrl) { return new RiskDetectionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve the properties of a riskDetection object. + /// Retrieve the properties of a collection of riskDetection objects. /// public class RiskDetectionsRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/AuditLog/Queries/Item/AuditLogQueryItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AuditLog/Queries/Item/AuditLogQueryItemRequestBuilder.cs index 47202100026..8bac54535cd 100644 --- a/src/Microsoft.Graph/Generated/Security/AuditLog/Queries/Item/AuditLogQueryItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AuditLog/Queries/Item/AuditLogQueryItemRequestBuilder.cs @@ -53,7 +53,8 @@ public async Task DeleteAsync(Action - /// Get queries from security + /// Read the properties and relationships of an auditLogQuery object. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -112,7 +113,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get queries from security + /// Read the properties and relationships of an auditLogQuery object. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -163,7 +164,7 @@ public AuditLogQueryItemRequestBuilder WithUrl(string rawUrl) { public class AuditLogQueryItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Get queries from security + /// Read the properties and relationships of an auditLogQuery object. /// public class AuditLogQueryItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Security/AuditLog/Queries/Item/Records/RecordsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AuditLog/Queries/Item/Records/RecordsRequestBuilder.cs index de05d1586e0..6f14a1fa0a9 100644 --- a/src/Microsoft.Graph/Generated/Security/AuditLog/Queries/Item/Records/RecordsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AuditLog/Queries/Item/Records/RecordsRequestBuilder.cs @@ -43,7 +43,8 @@ public RecordsRequestBuilder(Dictionary pathParameters, IRequest public RecordsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/auditLog/queries/{auditLogQuery%2Did}/records{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// An individual audit log record. + /// Get a list of the auditLogRecord objects and their properties. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -85,7 +86,7 @@ public async Task PostAsync(AuditLogRecord body, Action(requestInfo, AuditLogRecord.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// An individual audit log record. + /// Get a list of the auditLogRecord objects and their properties. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -130,7 +131,7 @@ public RecordsRequestBuilder WithUrl(string rawUrl) { return new RecordsRequestBuilder(rawUrl, RequestAdapter); } /// - /// An individual audit log record. + /// Get a list of the auditLogRecord objects and their properties. /// public class RecordsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/AuditLog/Queries/QueriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/AuditLog/Queries/QueriesRequestBuilder.cs index 139f68b9c43..10778586c21 100644 --- a/src/Microsoft.Graph/Generated/Security/AuditLog/Queries/QueriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/AuditLog/Queries/QueriesRequestBuilder.cs @@ -43,7 +43,8 @@ public QueriesRequestBuilder(Dictionary pathParameters, IRequest public QueriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/auditLog/queries{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// Get queries from security + /// Get a list of auditLogQuery objects and their properties. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -63,7 +64,8 @@ public async Task GetAsync(Action(requestInfo, AuditLogQueryCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create new navigation property to queries for security + /// Create a new auditLogQuery object. + /// Find more info here /// /// A /// The request body @@ -85,7 +87,7 @@ public async Task PostAsync(AuditLogQuery body, Action(requestInfo, AuditLogQuery.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get queries from security + /// Get a list of auditLogQuery objects and their properties. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -102,7 +104,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create new navigation property to queries for security + /// Create a new auditLogQuery object. /// /// A /// The request body @@ -130,7 +132,7 @@ public QueriesRequestBuilder WithUrl(string rawUrl) { return new QueriesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get queries from security + /// Get a list of auditLogQuery objects and their properties. /// public class QueriesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Security/Rules/DetectionRules/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Rules/DetectionRules/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..af5fe363f9b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Rules/DetectionRules/Count/CountRequestBuilder.cs @@ -0,0 +1,107 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Security.Rules.DetectionRules.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public 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}/security/rules/detectionRules/$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}/security/rules/detectionRules/$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", 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 CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public 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.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Rules/DetectionRules/DetectionRulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Rules/DetectionRules/DetectionRulesRequestBuilder.cs new file mode 100644 index 00000000000..4b5c949cbe9 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Rules/DetectionRules/DetectionRulesRequestBuilder.cs @@ -0,0 +1,210 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models.Security; +using Microsoft.Graph.Beta.Security.Rules.DetectionRules.Count; +using Microsoft.Graph.Beta.Security.Rules.DetectionRules.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Security.Rules.DetectionRules { + /// + /// Provides operations to manage the detectionRules property of the microsoft.graph.security.rulesRoot entity. + /// + public class DetectionRulesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the detectionRules property of the microsoft.graph.security.rulesRoot entity. + /// The unique identifier of detectionRule + /// A + public DetectionRuleItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("detectionRule%2Did", position); + return new DetectionRuleItemRequestBuilder(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 DetectionRulesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/rules/detectionRules{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DetectionRulesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/rules/detectionRules{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { + } + /// + /// Get a list of custom detection rules.With custom detections, you can proactively monitor for and respond to various events and system states, including suspected breach activity and misconfigured assets in their organization network.Custom detection rules, which are written in Kusto query language (KQL), automatically trigger alerts and response actions once there are events matching their KQL queries. + /// 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", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DetectionRuleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to detectionRules for security + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task PostAsync(DetectionRule body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(DetectionRule body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DetectionRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get a list of custom detection rules.With custom detections, you can proactively monitor for and respond to various events and system states, including suspected breach activity and misconfigured assets in their organization network.Custom detection rules, which are written in Kusto query language (KQL), automatically trigger alerts and response actions once there are events matching their KQL queries. + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 detectionRules for security + /// + /// A + /// The request body + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToPostRequestInformation(DetectionRule body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(DetectionRule body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/security/rules/detectionRules", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public DetectionRulesRequestBuilder WithUrl(string rawUrl) { + return new DetectionRulesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get a list of custom detection rules.With custom detections, you can proactively monitor for and respond to various events and system states, including suspected breach activity and misconfigured assets in their organization network.Custom detection rules, which are written in Kusto query language (KQL), automatically trigger alerts and response actions once there are events matching their KQL queries. + /// + public class DetectionRulesRequestBuilderGetQueryParameters { + /// 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.")] + public class DetectionRulesRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DetectionRulesRequestBuilderPostRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Rules/DetectionRules/Item/DetectionRuleItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Rules/DetectionRules/Item/DetectionRuleItemRequestBuilder.cs new file mode 100644 index 00000000000..014a3e6da72 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Rules/DetectionRules/Item/DetectionRuleItemRequestBuilder.cs @@ -0,0 +1,198 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models.Security; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Security.Rules.DetectionRules.Item { + /// + /// Provides operations to manage the detectionRules property of the microsoft.graph.security.rulesRoot entity. + /// + public class DetectionRuleItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DetectionRuleItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/rules/detectionRules/{detectionRule%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 DetectionRuleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/rules/detectionRules/{detectionRule%2Did}{?%24expand,%24select}", rawUrl) { + } + /// + /// Delete navigation property detectionRules for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get detectionRules from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DetectionRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property detectionRules in security + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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(DetectionRule body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(DetectionRule body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DetectionRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property detectionRules for security + /// + /// A + /// Configuration 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, "{+baseurl}/security/rules/detectionRules/{detectionRule%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get detectionRules from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 detectionRules in security + /// + /// A + /// The request body + /// Configuration 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(DetectionRule body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(DetectionRule body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/security/rules/detectionRules/{detectionRule%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public DetectionRuleItemRequestBuilder WithUrl(string rawUrl) { + return new DetectionRuleItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DetectionRuleItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Get detectionRules from security + /// + public class DetectionRuleItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DetectionRuleItemRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class DetectionRuleItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/Rules/RulesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/Rules/RulesRequestBuilder.cs new file mode 100644 index 00000000000..ce0533645db --- /dev/null +++ b/src/Microsoft.Graph/Generated/Security/Rules/RulesRequestBuilder.cs @@ -0,0 +1,203 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models.Security; +using Microsoft.Graph.Beta.Security.Rules.DetectionRules; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Security.Rules { + /// + /// Provides operations to manage the rules property of the microsoft.graph.security entity. + /// + public class RulesRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the detectionRules property of the microsoft.graph.security.rulesRoot entity. + public DetectionRulesRequestBuilder DetectionRules { get => + new DetectionRulesRequestBuilder(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 RulesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/rules{?%24expand,%24select}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public RulesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/security/rules{?%24expand,%24select}", rawUrl) { + } + /// + /// Delete navigation property rules for security + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get rules from security + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, RulesRoot.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property rules in security + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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(RulesRoot body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(RulesRoot body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, RulesRoot.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property rules for security + /// + /// A + /// Configuration 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, "{+baseurl}/security/rules", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get rules from security + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 rules in security + /// + /// A + /// The request body + /// Configuration 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(RulesRoot body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(RulesRoot body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/security/rules", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public RulesRequestBuilder WithUrl(string rawUrl) { + return new RulesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RulesRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Get rules from security + /// + public class RulesRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RulesRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class RulesRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Security/SecurityRequestBuilder.cs b/src/Microsoft.Graph/Generated/Security/SecurityRequestBuilder.cs index 61d03c9eadf..99ac3c6fcb9 100644 --- a/src/Microsoft.Graph/Generated/Security/SecurityRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Security/SecurityRequestBuilder.cs @@ -17,6 +17,7 @@ using Microsoft.Graph.Beta.Security.Labels; using Microsoft.Graph.Beta.Security.MicrosoftGraphSecurityRunHuntingQuery; using Microsoft.Graph.Beta.Security.ProviderTenantSettings; +using Microsoft.Graph.Beta.Security.Rules; using Microsoft.Graph.Beta.Security.SecureScoreControlProfiles; using Microsoft.Graph.Beta.Security.SecureScores; using Microsoft.Graph.Beta.Security.SecurityActions; @@ -104,6 +105,10 @@ public class SecurityRequestBuilder : BaseRequestBuilder { public ProviderTenantSettingsRequestBuilder ProviderTenantSettings { get => new ProviderTenantSettingsRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the rules property of the microsoft.graph.security entity. + public RulesRequestBuilder Rules { get => + new RulesRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the secureScoreControlProfiles property of the microsoft.graph.security entity. public SecureScoreControlProfilesRequestBuilder SecureScoreControlProfiles { get => new SecureScoreControlProfilesRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/FederatedIdentityCredentialsWithName/FederatedIdentityCredentialsWithNameRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/FederatedIdentityCredentialsWithName/FederatedIdentityCredentialsWithNameRequestBuilder.cs new file mode 100644 index 00000000000..9e791b0841a --- /dev/null +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/FederatedIdentityCredentialsWithName/FederatedIdentityCredentialsWithNameRequestBuilder.cs @@ -0,0 +1,200 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.ServicePrincipals.Item.FederatedIdentityCredentialsWithName { + /// + /// Provides operations to manage the federatedIdentityCredentials property of the microsoft.graph.servicePrincipal entity. + /// + public class FederatedIdentityCredentialsWithNameRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new and sets the default values. + /// + /// Alternate key of federatedIdentityCredential + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public FederatedIdentityCredentialsWithNameRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string name = "") : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/federatedIdentityCredentials(name='{name}'){?%24expand,%24select}", pathParameters) { + if (!string.IsNullOrWhiteSpace(name)) PathParameters.Add("name", name); + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public FederatedIdentityCredentialsWithNameRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/federatedIdentityCredentials(name='{name}'){?%24expand,%24select}", rawUrl) { + } + /// + /// Delete navigation property federatedIdentityCredentials for servicePrincipals + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get federatedIdentityCredentials from servicePrincipals + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FederatedIdentityCredential.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property federatedIdentityCredentials in servicePrincipals + /// + /// A + /// The request body + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and 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(FederatedIdentityCredential body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(FederatedIdentityCredential body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, FederatedIdentityCredential.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property federatedIdentityCredentials for servicePrincipals + /// + /// A + /// Configuration 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, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/federatedIdentityCredentials(name='{name}')", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get federatedIdentityCredentials from servicePrincipals + /// + /// A + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 federatedIdentityCredentials in servicePrincipals + /// + /// A + /// The request body + /// Configuration 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(FederatedIdentityCredential body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(FederatedIdentityCredential body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/servicePrincipals/{servicePrincipal%2Did}/federatedIdentityCredentials(name='{name}')", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public FederatedIdentityCredentialsWithNameRequestBuilder WithUrl(string rawUrl) { + return new FederatedIdentityCredentialsWithNameRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class FederatedIdentityCredentialsWithNameRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Get federatedIdentityCredentials from servicePrincipals + /// + public class FederatedIdentityCredentialsWithNameRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class FederatedIdentityCredentialsWithNameRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class FederatedIdentityCredentialsWithNameRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ServicePrincipalItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ServicePrincipalItemRequestBuilder.cs index 6d9f22254a0..ccac22ef9fc 100644 --- a/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ServicePrincipalItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/ServicePrincipals/Item/ServicePrincipalItemRequestBuilder.cs @@ -14,6 +14,7 @@ using Microsoft.Graph.Beta.ServicePrincipals.Item.DeletePasswordSingleSignOnCredentials; using Microsoft.Graph.Beta.ServicePrincipals.Item.Endpoints; using Microsoft.Graph.Beta.ServicePrincipals.Item.FederatedIdentityCredentials; +using Microsoft.Graph.Beta.ServicePrincipals.Item.FederatedIdentityCredentialsWithName; using Microsoft.Graph.Beta.ServicePrincipals.Item.GetMemberGroups; using Microsoft.Graph.Beta.ServicePrincipals.Item.GetMemberObjects; using Microsoft.Graph.Beta.ServicePrincipals.Item.GetPasswordSingleSignOnCredentials; @@ -194,6 +195,15 @@ public async Task DeleteAsync(Action + /// Provides operations to manage the federatedIdentityCredentials property of the microsoft.graph.servicePrincipal entity. + /// + /// A + /// Alternate key of federatedIdentityCredential + public FederatedIdentityCredentialsWithNameRequestBuilder FederatedIdentityCredentialsWithName(string name) { + if(string.IsNullOrEmpty(name)) throw new ArgumentNullException(nameof(name)); + return new FederatedIdentityCredentialsWithNameRequestBuilder(PathParameters, RequestAdapter, name); + } + /// /// Retrieve the properties and relationships of a servicePrincipal object. /// Find more info here /// diff --git a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs index 10cf11ee795..81209a6326f 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs @@ -93,8 +93,8 @@ public async Task DeleteAsync(Action - /// Get the list of richLongRunningOperations associated with a list. - /// Find more info here + /// Return the metadata for a [list][]. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -153,7 +153,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get the list of richLongRunningOperations associated with a list. + /// Return the metadata for a [list][]. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -204,7 +204,7 @@ public ListItemRequestBuilder WithUrl(string rawUrl) { public class ListItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Get the list of richLongRunningOperations associated with a list. + /// Return the metadata for a [list][]. /// public class ListItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs deleted file mode 100644 index 4ea2fa4cfb0..00000000000 --- a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -using Microsoft.Graph.Beta.Models.ODataErrors; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace Microsoft.Graph.Beta.Solutions.VirtualEvents.Events.Item.Presenters.Item.ProfilePhoto { - /// - /// Provides operations to manage the media for the solutionsRoot entity. - /// - public class ProfilePhotoRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ProfilePhotoRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/presenters/{virtualEventPresenter%2Did}/profilePhoto", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ProfilePhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/presenters/{virtualEventPresenter%2Did}/profilePhoto", rawUrl) { - } - /// - /// Get profilePhoto for the navigation property presenters from solutions - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Update profilePhoto for the navigation property presenters in solutions - /// - /// A - /// Binary request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Get profilePhoto for the navigation property presenters from solutions - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); - return requestInfo; - } - /// - /// Update profilePhoto for the navigation property presenters in solutions - /// - /// A - /// Binary request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetStreamContent(body, "application/octet-stream"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public ProfilePhotoRequestBuilder WithUrl(string rawUrl) { - return new ProfilePhotoRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ProfilePhotoRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ProfilePhotoRequestBuilderPutRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs index 1144a4e70b5..8b4e9dbeb4c 100644 --- a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Events/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs @@ -1,7 +1,6 @@ // using Microsoft.Graph.Beta.Models.ODataErrors; using Microsoft.Graph.Beta.Models; -using Microsoft.Graph.Beta.Solutions.VirtualEvents.Events.Item.Presenters.Item.ProfilePhoto; using Microsoft.Graph.Beta.Solutions.VirtualEvents.Events.Item.Presenters.Item.Sessions; using Microsoft.Graph.Beta.Solutions.VirtualEvents.Events.Item.Presenters.Item.SessionsWithJoinWebUrl; using Microsoft.Kiota.Abstractions.Serialization; @@ -17,10 +16,6 @@ namespace Microsoft.Graph.Beta.Solutions.VirtualEvents.Events.Item.Presenters.It /// Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. /// public class VirtualEventPresenterItemRequestBuilder : BaseRequestBuilder { - /// Provides operations to manage the media for the solutionsRoot entity. - public ProfilePhotoRequestBuilder ProfilePhoto { get => - new ProfilePhotoRequestBuilder(PathParameters, RequestAdapter); - } /// Provides operations to manage the sessions property of the microsoft.graph.virtualEventPresenter entity. public SessionsRequestBuilder Sessions { get => new SessionsRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Events/Item/Sessions/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Events/Item/Sessions/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs deleted file mode 100644 index af17f086fec..00000000000 --- a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Events/Item/Sessions/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -using Microsoft.Graph.Beta.Models.ODataErrors; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace Microsoft.Graph.Beta.Solutions.VirtualEvents.Events.Item.Sessions.Item.Presenters.Item.ProfilePhoto { - /// - /// Provides operations to manage the media for the solutionsRoot entity. - /// - public class ProfilePhotoRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ProfilePhotoRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/sessions/{virtualEventSession%2Did}/presenters/{virtualEventPresenter%2Did}/profilePhoto", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ProfilePhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/events/{virtualEvent%2Did}/sessions/{virtualEventSession%2Did}/presenters/{virtualEventPresenter%2Did}/profilePhoto", rawUrl) { - } - /// - /// Get profilePhoto for the navigation property presenters from solutions - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Update profilePhoto for the navigation property presenters in solutions - /// - /// A - /// Binary request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Get profilePhoto for the navigation property presenters from solutions - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); - return requestInfo; - } - /// - /// Update profilePhoto for the navigation property presenters in solutions - /// - /// A - /// Binary request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetStreamContent(body, "application/octet-stream"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public ProfilePhotoRequestBuilder WithUrl(string rawUrl) { - return new ProfilePhotoRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ProfilePhotoRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ProfilePhotoRequestBuilderPutRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Events/Item/Sessions/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Events/Item/Sessions/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs index f5aed586378..58a225c850d 100644 --- a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Events/Item/Sessions/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Events/Item/Sessions/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs @@ -1,7 +1,6 @@ // using Microsoft.Graph.Beta.Models.ODataErrors; using Microsoft.Graph.Beta.Models; -using Microsoft.Graph.Beta.Solutions.VirtualEvents.Events.Item.Sessions.Item.Presenters.Item.ProfilePhoto; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -15,10 +14,6 @@ namespace Microsoft.Graph.Beta.Solutions.VirtualEvents.Events.Item.Sessions.Item /// Provides operations to manage the presenters property of the microsoft.graph.virtualEventSession entity. /// public class VirtualEventPresenterItemRequestBuilder : BaseRequestBuilder { - /// Provides operations to manage the media for the solutionsRoot entity. - public ProfilePhotoRequestBuilder ProfilePhoto { get => - new ProfilePhotoRequestBuilder(PathParameters, RequestAdapter); - } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs deleted file mode 100644 index 90157b66070..00000000000 --- a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -using Microsoft.Graph.Beta.Models.ODataErrors; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace Microsoft.Graph.Beta.Solutions.VirtualEvents.Townhalls.Item.Presenters.Item.ProfilePhoto { - /// - /// Provides operations to manage the media for the solutionsRoot entity. - /// - public class ProfilePhotoRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ProfilePhotoRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/presenters/{virtualEventPresenter%2Did}/profilePhoto", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ProfilePhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/presenters/{virtualEventPresenter%2Did}/profilePhoto", rawUrl) { - } - /// - /// Get profilePhoto for the navigation property presenters from solutions - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Update profilePhoto for the navigation property presenters in solutions - /// - /// A - /// Binary request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Get profilePhoto for the navigation property presenters from solutions - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); - return requestInfo; - } - /// - /// Update profilePhoto for the navigation property presenters in solutions - /// - /// A - /// Binary request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetStreamContent(body, "application/octet-stream"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public ProfilePhotoRequestBuilder WithUrl(string rawUrl) { - return new ProfilePhotoRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ProfilePhotoRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ProfilePhotoRequestBuilderPutRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs index bc699124eb2..ba6f5aba8a5 100644 --- a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Townhalls/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs @@ -1,7 +1,6 @@ // using Microsoft.Graph.Beta.Models.ODataErrors; using Microsoft.Graph.Beta.Models; -using Microsoft.Graph.Beta.Solutions.VirtualEvents.Townhalls.Item.Presenters.Item.ProfilePhoto; using Microsoft.Graph.Beta.Solutions.VirtualEvents.Townhalls.Item.Presenters.Item.Sessions; using Microsoft.Graph.Beta.Solutions.VirtualEvents.Townhalls.Item.Presenters.Item.SessionsWithJoinWebUrl; using Microsoft.Kiota.Abstractions.Serialization; @@ -17,10 +16,6 @@ namespace Microsoft.Graph.Beta.Solutions.VirtualEvents.Townhalls.Item.Presenters /// Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. /// public class VirtualEventPresenterItemRequestBuilder : BaseRequestBuilder { - /// Provides operations to manage the media for the solutionsRoot entity. - public ProfilePhotoRequestBuilder ProfilePhoto { get => - new ProfilePhotoRequestBuilder(PathParameters, RequestAdapter); - } /// Provides operations to manage the sessions property of the microsoft.graph.virtualEventPresenter entity. public SessionsRequestBuilder Sessions { get => new SessionsRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs deleted file mode 100644 index aab51bbc03b..00000000000 --- a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -using Microsoft.Graph.Beta.Models.ODataErrors; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace Microsoft.Graph.Beta.Solutions.VirtualEvents.Townhalls.Item.Sessions.Item.Presenters.Item.ProfilePhoto { - /// - /// Provides operations to manage the media for the solutionsRoot entity. - /// - public class ProfilePhotoRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ProfilePhotoRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/presenters/{virtualEventPresenter%2Did}/profilePhoto", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ProfilePhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/townhalls/{virtualEventTownhall%2Did}/sessions/{virtualEventSession%2Did}/presenters/{virtualEventPresenter%2Did}/profilePhoto", rawUrl) { - } - /// - /// Get profilePhoto for the navigation property presenters from solutions - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Update profilePhoto for the navigation property presenters in solutions - /// - /// A - /// Binary request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Get profilePhoto for the navigation property presenters from solutions - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); - return requestInfo; - } - /// - /// Update profilePhoto for the navigation property presenters in solutions - /// - /// A - /// Binary request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetStreamContent(body, "application/octet-stream"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public ProfilePhotoRequestBuilder WithUrl(string rawUrl) { - return new ProfilePhotoRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ProfilePhotoRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ProfilePhotoRequestBuilderPutRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs index cd1e598b2bf..9f1787199f3 100644 --- a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Townhalls/Item/Sessions/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs @@ -1,7 +1,6 @@ // using Microsoft.Graph.Beta.Models.ODataErrors; using Microsoft.Graph.Beta.Models; -using Microsoft.Graph.Beta.Solutions.VirtualEvents.Townhalls.Item.Sessions.Item.Presenters.Item.ProfilePhoto; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -15,10 +14,6 @@ namespace Microsoft.Graph.Beta.Solutions.VirtualEvents.Townhalls.Item.Sessions.I /// Provides operations to manage the presenters property of the microsoft.graph.virtualEventSession entity. /// public class VirtualEventPresenterItemRequestBuilder : BaseRequestBuilder { - /// Provides operations to manage the media for the solutionsRoot entity. - public ProfilePhotoRequestBuilder ProfilePhoto { get => - new ProfilePhotoRequestBuilder(PathParameters, RequestAdapter); - } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs deleted file mode 100644 index 15f9d14c5e9..00000000000 --- a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/ProfilePhoto/ProfilePhotoRequestBuilder.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -using Microsoft.Graph.Beta.Models.ODataErrors; -using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Threading.Tasks; -using System.Threading; -using System; -namespace Microsoft.Graph.Beta.Solutions.VirtualEvents.Webinars.Item.Presenters.Item.ProfilePhoto { - /// - /// Provides operations to manage the media for the solutionsRoot entity. - /// - public class ProfilePhotoRequestBuilder : BaseRequestBuilder { - /// - /// Instantiates a new and sets the default values. - /// - /// Path parameters for the request - /// The request adapter to use to execute the requests. - public ProfilePhotoRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/presenters/{virtualEventPresenter%2Did}/profilePhoto", pathParameters) { - } - /// - /// Instantiates a new and sets the default values. - /// - /// The raw URL to use for the request builder. - /// The request adapter to use to execute the requests. - public ProfilePhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/solutions/virtualEvents/webinars/{virtualEventWebinar%2Did}/presenters/{virtualEventPresenter%2Did}/profilePhoto", rawUrl) { - } - /// - /// Get profilePhoto for the navigation property presenters from solutions - /// - /// A - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - var requestInfo = ToGetRequestInformation(requestConfiguration); - var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Update profilePhoto for the navigation property presenters in solutions - /// - /// A - /// Binary request body - /// Cancellation token to use when cancelling requests - /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { -#nullable restore -#else - public async Task PutAsync(Stream body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = ToPutRequestInformation(body, requestConfiguration); - var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, - }; - return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); - } - /// - /// Get profilePhoto for the navigation property presenters from solutions - /// - /// A - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { -#endif - var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/octet-stream, application/json"); - return requestInfo; - } - /// - /// Update profilePhoto for the navigation property presenters in solutions - /// - /// A - /// Binary request body - /// Configuration for the request such as headers, query parameters, and middleware options. -#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER -#nullable enable - public RequestInformation ToPutRequestInformation(Stream body, Action>? requestConfiguration = default) { -#nullable restore -#else - public RequestInformation ToPutRequestInformation(Stream body, Action> requestConfiguration = default) { -#endif - _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PUT, UrlTemplate, PathParameters); - requestInfo.Configure(requestConfiguration); - requestInfo.Headers.TryAdd("Accept", "application/json"); - requestInfo.SetStreamContent(body, "application/octet-stream"); - return requestInfo; - } - /// - /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. - /// - /// A - /// The raw URL to use for the request builder. - public ProfilePhotoRequestBuilder WithUrl(string rawUrl) { - return new ProfilePhotoRequestBuilder(rawUrl, RequestAdapter); - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ProfilePhotoRequestBuilderGetRequestConfiguration : RequestConfiguration { - } - /// - /// Configuration for the request such as headers, query parameters, and middleware options. - /// - [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ProfilePhotoRequestBuilderPutRequestConfiguration : RequestConfiguration { - } - } -} diff --git a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs index 9c93d5bd169..f2c8252262d 100644 --- a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Webinars/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs @@ -1,7 +1,6 @@ // using Microsoft.Graph.Beta.Models.ODataErrors; using Microsoft.Graph.Beta.Models; -using Microsoft.Graph.Beta.Solutions.VirtualEvents.Webinars.Item.Presenters.Item.ProfilePhoto; using Microsoft.Graph.Beta.Solutions.VirtualEvents.Webinars.Item.Presenters.Item.Sessions; using Microsoft.Graph.Beta.Solutions.VirtualEvents.Webinars.Item.Presenters.Item.SessionsWithJoinWebUrl; using Microsoft.Kiota.Abstractions.Serialization; @@ -17,10 +16,6 @@ namespace Microsoft.Graph.Beta.Solutions.VirtualEvents.Webinars.Item.Presenters. /// Provides operations to manage the presenters property of the microsoft.graph.virtualEvent entity. /// public class VirtualEventPresenterItemRequestBuilder : BaseRequestBuilder { - /// Provides operations to manage the media for the solutionsRoot entity. - public ProfilePhotoRequestBuilder ProfilePhoto { get => - new ProfilePhotoRequestBuilder(PathParameters, RequestAdapter); - } /// Provides operations to manage the sessions property of the microsoft.graph.virtualEventPresenter entity. public SessionsRequestBuilder Sessions { get => new SessionsRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Webinars/Item/Sessions/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Webinars/Item/Sessions/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs index f58f23a0f46..a4039bfce89 100644 --- a/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Webinars/Item/Sessions/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Solutions/VirtualEvents/Webinars/Item/Sessions/Item/Presenters/Item/VirtualEventPresenterItemRequestBuilder.cs @@ -1,7 +1,6 @@ // using Microsoft.Graph.Beta.Models.ODataErrors; using Microsoft.Graph.Beta.Models; -using Microsoft.Graph.Beta.Solutions.VirtualEvents.Webinars.Item.Sessions.Item.Presenters.Item.ProfilePhoto; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -15,10 +14,6 @@ namespace Microsoft.Graph.Beta.Solutions.VirtualEvents.Webinars.Item.Sessions.It /// Provides operations to manage the presenters property of the microsoft.graph.virtualEventSession entity. /// public class VirtualEventPresenterItemRequestBuilder : BaseRequestBuilder { - /// Provides operations to manage the media for the solutionsRoot entity. - public ProfilePhotoRequestBuilder ProfilePhoto { get => - new ProfilePhotoRequestBuilder(PathParameters, RequestAdapter); - } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 32a49a5fc49..703c2e4f9fc 100644 --- a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -70,8 +70,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. - /// Find more info here + /// Update the role of a conversationMember in a team.or channel. + /// Find more info here /// /// A /// The request body @@ -127,7 +127,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Update the role of a conversationMember in a team.or channel. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index 0263b3c8e01..a562e1532db 100644 --- a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -48,7 +48,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// Find more info here /// /// A @@ -92,7 +92,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,7 +137,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs index 69f64d039fc..3b0755b9abd 100644 --- a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Photo/PhotoRequestBuilder.cs index d1df928113e..64994691541 100644 --- a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/Photo/PhotoRequestBuilder.cs @@ -36,44 +36,44 @@ public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// The team photo. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update the navigation property photo in teamTemplateDefinition /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The team photo. @@ -100,10 +100,10 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/photo", PathParameters); diff --git a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 974a3c289c8..4bae4f98cde 100644 --- a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -70,8 +70,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. - /// Find more info here + /// Update the role of a conversationMember in a team.or channel. + /// Find more info here /// /// A /// The request body @@ -127,7 +127,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Update the role of a conversationMember in a team.or channel. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs index 3d88f989839..8b7fbac03cb 100644 --- a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -48,7 +48,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamTemplateDefinition/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/messages/{chatMessage%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// Find more info here /// /// A @@ -92,7 +92,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,7 +137,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs index fc8200be120..9a5e31a0e9f 100644 --- a/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TeamTemplateDefinition/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index d760fd36715..f6808ba345d 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -70,8 +70,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. - /// Find more info here + /// Update the role of a conversationMember in a team.or channel. + /// Find more info here /// /// A /// The request body @@ -127,7 +127,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Update the role of a conversationMember in a team.or channel. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index bbdd6071f0b..ddc04fbe907 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -48,7 +48,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// Find more info here /// /// A @@ -92,7 +92,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,7 +137,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index c16382fe0e1..cb7458f0e0c 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Photo/PhotoRequestBuilder.cs index bd50e92bcc4..86ca5815fc6 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/Photo/PhotoRequestBuilder.cs @@ -36,44 +36,44 @@ public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// The team photo. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update the navigation property photo in teams /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The team photo. @@ -100,10 +100,10 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/teams/{team%2Did}/photo", PathParameters); diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 0ffd454c919..406019743e2 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -70,8 +70,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. - /// Find more info here + /// Update the role of a conversationMember in a team.or channel. + /// Find more info here /// /// A /// The request body @@ -127,7 +127,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Update the role of a conversationMember in a team.or channel. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs index 8d20f8adae9..fe0626c393c 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -48,7 +48,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teams/{team%2Did}/primaryChannel/messages/{chatMessage%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// Find more info here /// /// A @@ -92,7 +92,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,7 +137,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs index 73404c26b3d..970d0589aa8 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 3545831e35d..0d1ece2b450 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -70,8 +70,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. - /// Find more info here + /// Update the role of a conversationMember in a team.or channel. + /// Find more info here /// /// A /// The request body @@ -127,7 +127,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Update the role of a conversationMember in a team.or channel. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index 89294c2798c..30384828942 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -48,7 +48,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/deletedTeams/{deletedTeam%2Did}/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// Find more info here /// /// A @@ -92,7 +92,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,7 +137,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index f14b61c1f83..698711b3e55 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index f7465b8865a..43f35df6264 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -70,8 +70,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. - /// Find more info here + /// Update the role of a conversationMember in a team.or channel. + /// Find more info here /// /// A /// The request body @@ -127,7 +127,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Update the role of a conversationMember in a team.or channel. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index 16ef07aee90..043a95aef94 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -48,7 +48,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/channels/{channel%2Did}/messages/{chatMessage%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// Find more info here /// /// A @@ -92,7 +92,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,7 +137,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs index 7322a24a950..4b08d079033 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Photo/PhotoRequestBuilder.cs index 6f003206664..448a3b4ebf6 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/Photo/PhotoRequestBuilder.cs @@ -36,44 +36,44 @@ public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// The team photo. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update the navigation property photo in teamwork /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The team photo. @@ -100,10 +100,10 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/photo", PathParameters); diff --git a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index a7cde65fc44..b3701eaa43b 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -70,8 +70,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. - /// Find more info here + /// Update the role of a conversationMember in a team.or channel. + /// Find more info here /// /// A /// The request body @@ -127,7 +127,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. + /// Update the role of a conversationMember in a team.or channel. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs index dfb0a62232d..3e9c614d227 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -48,7 +48,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/teamwork/teamTemplates/{teamTemplate%2Did}/definitions/{teamTemplateDefinition%2Did}/teamDefinition/primaryChannel/messages/{chatMessage%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// Find more info here /// /// A @@ -92,7 +92,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,7 +137,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs index a71b10c47dc..f0c273a9073 100644 --- a/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teamwork/TeamTemplates/Item/Definitions/Item/TeamDefinition/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified channel. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/MultiTenantOrganizationRequestBuilder.cs b/src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/MultiTenantOrganizationRequestBuilder.cs index aa25b2c3511..25c411b88e5 100644 --- a/src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/MultiTenantOrganizationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/TenantRelationships/MultiTenantOrganization/MultiTenantOrganizationRequestBuilder.cs @@ -60,8 +60,8 @@ public MultiTenantOrganizationRequestBuilder(string rawUrl, IRequestAdapter requ return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.MultiTenantOrganization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a multi-tenant organization. - /// Find more info here + /// Create a new multi-tenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multi-tenant organization. To allow for asynchronous processing, you must wait a minimum of 2 hours between creation and joining a multi-tenant organization. + /// Find more info here /// /// A /// The request body @@ -100,7 +100,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a multi-tenant organization. + /// Create a new multi-tenant organization. By default, the creator tenant becomes an owner tenant upon successful creation. Only owner tenants can manage a multi-tenant organization. To allow for asynchronous processing, you must wait a minimum of 2 hours between creation and joining a multi-tenant organization. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs index 65ae6cca800..48914fb2c83 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Authentication/Methods/Item/ResetPassword/ResetPasswordRequestBuilder.cs @@ -29,7 +29,8 @@ public ResetPasswordRequestBuilder(Dictionary pathParameters, IR public ResetPasswordRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/authentication/methods/{authenticationMethod%2Did}/resetPassword", rawUrl) { } /// - /// Invoke action resetPassword + /// Initiate a reset for the password associated with a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. + /// Find more info here /// /// A /// The request body @@ -51,7 +52,7 @@ public async Task PostAsync(ResetPasswordPostRequestBody return await RequestAdapter.SendAsync(requestInfo, PasswordResetResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Invoke action resetPassword + /// Initiate a reset for the password associated with a password authentication method object. This can only be done by an administrator with appropriate permissions and can't be performed on a user's own account. This flow writes the new password to Microsoft Entra ID and pushes it to on-premises Active Directory if configured using password writeback. The admin can either provide a new password or have the system generate one. The user is prompted to change their password on their next sign in. This reset is a long-running operation and will return a Location header with a link where the caller can periodically check for the status of the reset operation. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index efa628e77b5..d4237718918 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index ae17b4ecc63..ed76215de28 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index b619153e6b8..794f6e5561c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 028b17c0334..922e3131c48 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index d11aeed34a0..262df499e6f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 55e6f3c4927..f83f99b3df3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 673d6762030..31e220c1c71 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index eecf71b04a4..1a683aed131 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 38ffd093392..2cefd5977ea 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 9c154fb0791..39668ef0856 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendar/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 340aee93648..5127a477c6f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index b21a9ca4376..68558eab61b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index f13f85b3124..4bd26b4e79c 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 0259b6f7273..665da8398b9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index efdffb5d914..82c530754ac 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index f21d18f8f08..a094205c6fb 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index a3e80f02741..c1290a32055 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index dc72bf13105..79220aa819f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 5078ab42935..de57e0a0efe 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index f859113696e..fdb40c761d3 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index d9043d48194..17747063e5a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index c9dde1dd47b..0295e9cd8f0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index c6974510e61..9b4c4d7ef04 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index f29c71942e5..a610ca2074d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index a6a5d6e59c9..66049551dd0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs index 8e9b7dfdca0..c2ff6d728ee 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 8c484e61288..a970cc29594 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index e76cef18b30..9c10cf17a1a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 9734cf48d40..8b59c9e60c2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 1b10faada90..a5f3b3d0c9a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/CalendarView/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 2b23906c10f..b77e097a578 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 54860e1b5dc..2b56fba51cd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 8426d2e8f79..374cb30c51f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 149e11db421..61ef9912d0f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index e90981ad199..4fd06f187dc 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Calendars/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs index 5addcbdaeda..689aabf0e8e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/Item/Replies/RepliesRequestBuilder.cs @@ -48,7 +48,7 @@ public RepliesRequestBuilder(Dictionary pathParameters, IRequest public RepliesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/messages/{chatMessage%2Did}/replies{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// Find more info here /// /// A @@ -92,7 +92,7 @@ public async Task PostAsync(ChatMessage body, Action(requestInfo, ChatMessage.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,7 +137,7 @@ public RepliesRequestBuilder WithUrl(string rawUrl) { return new RepliesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, simply call get channel message. + /// List all the replies to a message in a channel of a team. This method lists only the replies of the specified message, if any. To get the message itself, call get channel message. /// public class RepliesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs index bae4b885327..93f2caf2a0a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -43,7 +43,7 @@ public PermissionGrantsRequestBuilder(Dictionary pathParameters, public PermissionGrantsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/chats/{chat%2Did}/permissionGrants{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { } /// - /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has. /// Find more info here /// /// A @@ -86,7 +86,7 @@ public async Task PostAsync(ResourceSpecificPer return await RequestAdapter.SendAsync(requestInfo, ResourceSpecificPermissionGrant.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -131,7 +131,7 @@ public PermissionGrantsRequestBuilder WithUrl(string rawUrl) { return new PermissionGrantsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding kind of resource-specific access that each app has. + /// List all resource-specific permission grants on the chat. This list specifies the Microsoft Entra apps that have access to the chat, along with the corresponding resource-specific access that each app has. /// public class PermissionGrantsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs index ca6f4df7186..4cc9362d52e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Tabs/Item/TeamsTabItemRequestBuilder.cs @@ -75,7 +75,7 @@ public async Task GetAsync(Action(requestInfo, TeamsTab.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. + /// Update the properties of the specified tab in a chat. This API can be used to configure the content of the tab. /// Find more info here /// /// A @@ -132,7 +132,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the specified tab in a chat. This can be used to configure the content of the tab. + /// Update the properties of the specified tab in a chat. This API can be used to configure the content of the tab. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/CloudClipboard/CloudClipboardRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CloudClipboard/CloudClipboardRequestBuilder.cs new file mode 100644 index 00000000000..09ee8d9f602 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/CloudClipboard/CloudClipboardRequestBuilder.cs @@ -0,0 +1,203 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Users.Item.CloudClipboard.Items; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Users.Item.CloudClipboard { + /// + /// Provides operations to manage the cloudClipboard property of the microsoft.graph.user entity. + /// + public class CloudClipboardRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the items property of the microsoft.graph.cloudClipboardRoot entity. + public ItemsRequestBuilder Items { get => + new ItemsRequestBuilder(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 CloudClipboardRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/cloudClipboard{?%24expand,%24select}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CloudClipboardRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/cloudClipboard{?%24expand,%24select}", rawUrl) { + } + /// + /// Delete navigation property cloudClipboard 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", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get cloudClipboard from users + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CloudClipboardRoot.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property cloudClipboard 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(CloudClipboardRoot body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(CloudClipboardRoot body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CloudClipboardRoot.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property cloudClipboard 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, "{+baseurl}/users/{user%2Did}/cloudClipboard", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get cloudClipboard from 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 ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 cloudClipboard 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(CloudClipboardRoot body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(CloudClipboardRoot body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/users/{user%2Did}/cloudClipboard", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CloudClipboardRequestBuilder WithUrl(string rawUrl) { + return new CloudClipboardRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CloudClipboardRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Get cloudClipboard from users + /// + public class CloudClipboardRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CloudClipboardRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CloudClipboardRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/CloudClipboard/Items/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CloudClipboard/Items/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..268617e7d76 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/CloudClipboard/Items/Count/CountRequestBuilder.cs @@ -0,0 +1,107 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Users.Item.CloudClipboard.Items.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public 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}/cloudClipboard/items/$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}/cloudClipboard/items/$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", 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 CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public 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.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/CloudClipboard/Items/Item/CloudClipboardItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CloudClipboard/Items/Item/CloudClipboardItemItemRequestBuilder.cs new file mode 100644 index 00000000000..ed7edd1b847 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/CloudClipboard/Items/Item/CloudClipboardItemItemRequestBuilder.cs @@ -0,0 +1,198 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Users.Item.CloudClipboard.Items.Item { + /// + /// Provides operations to manage the items property of the microsoft.graph.cloudClipboardRoot entity. + /// + public class CloudClipboardItemItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public CloudClipboardItemItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/cloudClipboard/items/{cloudClipboardItem%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 CloudClipboardItemItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/cloudClipboard/items/{cloudClipboardItem%2Did}{?%24expand,%24select}", rawUrl) { + } + /// + /// Delete navigation property items 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", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get items from users + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CloudClipboardItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property items 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(CloudClipboardItem body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(CloudClipboardItem body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CloudClipboardItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property items 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, "{+baseurl}/users/{user%2Did}/cloudClipboard/items/{cloudClipboardItem%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get items from 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 ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 items 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(CloudClipboardItem body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(CloudClipboardItem body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/users/{user%2Did}/cloudClipboard/items/{cloudClipboardItem%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public CloudClipboardItemItemRequestBuilder WithUrl(string rawUrl) { + return new CloudClipboardItemItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CloudClipboardItemItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Get items from users + /// + public class CloudClipboardItemItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CloudClipboardItemItemRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class CloudClipboardItemItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/CloudClipboard/Items/ItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CloudClipboard/Items/ItemsRequestBuilder.cs new file mode 100644 index 00000000000..55b4cbb1b7b --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/CloudClipboard/Items/ItemsRequestBuilder.cs @@ -0,0 +1,209 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Users.Item.CloudClipboard.Items.Count; +using Microsoft.Graph.Beta.Users.Item.CloudClipboard.Items.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Users.Item.CloudClipboard.Items { + /// + /// Provides operations to manage the items property of the microsoft.graph.cloudClipboardRoot entity. + /// + public class ItemsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the items property of the microsoft.graph.cloudClipboardRoot entity. + /// The unique identifier of cloudClipboardItem + /// A + public CloudClipboardItemItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("cloudClipboardItem%2Did", position); + return new CloudClipboardItemItemRequestBuilder(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 ItemsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/cloudClipboard/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public ItemsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/cloudClipboard/items{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { + } + /// + /// Get items from users + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CloudClipboardItemCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to items 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(CloudClipboardItem body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(CloudClipboardItem body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, CloudClipboardItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get items from 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 ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 items 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(CloudClipboardItem body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(CloudClipboardItem body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/users/{user%2Did}/cloudClipboard/items", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public ItemsRequestBuilder WithUrl(string rawUrl) { + return new ItemsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get items from users + /// + public class ItemsRequestBuilderGetQueryParameters { + /// 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.")] + public class ItemsRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class ItemsRequestBuilderPostRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs index 8c1b61c1efd..f0a1ec3f3db 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/ChildFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs @@ -36,44 +36,44 @@ public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// Optional contact picture. You can get or set a photo for a contact. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update the navigation property photo in users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Optional contact picture. You can get or set a photo for a contact. @@ -100,10 +100,10 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}/childFolders/{contactFolder%2Did1}/contacts/{contact%2Did}/photo", PathParameters); diff --git a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs index 94e39ee7d38..6edfa39dbe2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/ContactFolders/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs @@ -36,44 +36,44 @@ public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// Optional contact picture. You can get or set a photo for a contact. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update the navigation property photo in users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Optional contact picture. You can get or set a photo for a contact. @@ -100,10 +100,10 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/users/{user%2Did}/contactFolders/{contactFolder%2Did}/contacts/{contact%2Did}/photo", PathParameters); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs index 5a922f173bd..b1a99d48a1d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Contacts/Item/Photo/PhotoRequestBuilder.cs @@ -36,44 +36,44 @@ public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// Optional contact picture. You can get or set a photo for a contact. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update the navigation property photo in users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Optional contact picture. You can get or set a photo for a contact. @@ -100,10 +100,10 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/users/{user%2Did}/contacts/{contact%2Did}/photo", PathParameters); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs index 8c2549a26d8..3a331cf5375 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index dc9f21b2795..b8519dc33fd 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 2da4c4a8ca9..f9641568f9b 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/ExceptionOccurrences/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs index 890506897eb..5a279095109 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs index 57e686fcbf9..f6ea51c5030 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/Item/Instances/Item/ExceptionOccurrences/Item/Attachments/AttachmentsRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. - /// Find more info here + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to add an attachment to an existing event. This operation limits the size of the attachment you can add to under 3 MB. If an organizer adds an attachment to a meeting event, the organizer can subsequently update the event to send the attachment and update the event for each attendee as well. + /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs index 0565f86325c..25be54ea676 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, MailFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. - /// Find more info here + /// Create a new mailSearchFolder in the specified user's mailbox. + /// Find more info here /// /// A /// The request body @@ -109,7 +109,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new child mailFolder. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. + /// Create a new mailSearchFolder in the specified user's mailbox. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index b345510fb92..63515cd647f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,8 +48,8 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24select}", rawUrl) { } /// - /// Retrieve a list of attachment objects. - /// Find more info here + /// Retrieve a list of attachment objects attached to a message. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,7 +137,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs index 57339bc78c2..36db3d8920f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs @@ -100,8 +100,8 @@ public async Task GetAsync(Action(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the writable properties of a mailSearchFolder object. - /// Find more info here + /// Update the properties of mailFolder object. + /// Find more info here /// /// A /// The request body @@ -157,7 +157,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the writable properties of a mailSearchFolder object. + /// Update the properties of mailFolder object. /// /// A /// The request body diff --git a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index 4e576d5c3a7..6450654414d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,8 +48,8 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24select}", rawUrl) { } /// - /// Retrieve a list of attachment objects. - /// Find more info here + /// Retrieve a list of attachment objects attached to a message. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,7 +137,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index b092e49e31c..069d061d1b9 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -48,8 +48,8 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/attachments{?%24count,%24expand,%24filter,%24orderby,%24select}", rawUrl) { } /// - /// Retrieve a list of attachment objects. - /// Find more info here + /// Retrieve a list of attachment objects attached to a message. + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests @@ -92,7 +92,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,7 +137,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects. + /// Retrieve a list of attachment objects attached to a message. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs index abf30498408..094ea0bb448 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs @@ -130,7 +130,7 @@ public async Task DeleteAsync(Action /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// A /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs index 7247e54e2bb..584fdd57895 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs @@ -39,8 +39,8 @@ public RegistrationRequestBuilder(Dictionary pathParameters, IRe public RegistrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/onlineMeetings/{onlineMeeting%2Did}/registration{?%24expand,%24select}", rawUrl) { } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. - /// Find more info here + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -103,7 +103,7 @@ public async Task PatchAsync(MeetingRegistration body, Acti return await RequestAdapter.SendAsync(requestInfo, MeetingRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer. + /// Disable and delete the externalMeetingRegistration of an onlineMeeting. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Photo/PhotoRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Photo/PhotoRequestBuilder.cs index bb484e66e4c..d54f3062bd4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Photo/PhotoRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Photo/PhotoRequestBuilder.cs @@ -36,44 +36,44 @@ public PhotoRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// /// The user's profile photo. Read-only. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update the navigation property photo in users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task PatchAsync(ProfilePhoto body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The user's profile photo. Read-only. @@ -100,10 +100,10 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action>? requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Beta.Models.ProfilePhoto body, Action> requestConfiguration = default) { + public RequestInformation ToPatchRequestInformation(ProfilePhoto body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/users/{user%2Did}/photo", PathParameters); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Photos/Item/ProfilePhotoItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Photos/Item/ProfilePhotoItemRequestBuilder.cs index 5b4c477cb58..ed14a71b624 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Photos/Item/ProfilePhotoItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Photos/Item/ProfilePhotoItemRequestBuilder.cs @@ -36,22 +36,22 @@ public ProfilePhotoItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap /// /// The collection of the user's profile photos in different sizes. Read-only. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { {"XXX", ODataError.CreateFromDiscriminatorValue}, }; - return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Beta.Models.ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, ProfilePhoto.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The collection of the user's profile photos in different sizes. Read-only. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Settings/SettingsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Settings/SettingsRequestBuilder.cs index 3de3f9c66d9..d733beb016f 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Settings/SettingsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Settings/SettingsRequestBuilder.cs @@ -5,6 +5,7 @@ using Microsoft.Graph.Beta.Users.Item.Settings.ItemInsights; using Microsoft.Graph.Beta.Users.Item.Settings.RegionalAndLanguageSettings; using Microsoft.Graph.Beta.Users.Item.Settings.ShiftPreferences; +using Microsoft.Graph.Beta.Users.Item.Settings.Windows; using Microsoft.Kiota.Abstractions.Serialization; using Microsoft.Kiota.Abstractions; using System.Collections.Generic; @@ -34,6 +35,10 @@ public class SettingsRequestBuilder : BaseRequestBuilder { public ShiftPreferencesRequestBuilder ShiftPreferences { get => new ShiftPreferencesRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the windows property of the microsoft.graph.userSettings entity. + public WindowsRequestBuilder Windows { get => + new WindowsRequestBuilder(PathParameters, RequestAdapter); + } /// /// Instantiates a new and sets the default values. /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..5614d3435fd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/Count/CountRequestBuilder.cs @@ -0,0 +1,107 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Users.Item.Settings.Windows.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public 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}/settings/windows/$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}/settings/windows/$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", 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 CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public 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.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/Item/Instances/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/Item/Instances/Count/CountRequestBuilder.cs new file mode 100644 index 00000000000..a09cdc4fcfe --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/Item/Instances/Count/CountRequestBuilder.cs @@ -0,0 +1,107 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Users.Item.Settings.Windows.Item.Instances.Count { + /// + /// Provides operations to count the resources in the collection. + /// + public 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}/settings/windows/{windowsSetting%2Did}/instances/$count{?%24filter,%24search}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%2Did}/instances/$count{?%24filter,%24search}", rawUrl) { + } + /// + /// Get the number of the resource + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", 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 CountRequestBuilder WithUrl(string rawUrl) { + return new CountRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get the number of the resource + /// + public 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.")] + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/Item/Instances/InstancesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/Item/Instances/InstancesRequestBuilder.cs new file mode 100644 index 00000000000..188d641c688 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/Item/Instances/InstancesRequestBuilder.cs @@ -0,0 +1,209 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Users.Item.Settings.Windows.Item.Instances.Count; +using Microsoft.Graph.Beta.Users.Item.Settings.Windows.Item.Instances.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Users.Item.Settings.Windows.Item.Instances { + /// + /// Provides operations to manage the instances property of the microsoft.graph.windowsSetting entity. + /// + public class InstancesRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the instances property of the microsoft.graph.windowsSetting entity. + /// The unique identifier of windowsSettingInstance + /// A + public WindowsSettingInstanceItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("windowsSettingInstance%2Did", position); + return new WindowsSettingInstanceItemRequestBuilder(urlTplParams, RequestAdapter); + } } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public InstancesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%2Did}/instances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public InstancesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%2Did}/instances{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { + } + /// + /// Get instances from users + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WindowsSettingInstanceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to instances 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(WindowsSettingInstance body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(WindowsSettingInstance body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WindowsSettingInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get instances from 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 ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Create new navigation property to instances for 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(WindowsSettingInstance body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(WindowsSettingInstance body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%2Did}/instances", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public InstancesRequestBuilder WithUrl(string rawUrl) { + return new InstancesRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get instances from users + /// + public class InstancesRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class InstancesRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class InstancesRequestBuilderPostRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/Item/Instances/Item/WindowsSettingInstanceItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/Item/Instances/Item/WindowsSettingInstanceItemRequestBuilder.cs new file mode 100644 index 00000000000..296224293e8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/Item/Instances/Item/WindowsSettingInstanceItemRequestBuilder.cs @@ -0,0 +1,198 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Users.Item.Settings.Windows.Item.Instances.Item { + /// + /// Provides operations to manage the instances property of the microsoft.graph.windowsSetting entity. + /// + public class WindowsSettingInstanceItemRequestBuilder : BaseRequestBuilder { + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public WindowsSettingInstanceItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%2Did}/instances/{windowsSettingInstance%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 WindowsSettingInstanceItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%2Did}/instances/{windowsSettingInstance%2Did}{?%24expand,%24select}", rawUrl) { + } + /// + /// Delete navigation property instances 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", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get instances from users + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WindowsSettingInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property instances 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(WindowsSettingInstance body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(WindowsSettingInstance body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WindowsSettingInstance.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property instances 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, "{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%2Did}/instances/{windowsSettingInstance%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get instances from 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 ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Update the navigation property instances in 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(WindowsSettingInstance body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(WindowsSettingInstance body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%2Did}/instances/{windowsSettingInstance%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public WindowsSettingInstanceItemRequestBuilder WithUrl(string rawUrl) { + return new WindowsSettingInstanceItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class WindowsSettingInstanceItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Get instances from users + /// + public class WindowsSettingInstanceItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class WindowsSettingInstanceItemRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class WindowsSettingInstanceItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/Item/WindowsSettingItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/Item/WindowsSettingItemRequestBuilder.cs new file mode 100644 index 00000000000..2f0206e3820 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/Item/WindowsSettingItemRequestBuilder.cs @@ -0,0 +1,203 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Users.Item.Settings.Windows.Item.Instances; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Users.Item.Settings.Windows.Item { + /// + /// Provides operations to manage the windows property of the microsoft.graph.userSettings entity. + /// + public class WindowsSettingItemRequestBuilder : BaseRequestBuilder { + /// Provides operations to manage the instances property of the microsoft.graph.windowsSetting entity. + public InstancesRequestBuilder Instances { get => + new InstancesRequestBuilder(PathParameters, RequestAdapter); + } + /// + /// Instantiates a new and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public WindowsSettingItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%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 WindowsSettingItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%2Did}{?%24expand,%24select}", rawUrl) { + } + /// + /// Delete navigation property windows 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", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get windows from users + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WindowsSetting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Update the navigation property windows 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(WindowsSetting body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PatchAsync(WindowsSetting body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPatchRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WindowsSetting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Delete navigation property windows 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, "{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// Get windows from 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 ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 windows 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(WindowsSetting body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPatchRequestInformation(WindowsSetting body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/users/{user%2Did}/settings/windows/{windowsSetting%2Did}", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public WindowsSettingItemRequestBuilder WithUrl(string rawUrl) { + return new WindowsSettingItemRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class WindowsSettingItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// Get windows from users + /// + public class WindowsSettingItemRequestBuilderGetQueryParameters { + /// Expand related entities +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24expand")] + public string[]? Expand { get; set; } +#nullable restore +#else + [QueryParameter("%24expand")] + public string[] Expand { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class WindowsSettingItemRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class WindowsSettingItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/WindowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/WindowsRequestBuilder.cs new file mode 100644 index 00000000000..7761ef04dbd --- /dev/null +++ b/src/Microsoft.Graph/Generated/Users/Item/Settings/Windows/WindowsRequestBuilder.cs @@ -0,0 +1,209 @@ +// +using Microsoft.Graph.Beta.Models.ODataErrors; +using Microsoft.Graph.Beta.Models; +using Microsoft.Graph.Beta.Users.Item.Settings.Windows.Count; +using Microsoft.Graph.Beta.Users.Item.Settings.Windows.Item; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading.Tasks; +using System.Threading; +using System; +namespace Microsoft.Graph.Beta.Users.Item.Settings.Windows { + /// + /// Provides operations to manage the windows property of the microsoft.graph.userSettings entity. + /// + public class WindowsRequestBuilder : BaseRequestBuilder { + /// Provides operations to count the resources in the collection. + public CountRequestBuilder Count { get => + new CountRequestBuilder(PathParameters, RequestAdapter); + } + /// Provides operations to manage the windows property of the microsoft.graph.userSettings entity. + /// The unique identifier of windowsSetting + /// A + public WindowsSettingItemRequestBuilder this[string position] { get { + var urlTplParams = new Dictionary(PathParameters); + urlTplParams.Add("windowsSetting%2Did", position); + return new WindowsSettingItemRequestBuilder(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 WindowsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/windows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters) { + } + /// + /// Instantiates a new and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public WindowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/settings/windows{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl) { + } + /// + /// Get windows from users + /// + /// A + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. + /// When receiving a 4XX or 5XX status code +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WindowsSettingCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Create new navigation property to windows 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(WindowsSetting body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task PostAsync(WindowsSetting body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = ToPostRequestInformation(body, requestConfiguration); + var errorMapping = new Dictionary> { + {"XXX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, WindowsSetting.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// Get windows from 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 ToGetRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation 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 windows 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(WindowsSetting body, Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToPostRequestInformation(WindowsSetting body, Action> requestConfiguration = default) { +#endif + _ = body ?? throw new ArgumentNullException(nameof(body)); + var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/users/{user%2Did}/settings/windows", PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); + return requestInfo; + } + /// + /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. + /// + /// A + /// The raw URL to use for the request builder. + public WindowsRequestBuilder WithUrl(string rawUrl) { + return new WindowsRequestBuilder(rawUrl, RequestAdapter); + } + /// + /// Get windows from users + /// + public class WindowsRequestBuilderGetQueryParameters { + /// 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.")] + public class WindowsRequestBuilderGetRequestConfiguration : RequestConfiguration { + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] + public class WindowsRequestBuilderPostRequestConfiguration : RequestConfiguration { + } + } +} diff --git a/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs index 345e65a15b0..68166e17192 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs @@ -19,6 +19,7 @@ using Microsoft.Graph.Beta.Users.Item.Chats; using Microsoft.Graph.Beta.Users.Item.CheckMemberGroups; using Microsoft.Graph.Beta.Users.Item.CheckMemberObjects; +using Microsoft.Graph.Beta.Users.Item.CloudClipboard; using Microsoft.Graph.Beta.Users.Item.CloudPCs; using Microsoft.Graph.Beta.Users.Item.ContactFolders; using Microsoft.Graph.Beta.Users.Item.Contacts; @@ -192,6 +193,10 @@ public class UserItemRequestBuilder : BaseRequestBuilder { public CheckMemberObjectsRequestBuilder CheckMemberObjects { get => new CheckMemberObjectsRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to manage the cloudClipboard property of the microsoft.graph.user entity. + public CloudClipboardRequestBuilder CloudClipboard { get => + new CloudClipboardRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to manage the cloudPCs property of the microsoft.graph.user entity. public CloudPCsRequestBuilder CloudPCs { get => new CloudPCsRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/kiota-lock.json b/src/Microsoft.Graph/Generated/kiota-lock.json index 1f8473520eb..748b09213d5 100644 --- a/src/Microsoft.Graph/Generated/kiota-lock.json +++ b/src/Microsoft.Graph/Generated/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "BE45E670C066ECAC2E12B1D640144955F3825170029B884E797F9D60FD85C3BA183FA8802207BC108791C31A372F029BFC9E1CAD10C73E929604C1B056A24C23", + "descriptionHash": "F183A6D947E11E6A851F7E115585D176730BC4EC51098E6A6298BABFDE43709A34B5980993A09DE194866E43F9F2294FDA3FC605647FF8BE5853751D5AB76FC6", "descriptionLocation": "../../msgraph-metadata/clean_beta_openapi/openapi.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.11.1", + "kiotaVersion": "1.12.0", "clientClassName": "BaseGraphServiceClient", "clientNamespaceName": "Microsoft.Graph.Beta", "language": "CSharp", From b60ba58d69d79b4292739d594354550b0dcdd2d9 Mon Sep 17 00:00:00 2001 From: Andrew Omondi Date: Tue, 27 Feb 2024 16:54:36 +0300 Subject: [PATCH 2/2] Bumps version and release notes --- CHANGELOG.md | 4 ++++ src/Microsoft.Graph/Microsoft.Graph.Beta.csproj | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1bad0690c97..c72dfc96216 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project does NOT adhere to [Semantic Versioning](https://semver.org/spe ## [Unreleased] +## [5.67.0-preview] - 2024-02-21 + +- Latest metadata updates from 20th February 2024. + ## [5.66.0-preview] - 2024-02-21 - Latest metadata updates from 20th February 2024. diff --git a/src/Microsoft.Graph/Microsoft.Graph.Beta.csproj b/src/Microsoft.Graph/Microsoft.Graph.Beta.csproj index 68624bbfd4c..a9874d50503 100644 --- a/src/Microsoft.Graph/Microsoft.Graph.Beta.csproj +++ b/src/Microsoft.Graph/Microsoft.Graph.Beta.csproj @@ -26,7 +26,7 @@ - https://github.com/microsoftgraph/msgraph-beta-sdk-dotnet/blob/master/CHANGELOG.md - 5.66.0 + 5.67.0