From ccb1a496785830d06426f707f3b506c302d6565c Mon Sep 17 00:00:00 2001 From: Andrew Omondi Date: Tue, 16 Jan 2024 11:04:04 +0300 Subject: [PATCH 1/3] Implement base interfaces --- src/Microsoft.Graph/Extensions/ChangeNotification.cs | 2 +- .../Extensions/ChangeNotificationCollection.cs | 4 ++-- .../Extensions/ChangeNotificationEncryptedContent.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Microsoft.Graph/Extensions/ChangeNotification.cs b/src/Microsoft.Graph/Extensions/ChangeNotification.cs index ce63a4f9318..cf2f8fc99e9 100644 --- a/src/Microsoft.Graph/Extensions/ChangeNotification.cs +++ b/src/Microsoft.Graph/Extensions/ChangeNotification.cs @@ -5,7 +5,7 @@ using System.Linq; using System; namespace Microsoft.Graph.Models { - public class ChangeNotification : IAdditionalDataHolder, IBackedModel, IParsable { + public class ChangeNotification : IEncryptedContentBearer,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"); } diff --git a/src/Microsoft.Graph/Extensions/ChangeNotificationCollection.cs b/src/Microsoft.Graph/Extensions/ChangeNotificationCollection.cs index eae5534b5bf..04a2093b1df 100644 --- a/src/Microsoft.Graph/Extensions/ChangeNotificationCollection.cs +++ b/src/Microsoft.Graph/Extensions/ChangeNotificationCollection.cs @@ -1,4 +1,4 @@ -using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Abstractions.Serialization; using System.Collections.Generic; using System.IO; using System.Linq; @@ -6,7 +6,7 @@ using Microsoft.Kiota.Abstractions.Store; namespace Microsoft.Graph.Models { - public class ChangeNotificationCollection : IAdditionalDataHolder,IBackedModel, IParsable { + public class ChangeNotificationCollection : ITokenValidable, IAdditionalDataHolder,IBackedModel, IParsable { /// Stores model information. public IBackingStore BackingStore { get; private set; } diff --git a/src/Microsoft.Graph/Extensions/ChangeNotificationEncryptedContent.cs b/src/Microsoft.Graph/Extensions/ChangeNotificationEncryptedContent.cs index 17eeae402eb..f1e1255b11d 100644 --- a/src/Microsoft.Graph/Extensions/ChangeNotificationEncryptedContent.cs +++ b/src/Microsoft.Graph/Extensions/ChangeNotificationEncryptedContent.cs @@ -5,7 +5,7 @@ using System.Linq; using System; namespace Microsoft.Graph.Models { - public class ChangeNotificationEncryptedContent : IAdditionalDataHolder, IBackedModel, IParsable { + public class ChangeNotificationEncryptedContent : IDecryptableContent, 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"); } From b485fc07e0b989f4e66752d889c91ad9605b024d Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 16 Jan 2024 10:34:31 +0000 Subject: [PATCH 2/3] Update generated files with build 131601 --- .../ConversationMemberItemRequestBuilder.cs | 8 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- ...SendActivityNotificationPostRequestBody.cs | 16 + .../Invite/InviteRequestBuilder.cs | 6 +- .../DeviceAppManagementRequestBuilder.cs | 4 +- .../ManagedAppPolicyItemRequestBuilder.cs | 8 +- .../TargetApps/TargetAppsRequestBuilder.cs | 2 +- .../ManagedAppPoliciesRequestBuilder.cs | 8 +- .../TargetApps/TargetAppsRequestBuilder.cs | 2 +- .../TargetApps/TargetAppsRequestBuilder.cs | 2 +- ...anagedAppRegistrationItemRequestBuilder.cs | 8 +- .../ManagedAppRegistrationsRequestBuilder.cs | 8 +- .../ManagedAppStatusItemRequestBuilder.cs | 8 +- .../Assignments/AssignmentsRequestBuilder.cs | 8 +- ...anagedEBookAssignmentItemRequestBuilder.cs | 6 +- .../Item/ManagedEBookItemRequestBuilder.cs | 8 +- ...obileAppConfigurationItemRequestBuilder.cs | 8 +- .../MobileAppConfigurationsRequestBuilder.cs | 8 +- .../Item/MobileAppItemRequestBuilder.cs | 20 +- .../MobileApps/MobileAppsRequestBuilder.cs | 14 +- .../DeviceCompliancePoliciesRequestBuilder.cs | 14 +- ...eviceCompliancePolicyItemRequestBuilder.cs | 20 +- .../DeviceConfigurationsRequestBuilder.cs | 14 +- .../DeviceConfigurationItemRequestBuilder.cs | 20 +- ...eEnrollmentConfigurationsRequestBuilder.cs | 6 +- ...rollmentConfigurationItemRequestBuilder.cs | 20 +- .../DeviceManagementRequestBuilder.cs | 4 +- .../Item/RoleDefinitionItemRequestBuilder.cs | 6 +- .../RoleDefinitionsRequestBuilder.cs | 14 +- .../Items/Item/DriveItemItemRequestBuilder.cs | 6 +- .../RangeNamespace/RangeRequestBuilder.cs | 6 +- .../Workbook/Names/NamesRequestBuilder.cs | 2 +- .../Item/Columns/ColumnsRequestBuilder.cs | 2 +- .../Tables/Item/Rows/RowsRequestBuilder.cs | 2 +- .../Item/Charts/ChartsRequestBuilder.cs | 2 +- .../RangeNamespace/RangeRequestBuilder.cs | 6 +- .../Item/Columns/ColumnsRequestBuilder.cs | 2 +- .../Tables/Item/Rows/RowsRequestBuilder.cs | 2 +- .../GradingCategoriesRequestBuilder.cs | 6 +- ...cationGradingCategoryItemRequestBuilder.cs | 6 +- .../Assignments/AssignmentsRequestBuilder.cs | 6 +- .../GradingCategoryRequestBuilder.cs | 48 +- .../Item/Outcomes/OutcomesRequestBuilder.cs | 6 +- .../Item/Resources/ResourcesRequestBuilder.cs | 6 +- .../SubmittedResourcesRequestBuilder.cs | 6 +- .../Submissions/SubmissionsRequestBuilder.cs | 6 +- .../GradingCategoryRequestBuilder.cs | 48 +- .../Item/Outcomes/OutcomesRequestBuilder.cs | 6 +- .../Item/Resources/ResourcesRequestBuilder.cs | 6 +- .../SubmittedResourcesRequestBuilder.cs | 6 +- .../Submissions/SubmissionsRequestBuilder.cs | 6 +- .../GradingCategoryRequestBuilder.cs | 48 +- .../Item/Outcomes/OutcomesRequestBuilder.cs | 6 +- .../Item/Resources/ResourcesRequestBuilder.cs | 6 +- .../SubmittedResourcesRequestBuilder.cs | 6 +- .../Submissions/SubmissionsRequestBuilder.cs | 6 +- .../Item/ConversationItemRequestBuilder.cs | 10 +- .../Threads/Item/Posts/PostsRequestBuilder.cs | 8 +- .../Item/Lists/Item/ListItemRequestBuilder.cs | 8 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- ...SendActivityNotificationPostRequestBody.cs | 16 + .../Threads/Item/Posts/PostsRequestBuilder.cs | 8 +- .../Item/NamedLocationItemRequestBuilder.cs | 14 +- .../Item/AgreementItemRequestBuilder.cs | 8 +- .../Item/History/HistoryRequestBuilder.cs | 8 +- .../CalendarViewRequestBuilder.cs | 30 +- .../Item/EventItemRequestBuilder.cs | 24 +- .../ConversationMemberItemRequestBuilder.cs | 8 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- ...SendActivityNotificationPostRequestBody.cs | 16 + .../Me/Events/EventsRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- ...SendActivityNotificationPostRequestBody.cs | 16 + .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Generated/Me/MeRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Item/MessageItemRequestBuilder.cs | 14 +- .../Item/Value/ContentRequestBuilder.cs | 2 +- .../Me/Messages/MessagesRequestBuilder.cs | 8 +- ...SendActivityNotificationPostRequestBody.cs | 16 + .../Generated/Models/AccessPackageResource.cs | 16 + .../Models/AccessPackageResourceAttribute.cs | 112 +++++ ...cessPackageResourceAttributeDestination.cs | 68 +++ .../AccessPackageResourceAttributeQuestion.cs | 55 +++ .../AccessPackageResourceAttributeSource.cs | 68 +++ ...ccessPackageUserDirectoryAttributeStore.cs | 39 ++ .../Generated/Models/Agreement.cs | 4 +- src/Microsoft.Graph/Generated/Models/Call.cs | 4 +- .../Models/ConditionalAccessApplications.cs | 4 +- .../Generated/Models/DeltaParticipants.cs | 4 +- .../Generated/Models/EducationAssignment.cs | 14 +- .../Models/EducationAssignmentSettings.cs | 4 +- .../Models/EducationGradingCategory.cs | 4 +- .../Generated/Models/ExtensionProperty.cs | 4 +- .../Generated/Models/IdentitySource.cs | 1 + .../Generated/Models/Participant.cs | 4 +- .../Generated/Models/RemovedState.cs | 2 +- .../Generated/Models/SearchRequest.cs | 2 +- .../Models/Security/AlertEvidence.cs | 11 + .../Security/GitHubOrganizationEvidence.cs | 135 ++++++ .../Models/Security/GitHubRepoEvidence.cs | 119 +++++ .../Models/Security/GitHubUserEvidence.cs | 119 +++++ .../Security/HostLogonSessionEvidence.cs | 101 +++++ .../Models/Security/IoTDeviceEvidence.cs | 419 ++++++++++++++++++ .../Security/IoTDeviceImportanceType.cs | 17 + .../Models/Security/MalwareEvidence.cs | 103 +++++ .../Security/NetworkConnectionEvidence.cs | 92 ++++ .../Generated/Models/Security/NicEvidence.cs | 87 ++++ .../Generated/Models/Security/ProtocolType.cs | 13 + .../Models/Security/SasTokenEvidence.cs | 181 ++++++++ .../Security/ServicePrincipalEvidence.cs | 126 ++++++ .../Models/Security/ServicePrincipalType.cs | 17 + .../Models/Security/SubmissionMailEvidence.cs | 174 ++++++++ .../Models/SendDtmfTonesOperation.cs | 2 +- .../Generated/Models/SignInActivity.cs | 4 +- .../Generated/Models/SocialIdentitySource.cs | 62 +++ .../Models/SocialIdentitySourceType.cs | 11 + .../Item/OrganizationItemRequestBuilder.cs | 6 +- .../OrganizationRequestBuilder.cs | 8 +- .../Item/Lists/Item/ListItemRequestBuilder.cs | 8 +- .../Generated/Sites/SitesRequestBuilder.cs | 8 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- ...SendActivityNotificationPostRequestBody.cs | 16 + .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../CalendarViewRequestBuilder.cs | 30 +- .../Item/EventItemRequestBuilder.cs | 24 +- .../ConversationMemberItemRequestBuilder.cs | 8 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- ...SendActivityNotificationPostRequestBody.cs | 16 + .../Users/Item/Events/EventsRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../ConversationMemberItemRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- ...SendActivityNotificationPostRequestBody.cs | 16 + .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Attachments/AttachmentsRequestBuilder.cs | 8 +- .../Item/MessageItemRequestBuilder.cs | 14 +- .../Item/Value/ContentRequestBuilder.cs | 2 +- .../Item/Messages/MessagesRequestBuilder.cs | 8 +- ...SendActivityNotificationPostRequestBody.cs | 16 + .../Users/Item/UserItemRequestBuilder.cs | 2 +- src/Microsoft.Graph/Generated/kiota-lock.json | 4 +- 155 files changed, 2913 insertions(+), 417 deletions(-) create mode 100644 src/Microsoft.Graph/Generated/Models/AccessPackageResourceAttribute.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AccessPackageResourceAttributeDestination.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AccessPackageResourceAttributeQuestion.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AccessPackageResourceAttributeSource.cs create mode 100644 src/Microsoft.Graph/Generated/Models/AccessPackageUserDirectoryAttributeStore.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/GitHubOrganizationEvidence.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/GitHubRepoEvidence.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/GitHubUserEvidence.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/HostLogonSessionEvidence.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/IoTDeviceEvidence.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/IoTDeviceImportanceType.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/MalwareEvidence.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/NetworkConnectionEvidence.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/NicEvidence.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/ProtocolType.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/SasTokenEvidence.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/ServicePrincipalEvidence.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/ServicePrincipalType.cs create mode 100644 src/Microsoft.Graph/Generated/Models/Security/SubmissionMailEvidence.cs create mode 100644 src/Microsoft.Graph/Generated/Models/SocialIdentitySource.cs create mode 100644 src/Microsoft.Graph/Generated/Models/SocialIdentitySourceType.cs diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index eb1db1da754..da77b3556bd 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -49,8 +49,8 @@ public async Task DeleteAsync(Action - /// Retrieve a conversationMember from a chat or channel. - /// Find more info here + /// Retrieve a conversationMember from a chat. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -106,7 +106,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a conversationMember from a chat or channel. + /// Retrieve a conversationMember from a chat. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -154,7 +154,7 @@ public ConversationMemberItemRequestBuilder WithUrl(string rawUrl) { public class ConversationMemberItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Retrieve a conversationMember from a chat or channel. + /// Retrieve a conversationMember from a chat. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs index 7d6690c825f..d6ee0ac3f38 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs index f1335c9333c..9b24df1d3ff 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs @@ -61,6 +61,20 @@ public TeamworkNotificationRecipient Recipient { get { return BackingStore?.Get("recipient"); } set { BackingStore?.Set("recipient", value); } } +#endif + /// The teamsAppId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TeamsAppId { + get { return BackingStore?.Get("teamsAppId"); } + set { BackingStore?.Set("teamsAppId", value); } + } +#nullable restore +#else + public string TeamsAppId { + get { return BackingStore?.Get("teamsAppId"); } + set { BackingStore?.Set("teamsAppId", value); } + } #endif /// The templateParameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,6 +128,7 @@ public virtual IDictionary> GetFieldDeserializers() { {"chainId", n => { ChainId = n.GetLongValue(); } }, {"previewText", n => { PreviewText = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, {"recipient", n => { Recipient = n.GetObjectValue(TeamworkNotificationRecipient.CreateFromDiscriminatorValue); } }, + {"teamsAppId", n => { TeamsAppId = n.GetStringValue(); } }, {"templateParameters", n => { TemplateParameters = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.KeyValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, {"topic", n => { Topic = n.GetObjectValue(TeamworkActivityTopic.CreateFromDiscriminatorValue); } }, }; @@ -128,6 +143,7 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteLongValue("chainId", ChainId); writer.WriteObjectValue("previewText", PreviewText); writer.WriteObjectValue("recipient", Recipient); + writer.WriteStringValue("teamsAppId", TeamsAppId); writer.WriteCollectionOfObjectValues("templateParameters", TemplateParameters); writer.WriteObjectValue("topic", Topic); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs index 1ca413df9f2..562af5c8af7 100644 --- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs @@ -29,8 +29,8 @@ public InviteRequestBuilder(Dictionary pathParameters, IRequestA public InviteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/communications/calls/{call%2Did}/participants/invite", rawUrl) { } /// - /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. - /// Find more info here + /// Invite participants to the active call. For more information about how to handle operations, see commsOperation. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -51,7 +51,7 @@ public async Task PostAsync(InvitePostRequestBody b return await RequestAdapter.SendAsync(requestInfo, InviteParticipantsOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled. + /// Invite participants to the active call. For more information about how to handle operations, see commsOperation. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs index bb8c381cdba..c7a27e239c1 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/DeviceAppManagementRequestBuilder.cs @@ -105,7 +105,7 @@ public DeviceAppManagementRequestBuilder(string rawUrl, IRequestAdapter requestA } /// /// Read properties and relationships of the deviceAppManagement object. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -125,7 +125,7 @@ public DeviceAppManagementRequestBuilder(string rawUrl, IRequestAdapter requestA } /// /// Update the properties of a deviceAppManagement object. - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs index 9824530056f..f0bec442076 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/ManagedAppPolicyItemRequestBuilder.cs @@ -53,8 +53,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the managedAppProtection object. - /// Find more info here + /// Read properties and relationships of the managedAppConfiguration object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -110,7 +110,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the managedAppProtection object. + /// Read properties and relationships of the managedAppConfiguration object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -158,7 +158,7 @@ public ManagedAppPolicyItemRequestBuilder WithUrl(string rawUrl) { public class ManagedAppPolicyItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read properties and relationships of the managedAppProtection object. + /// Read properties and relationships of the managedAppConfiguration object. /// public class ManagedAppPolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs index ba47474d85e..c2866d01787 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs @@ -29,7 +29,7 @@ public TargetAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } /// /// Not yet documented - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs index bb02e3b081c..2e540ca3a1f 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppPolicies/ManagedAppPoliciesRequestBuilder.cs @@ -42,8 +42,8 @@ public ManagedAppPoliciesRequestBuilder(Dictionary pathParameter public ManagedAppPoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/managedAppPolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the targetedManagedAppProtection objects. - /// Find more info here + /// List properties and relationships of the managedAppConfiguration objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -83,7 +83,7 @@ public async Task PostAsync(ManagedAppPolicy body, Action(requestInfo, ManagedAppPolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the targetedManagedAppProtection objects. + /// List properties and relationships of the managedAppConfiguration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public ManagedAppPoliciesRequestBuilder WithUrl(string rawUrl) { return new ManagedAppPoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the targetedManagedAppProtection objects. + /// List properties and relationships of the managedAppConfiguration objects. /// public class ManagedAppPoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs index 48907527a73..2718703f046 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/AppliedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs @@ -29,7 +29,7 @@ public TargetAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } /// /// Not yet documented - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs index d9bc6c34385..37607ca44e6 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/IntendedPolicies/Item/TargetApps/TargetAppsRequestBuilder.cs @@ -29,7 +29,7 @@ public TargetAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : } /// /// Not yet documented - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs index 9cee0cbc875..d91adc112b5 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/Item/ManagedAppRegistrationItemRequestBuilder.cs @@ -63,8 +63,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the managedAppRegistration object. - /// Find more info here + /// Read properties and relationships of the iosManagedAppRegistration object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -120,7 +120,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the managedAppRegistration object. + /// Read properties and relationships of the iosManagedAppRegistration object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -168,7 +168,7 @@ public ManagedAppRegistrationItemRequestBuilder WithUrl(string rawUrl) { public class ManagedAppRegistrationItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read properties and relationships of the managedAppRegistration object. + /// Read properties and relationships of the iosManagedAppRegistration object. /// public class ManagedAppRegistrationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs index 573eacb505f..30ca8b811c4 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppRegistrations/ManagedAppRegistrationsRequestBuilder.cs @@ -47,8 +47,8 @@ public ManagedAppRegistrationsRequestBuilder(Dictionary pathPara public ManagedAppRegistrationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/managedAppRegistrations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the managedAppRegistration objects. - /// Find more info here + /// List properties and relationships of the androidManagedAppRegistration objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -89,7 +89,7 @@ public async Task PostAsync(ManagedAppRegistration body, return await RequestAdapter.SendAsync(requestInfo, ManagedAppRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the managedAppRegistration objects. + /// List properties and relationships of the androidManagedAppRegistration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -131,7 +131,7 @@ public ManagedAppRegistrationsRequestBuilder WithUrl(string rawUrl) { return new ManagedAppRegistrationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the managedAppRegistration objects. + /// List properties and relationships of the androidManagedAppRegistration objects. /// public class ManagedAppRegistrationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.cs index 149a1b1a68a..f913a388b58 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedAppStatuses/Item/ManagedAppStatusItemRequestBuilder.cs @@ -48,8 +48,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the managedAppStatusRaw object. - /// Find more info here + /// Read properties and relationships of the managedAppStatus object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -105,7 +105,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the managedAppStatusRaw object. + /// Read properties and relationships of the managedAppStatus object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -153,7 +153,7 @@ public ManagedAppStatusItemRequestBuilder WithUrl(string rawUrl) { public class ManagedAppStatusItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read properties and relationships of the managedAppStatusRaw object. + /// Read properties and relationships of the managedAppStatus object. /// public class ManagedAppStatusItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs index c72bd0993fb..29e96c74bed 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/AssignmentsRequestBuilder.cs @@ -42,8 +42,8 @@ public AssignmentsRequestBuilder(Dictionary pathParameters, IReq public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the iosVppEBookAssignment objects. - /// Find more info here + /// List properties and relationships of the managedEBookAssignment objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -84,7 +84,7 @@ public async Task PostAsync(ManagedEBookAssignment body, return await RequestAdapter.SendAsync(requestInfo, ManagedEBookAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the iosVppEBookAssignment objects. + /// List properties and relationships of the managedEBookAssignment objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -126,7 +126,7 @@ public AssignmentsRequestBuilder WithUrl(string rawUrl) { return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the iosVppEBookAssignment objects. + /// List properties and relationships of the managedEBookAssignment objects. /// public class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs index a755199cc7c..99132c5f319 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/Assignments/Item/ManagedEBookAssignmentItemRequestBuilder.cs @@ -29,8 +29,8 @@ public ManagedEBookAssignmentItemRequestBuilder(Dictionary pathP public ManagedEBookAssignmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/managedEBooks/{managedEBook%2Did}/assignments/{managedEBookAssignment%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a managedEBookAssignment. - /// Find more info here + /// Deletes a iosVppEBookAssignment. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -91,7 +91,7 @@ public async Task PatchAsync(ManagedEBookAssignment body return await RequestAdapter.SendAsync(requestInfo, ManagedEBookAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a managedEBookAssignment. + /// Deletes a iosVppEBookAssignment. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs index 32580b797ac..db41fb49bf3 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/ManagedEBooks/Item/ManagedEBookItemRequestBuilder.cs @@ -74,8 +74,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the iosVppEBook object. - /// Find more info here + /// Read properties and relationships of the managedEBook object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -132,7 +132,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the iosVppEBook object. + /// Read properties and relationships of the managedEBook object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -180,7 +180,7 @@ public ManagedEBookItemRequestBuilder WithUrl(string rawUrl) { public class ManagedEBookItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read properties and relationships of the iosVppEBook object. + /// Read properties and relationships of the managedEBook object. /// public class ManagedEBookItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs index 15ab89ef1df..d5b6f3814b7 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/Item/ManagedDeviceMobileAppConfigurationItemRequestBuilder.cs @@ -79,8 +79,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the iosMobileAppConfiguration object. - /// Find more info here + /// Read properties and relationships of the managedDeviceMobileAppConfiguration object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,7 +137,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the iosMobileAppConfiguration object. + /// Read properties and relationships of the managedDeviceMobileAppConfiguration object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -185,7 +185,7 @@ public ManagedDeviceMobileAppConfigurationItemRequestBuilder WithUrl(string rawU public class ManagedDeviceMobileAppConfigurationItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read properties and relationships of the iosMobileAppConfiguration object. + /// Read properties and relationships of the managedDeviceMobileAppConfiguration object. /// public class ManagedDeviceMobileAppConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs index 5a6a45e73a1..fe7ac2581c7 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileAppConfigurations/MobileAppConfigurationsRequestBuilder.cs @@ -42,8 +42,8 @@ public MobileAppConfigurationsRequestBuilder(Dictionary pathPara public MobileAppConfigurationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileAppConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the managedDeviceMobileAppConfiguration objects. - /// Find more info here + /// List properties and relationships of the iosMobileAppConfiguration objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -84,7 +84,7 @@ public async Task PostAsync(ManagedDeviceMo return await RequestAdapter.SendAsync(requestInfo, ManagedDeviceMobileAppConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the managedDeviceMobileAppConfiguration objects. + /// List properties and relationships of the iosMobileAppConfiguration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -126,7 +126,7 @@ public MobileAppConfigurationsRequestBuilder WithUrl(string rawUrl) { return new MobileAppConfigurationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the managedDeviceMobileAppConfiguration objects. + /// List properties and relationships of the iosMobileAppConfiguration objects. /// public class MobileAppConfigurationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs index ce168b59814..ea652495871 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/Item/MobileAppItemRequestBuilder.cs @@ -124,8 +124,8 @@ public MobileAppItemRequestBuilder(Dictionary pathParameters, IR public MobileAppItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps/{mobileApp%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a windowsMobileMSI. - /// Find more info here + /// Deletes a windowsAppX. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -144,8 +144,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the windowsAppX object. - /// Find more info here + /// Read properties and relationships of the windowsMicrosoftEdgeApp object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -164,8 +164,8 @@ public async Task GetAsync(Action(requestInfo, MobileApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a win32LobApp object. - /// Find more info here + /// Update the properties of a iosiPadOSWebClip object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -186,7 +186,7 @@ public async Task PatchAsync(MobileApp body, Action(requestInfo, MobileApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a windowsMobileMSI. + /// Deletes a windowsAppX. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -202,7 +202,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the windowsAppX object. + /// Read properties and relationships of the windowsMicrosoftEdgeApp object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -218,7 +218,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a win32LobApp object. + /// Update the properties of a iosiPadOSWebClip object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -250,7 +250,7 @@ public MobileAppItemRequestBuilder WithUrl(string rawUrl) { public class MobileAppItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read properties and relationships of the windowsAppX object. + /// Read properties and relationships of the windowsMicrosoftEdgeApp object. /// public class MobileAppItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs index 2308ef84c70..219da400ced 100644 --- a/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceAppManagement/MobileApps/MobileAppsRequestBuilder.cs @@ -122,8 +122,8 @@ public MobileAppsRequestBuilder(Dictionary pathParameters, IRequ public MobileAppsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceAppManagement/mobileApps{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the mobileApp objects. - /// Find more info here + /// List properties and relationships of the windowsAppX objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -142,8 +142,8 @@ public async Task GetAsync(Action(requestInfo, MobileAppCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new microsoftStoreForBusinessApp object. - /// Find more info here + /// Create a new windowsUniversalAppX object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -164,7 +164,7 @@ public async Task PostAsync(MobileApp body, Action(requestInfo, MobileApp.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the mobileApp objects. + /// List properties and relationships of the windowsAppX objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -180,7 +180,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new microsoftStoreForBusinessApp object. + /// Create a new windowsUniversalAppX object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -206,7 +206,7 @@ public MobileAppsRequestBuilder WithUrl(string rawUrl) { return new MobileAppsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the mobileApp objects. + /// List properties and relationships of the windowsAppX objects. /// public class MobileAppsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs index f983cd87c23..273e300acd2 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/DeviceCompliancePoliciesRequestBuilder.cs @@ -42,8 +42,8 @@ public DeviceCompliancePoliciesRequestBuilder(Dictionary pathPar public DeviceCompliancePoliciesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the androidWorkProfileCompliancePolicy objects. - /// Find more info here + /// List properties and relationships of the windows10CompliancePolicy objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -62,8 +62,8 @@ public async Task GetAsync(Action(requestInfo, DeviceCompliancePolicyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new androidCompliancePolicy object. - /// Find more info here + /// Create a new androidWorkProfileCompliancePolicy object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(DeviceCompliancePolicy body, return await RequestAdapter.SendAsync(requestInfo, DeviceCompliancePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the androidWorkProfileCompliancePolicy objects. + /// List properties and relationships of the windows10CompliancePolicy objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new androidCompliancePolicy object. + /// Create a new androidWorkProfileCompliancePolicy object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -126,7 +126,7 @@ public DeviceCompliancePoliciesRequestBuilder WithUrl(string rawUrl) { return new DeviceCompliancePoliciesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the androidWorkProfileCompliancePolicy objects. + /// List properties and relationships of the windows10CompliancePolicy objects. /// public class DeviceCompliancePoliciesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs index 0cb7ffd5d58..689875a3cc9 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceCompliancePolicies/Item/DeviceCompliancePolicyItemRequestBuilder.cs @@ -74,8 +74,8 @@ public DeviceCompliancePolicyItemRequestBuilder(Dictionary pathP public DeviceCompliancePolicyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/deviceCompliancePolicies/{deviceCompliancePolicy%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a androidWorkProfileCompliancePolicy. - /// Find more info here + /// Deletes a windows81CompliancePolicy. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -94,8 +94,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the windows81CompliancePolicy object. - /// Find more info here + /// Read properties and relationships of the windows10CompliancePolicy object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -114,8 +114,8 @@ public async Task GetAsync(Action(requestInfo, DeviceCompliancePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a androidCompliancePolicy object. - /// Find more info here + /// Update the properties of a iosCompliancePolicy object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -136,7 +136,7 @@ public async Task PatchAsync(DeviceCompliancePolicy body return await RequestAdapter.SendAsync(requestInfo, DeviceCompliancePolicy.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a androidWorkProfileCompliancePolicy. + /// Deletes a windows81CompliancePolicy. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,7 +152,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the windows81CompliancePolicy object. + /// Read properties and relationships of the windows10CompliancePolicy object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -168,7 +168,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a androidCompliancePolicy object. + /// Update the properties of a iosCompliancePolicy object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -200,7 +200,7 @@ public DeviceCompliancePolicyItemRequestBuilder WithUrl(string rawUrl) { public class DeviceCompliancePolicyItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read properties and relationships of the windows81CompliancePolicy object. + /// Read properties and relationships of the windows10CompliancePolicy object. /// public class DeviceCompliancePolicyItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs index 39357b51ce5..f12c66747be 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/DeviceConfigurationsRequestBuilder.cs @@ -42,8 +42,8 @@ public DeviceConfigurationsRequestBuilder(Dictionary pathParamet public DeviceConfigurationsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/deviceConfigurations{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the windows81GeneralConfiguration objects. - /// Find more info here + /// List properties and relationships of the sharedPCConfiguration objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -62,8 +62,8 @@ public async Task GetAsync(Action(requestInfo, DeviceConfigurationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new macOSDeviceFeaturesConfiguration object. - /// Find more info here + /// Create a new sharedPCConfiguration object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(DeviceConfiguration body, Actio return await RequestAdapter.SendAsync(requestInfo, DeviceConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the windows81GeneralConfiguration objects. + /// List properties and relationships of the sharedPCConfiguration objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new macOSDeviceFeaturesConfiguration object. + /// Create a new sharedPCConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -126,7 +126,7 @@ public DeviceConfigurationsRequestBuilder WithUrl(string rawUrl) { return new DeviceConfigurationsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the windows81GeneralConfiguration objects. + /// List properties and relationships of the sharedPCConfiguration objects. /// public class DeviceConfigurationsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs index 395dc8a9c64..285d7e676c0 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceConfigurations/Item/DeviceConfigurationItemRequestBuilder.cs @@ -65,8 +65,8 @@ public DeviceConfigurationItemRequestBuilder(Dictionary pathPara public DeviceConfigurationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/deviceConfigurations/{deviceConfiguration%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a editionUpgradeConfiguration. - /// Find more info here + /// Deletes a macOSGeneralDeviceConfiguration. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -85,8 +85,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the androidCustomConfiguration object. - /// Find more info here + /// Read properties and relationships of the iosGeneralDeviceConfiguration object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -113,8 +113,8 @@ public GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder GetOm return new GetOmaSettingPlainTextValueWithSecretReferenceValueIdRequestBuilder(PathParameters, RequestAdapter, secretReferenceValueId); } /// - /// Update the properties of a macOSCustomConfiguration object. - /// Find more info here + /// Update the properties of a androidWorkProfileGeneralDeviceConfiguration object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -135,7 +135,7 @@ public async Task PatchAsync(DeviceConfiguration body, Acti return await RequestAdapter.SendAsync(requestInfo, DeviceConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a editionUpgradeConfiguration. + /// Deletes a macOSGeneralDeviceConfiguration. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -151,7 +151,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the androidCustomConfiguration object. + /// Read properties and relationships of the iosGeneralDeviceConfiguration object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -167,7 +167,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a macOSCustomConfiguration object. + /// Update the properties of a androidWorkProfileGeneralDeviceConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -199,7 +199,7 @@ public DeviceConfigurationItemRequestBuilder WithUrl(string rawUrl) { public class DeviceConfigurationItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read properties and relationships of the androidCustomConfiguration object. + /// Read properties and relationships of the iosGeneralDeviceConfiguration object. /// public class DeviceConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs index 75a7dcc2537..1e798e537da 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/DeviceEnrollmentConfigurationsRequestBuilder.cs @@ -62,8 +62,8 @@ public async Task GetAsync(Acti return await RequestAdapter.SendAsync(requestInfo, DeviceEnrollmentConfigurationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. - /// Find more info here + /// Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -100,7 +100,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new deviceEnrollmentPlatformRestrictionsConfiguration object. + /// Create a new deviceEnrollmentWindowsHelloForBusinessConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs index c3ec7743706..189b0a55589 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceEnrollmentConfigurations/Item/DeviceEnrollmentConfigurationItemRequestBuilder.cs @@ -44,8 +44,8 @@ public DeviceEnrollmentConfigurationItemRequestBuilder(Dictionary - /// Deletes a deviceEnrollmentPlatformRestrictionsConfiguration. - /// Find more info here + /// Deletes a deviceEnrollmentLimitConfiguration. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -64,8 +64,8 @@ public async Task DeleteAsync(Action - /// Read properties and relationships of the deviceEnrollmentLimitConfiguration object. - /// Find more info here + /// Read properties and relationships of the deviceEnrollmentConfiguration object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, DeviceEnrollmentConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a deviceEnrollmentLimitConfiguration object. - /// Find more info here + /// Update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -106,7 +106,7 @@ public async Task PatchAsync(DeviceEnrollmentConf return await RequestAdapter.SendAsync(requestInfo, DeviceEnrollmentConfiguration.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a deviceEnrollmentPlatformRestrictionsConfiguration. + /// Deletes a deviceEnrollmentLimitConfiguration. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -122,7 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Read properties and relationships of the deviceEnrollmentLimitConfiguration object. + /// Read properties and relationships of the deviceEnrollmentConfiguration object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -138,7 +138,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a deviceEnrollmentLimitConfiguration object. + /// Update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -170,7 +170,7 @@ public DeviceEnrollmentConfigurationItemRequestBuilder WithUrl(string rawUrl) { public class DeviceEnrollmentConfigurationItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read properties and relationships of the deviceEnrollmentLimitConfiguration object. + /// Read properties and relationships of the deviceEnrollmentConfiguration object. /// public class DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs index 34c52cbe1d9..7bbf713a6de 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/DeviceManagementRequestBuilder.cs @@ -327,7 +327,7 @@ public DeviceManagementRequestBuilder(string rawUrl, IRequestAdapter requestAdap } /// /// Read properties and relationships of the deviceManagement object. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -355,7 +355,7 @@ public GetEffectivePermissionsWithScopeRequestBuilder GetEffectivePermissionsWit } /// /// Update the properties of a deviceManagement object. - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs index 4707a281236..b866665f515 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/Item/RoleDefinitionItemRequestBuilder.cs @@ -34,8 +34,8 @@ public RoleDefinitionItemRequestBuilder(Dictionary pathParameter public RoleDefinitionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/roleDefinitions/{roleDefinition%2Did}{?%24select,%24expand}", rawUrl) { } /// - /// Deletes a roleDefinition. - /// Find more info here + /// Deletes a deviceAndAppManagementRoleDefinition. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -96,7 +96,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.RoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Deletes a roleDefinition. + /// Deletes a deviceAndAppManagementRoleDefinition. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs index 35ff215df17..b960a322143 100644 --- a/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DeviceManagement/RoleDefinitions/RoleDefinitionsRequestBuilder.cs @@ -42,8 +42,8 @@ public RoleDefinitionsRequestBuilder(Dictionary pathParameters, public RoleDefinitionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/deviceManagement/roleDefinitions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the deviceAndAppManagementRoleDefinition objects. - /// Find more info here + /// List properties and relationships of the roleDefinition objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -62,8 +62,8 @@ public async Task GetAsync(Action(requestInfo, RoleDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new roleDefinition object. - /// Find more info here + /// Create a new deviceAndAppManagementRoleDefinition object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.RoleDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the deviceAndAppManagementRoleDefinition objects. + /// List properties and relationships of the roleDefinition objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -100,7 +100,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new roleDefinition object. + /// Create a new deviceAndAppManagementRoleDefinition object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -126,7 +126,7 @@ public RoleDefinitionsRequestBuilder WithUrl(string rawUrl) { return new RoleDefinitionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the deviceAndAppManagementRoleDefinition objects. + /// List properties and relationships of the roleDefinition objects. /// public class RoleDefinitionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs index 66884a2a9ba..fe989ab4b91 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/DriveItemItemRequestBuilder.cs @@ -231,8 +231,8 @@ public GetActivitiesByIntervalWithStartDateTimeWithEndDateTimeWithIntervalReques return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.DriveItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the metadata for a driveItem by ID or path. You can also use update to move an item to another parent by updating the item's parentReference property. - /// Find more info here + /// To move a DriveItem to a new parent item, your app requests to update the parentReference of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -293,7 +293,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the metadata for a driveItem by ID or path. You can also use update to move an item to another parent by updating the item's parentReference property. + /// To move a DriveItem to a new parent item, your app requests to update the parentReference of the DriveItem to move. This is a special case of the Update method.Your app can combine moving an item to a new container and updating other properties of the item into a single request. Items cannot be moved between Drives using this request. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs index a1b11b44bba..5db6844fc21 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Names/Item/RangeNamespace/RangeRequestBuilder.cs @@ -29,8 +29,8 @@ public RangeRequestBuilder(Dictionary pathParameters, IRequestAd public RangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()", rawUrl) { } /// - /// Retrieve the properties and relationships of range object. - /// Find more info here + /// Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of range object. + /// Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER 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 7ffb4cd416c..9fcda74ca37 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 @@ -53,7 +53,7 @@ public NamesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base } /// /// Retrieve a list of nameditem objects. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. 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 62cd7971e96..89464f4ace3 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 @@ -49,7 +49,7 @@ public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Retrieve a list of tablecolumn objects. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. 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 2352767f72e..4319b0e2175 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 @@ -49,7 +49,7 @@ public RowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( } /// /// Retrieve a list of tablerow objects. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. 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 b0bb1aaba53..4d182828a82 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 @@ -50,7 +50,7 @@ public ChartsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : bas } /// /// Retrieve a list of chart objects. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs index 7e0d519276d..b137aee7b22 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Names/Item/RangeNamespace/RangeRequestBuilder.cs @@ -29,8 +29,8 @@ public RangeRequestBuilder(Dictionary pathParameters, IRequestAd public RangeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/worksheets/{workbookWorksheet%2Did}/names/{workbookNamedItem%2Did}/range()", rawUrl) { } /// - /// Retrieve the properties and relationships of range object. - /// Find more info here + /// Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -49,7 +49,7 @@ public async Task GetAsync(Action(requestInfo, WorkbookRange.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve the properties and relationships of range object. + /// Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER 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 1f94201e2a1..69f4efbef31 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 @@ -49,7 +49,7 @@ public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Retrieve a list of tablecolumn objects. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. 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 dc17b578044..783892917d9 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 @@ -49,7 +49,7 @@ public RowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base( } /// /// Retrieve a list of tablerow objects. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/GradingCategories/GradingCategoriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/GradingCategories/GradingCategoriesRequestBuilder.cs index 1c0bd14e7bf..f0a33c37ff6 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/GradingCategories/GradingCategoriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/AssignmentSettings/GradingCategories/GradingCategoriesRequestBuilder.cs @@ -42,7 +42,7 @@ public GradingCategoriesRequestBuilder(Dictionary pathParameters public GradingCategoriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignmentSettings/gradingCategories{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get gradingCategories from education + /// When set, enables users to weight assignments differently when computing a class average grade. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task PostAsync(EducationGradingCategory b return await RequestAdapter.SendAsync(requestInfo, EducationGradingCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get gradingCategories from education + /// When set, enables users to weight assignments differently when computing a class average grade. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -124,7 +124,7 @@ public GradingCategoriesRequestBuilder WithUrl(string rawUrl) { return new GradingCategoriesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get gradingCategories from education + /// When set, enables users to weight assignments differently when computing a class average grade. /// public class GradingCategoriesRequestBuilderGetQueryParameters { /// Include count of items 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 ef1e3c76166..43f4030570f 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 @@ -48,7 +48,7 @@ public async Task DeleteAsync(Action - /// Get gradingCategories from education + /// When set, enables users to weight assignments differently when computing a class average grade. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -104,7 +104,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get gradingCategories from education + /// When set, enables users to weight assignments differently when computing a class average grade. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -152,7 +152,7 @@ public EducationGradingCategoryItemRequestBuilder WithUrl(string rawUrl) { public class EducationGradingCategoryItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Get gradingCategories from education + /// When set, enables users to weight assignments differently when computing a class average grade. /// public class EducationGradingCategoryItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.cs index fbc13ac2556..553310a3732 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/AssignmentsRequestBuilder.cs @@ -47,7 +47,7 @@ public AssignmentsRequestBuilder(Dictionary pathParameters, IReq public AssignmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application executing with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. + /// Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher, or an application running with application permissions, can see all assignment objects for the class. Students can only see assignments that are assigned to them. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -89,7 +89,7 @@ public async Task PostAsync(EducationAssignment body, Actio return await RequestAdapter.SendAsync(requestInfo, EducationAssignment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application executing with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. + /// Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher, or an application running with application permissions, can see all assignment objects for the class. Students can only see assignments that are assigned to them. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -131,7 +131,7 @@ public AssignmentsRequestBuilder WithUrl(string rawUrl) { return new AssignmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application executing with application permissions can see all assignment objects for the class. Students can only see assignments that are assigned to them. + /// Retrieve a list of assignment objects. Only teachers, students, and applications with application permissions can perform this operation. A teacher, or an application running with application permissions, can see all assignment objects for the class. Students can only see assignments that are assigned to them. /// public class AssignmentsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.cs index c6da2e60aed..6e3752662c9 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.cs @@ -29,7 +29,27 @@ public GradingCategoryRequestBuilder(Dictionary pathParameters, public GradingCategoryRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/gradingCategory{?%24select,%24expand}", rawUrl) { } /// - /// Get gradingCategory from education + /// Remove a gradingCategory from an educationAssignment. Only teachers can perform this operation. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#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> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// When set, enables users to weight assignments differently when computing a class average grade. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +68,23 @@ public async Task GetAsync(Action(requestInfo, EducationGradingCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get gradingCategory from education + /// Remove a gradingCategory from an educationAssignment. Only teachers can perform this operation. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// When set, enables users to weight assignments differently when computing a class average grade. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -71,7 +107,13 @@ public GradingCategoryRequestBuilder WithUrl(string rawUrl) { return new GradingCategoryRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get gradingCategory from education + /// Configuration for the 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 GradingCategoryRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// When set, enables users to weight assignments differently when computing a class average grade. /// public class GradingCategoryRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs index 892c3509b13..e0762ca574b 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs @@ -42,7 +42,7 @@ public OutcomesRequestBuilder(Dictionary pathParameters, IReques public OutcomesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) has an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) has both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), has an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, has an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource has an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(EducationOutcome body, Action(requestInfo, EducationOutcome.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) has an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) has both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), has an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, has an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource has an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -126,7 +126,7 @@ public OutcomesRequestBuilder WithUrl(string rawUrl) { return new OutcomesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) has an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) has both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), has an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, has an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource has an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. /// public class OutcomesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs index 88b95c88daf..ed9a116c380 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public ResourcesRequestBuilder(Dictionary pathParameters, IReque public ResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this resource was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that were officially submitted for grading. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(EducationSubmissionReso return await RequestAdapter.SendAsync(requestInfo, EducationSubmissionResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this resource was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that were officially submitted for grading. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -126,7 +126,7 @@ public ResourcesRequestBuilder WithUrl(string rawUrl) { return new ResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this resource was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that were officially submitted for grading. /// public class ResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs index d7d4613023c..a9b524d7449 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public SubmittedResourcesRequestBuilder(Dictionary pathParameter public SubmittedResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + /// List the educationSubmissionResource objects that were officially submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission can't change the submitted list without resubmitting the assignment. This resource is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(EducationSubmissionReso return await RequestAdapter.SendAsync(requestInfo, EducationSubmissionResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + /// List the educationSubmissionResource objects that were officially submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission can't change the submitted list without resubmitting the assignment. This resource is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public SubmittedResourcesRequestBuilder WithUrl(string rawUrl) { return new SubmittedResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + /// List the educationSubmissionResource objects that were officially submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission can't change the submitted list without resubmitting the assignment. This resource is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. /// public class SubmittedResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs index e97ca16c07f..cb88f6361a6 100644 --- a/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Classes/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SubmissionsRequestBuilder(Dictionary pathParameters, IReq public SubmissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/classes/{educationClass%2Did}/assignments/{educationAssignment%2Did}/submissions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they're associated with. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(EducationSubmission body, Actio return await RequestAdapter.SendAsync(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they're associated with. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public SubmissionsRequestBuilder WithUrl(string rawUrl) { return new SubmissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they're associated with. /// public class SubmissionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.cs index 25e5900ae0b..801da8bf78d 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.cs @@ -29,7 +29,27 @@ public GradingCategoryRequestBuilder(Dictionary pathParameters, public GradingCategoryRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/gradingCategory{?%24select,%24expand}", rawUrl) { } /// - /// Get gradingCategory from education + /// Remove a gradingCategory from an educationAssignment. Only teachers can perform this operation. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#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> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// When set, enables users to weight assignments differently when computing a class average grade. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +68,23 @@ public async Task GetAsync(Action(requestInfo, EducationGradingCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get gradingCategory from education + /// Remove a gradingCategory from an educationAssignment. Only teachers can perform this operation. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// When set, enables users to weight assignments differently when computing a class average grade. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -71,7 +107,13 @@ public GradingCategoryRequestBuilder WithUrl(string rawUrl) { return new GradingCategoryRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get gradingCategory from education + /// Configuration for the 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 GradingCategoryRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// When set, enables users to weight assignments differently when computing a class average grade. /// public class GradingCategoryRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs index 5d831c6c2ec..6570a7d6f88 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs @@ -42,7 +42,7 @@ public OutcomesRequestBuilder(Dictionary pathParameters, IReques public OutcomesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) has an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) has both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), has an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, has an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource has an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(EducationOutcome body, Action(requestInfo, EducationOutcome.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) has an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) has both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), has an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, has an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource has an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -126,7 +126,7 @@ public OutcomesRequestBuilder WithUrl(string rawUrl) { return new OutcomesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) has an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) has both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), has an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, has an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource has an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. /// public class OutcomesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs index ea1ced0227f..fa61a48b819 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public ResourcesRequestBuilder(Dictionary pathParameters, IReque public ResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this resource was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that were officially submitted for grading. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(EducationSubmissionReso return await RequestAdapter.SendAsync(requestInfo, EducationSubmissionResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this resource was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that were officially submitted for grading. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -126,7 +126,7 @@ public ResourcesRequestBuilder WithUrl(string rawUrl) { return new ResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this resource was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that were officially submitted for grading. /// public class ResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs index aa03388e75b..1952dddb974 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public SubmittedResourcesRequestBuilder(Dictionary pathParameter public SubmittedResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + /// List the educationSubmissionResource objects that were officially submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission can't change the submitted list without resubmitting the assignment. This resource is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(EducationSubmissionReso return await RequestAdapter.SendAsync(requestInfo, EducationSubmissionResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + /// List the educationSubmissionResource objects that were officially submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission can't change the submitted list without resubmitting the assignment. This resource is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public SubmittedResourcesRequestBuilder WithUrl(string rawUrl) { return new SubmittedResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + /// List the educationSubmissionResource objects that were officially submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission can't change the submitted list without resubmitting the assignment. This resource is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. /// public class SubmittedResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs index a8f57c5d4fe..fa29bd42b36 100644 --- a/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Me/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SubmissionsRequestBuilder(Dictionary pathParameters, IReq public SubmissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/me/assignments/{educationAssignment%2Did}/submissions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they're associated with. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(EducationSubmission body, Actio return await RequestAdapter.SendAsync(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they're associated with. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public SubmissionsRequestBuilder WithUrl(string rawUrl) { return new SubmissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they're associated with. /// public class SubmissionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.cs index 0c5ec8a0c08..b262d77bdd9 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/GradingCategory/GradingCategoryRequestBuilder.cs @@ -29,7 +29,27 @@ public GradingCategoryRequestBuilder(Dictionary pathParameters, public GradingCategoryRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/gradingCategory{?%24select,%24expand}", rawUrl) { } /// - /// Get gradingCategory from education + /// Remove a gradingCategory from an educationAssignment. Only teachers can perform this operation. + /// Find more info here + /// + /// Cancellation token to use when cancelling requests + /// Configuration for the request such as headers, query parameters, and middleware options. +#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> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); + } + /// + /// When set, enables users to weight assignments differently when computing a class average grade. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -48,7 +68,23 @@ public async Task GetAsync(Action(requestInfo, EducationGradingCategory.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get gradingCategory from education + /// Remove a gradingCategory from an educationAssignment. Only teachers can perform this operation. + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToDeleteRequestInformation(Action>? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); + requestInfo.Configure(requestConfiguration); + requestInfo.Headers.TryAdd("Accept", "application/json"); + return requestInfo; + } + /// + /// When set, enables users to weight assignments differently when computing a class average grade. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -71,7 +107,13 @@ public GradingCategoryRequestBuilder WithUrl(string rawUrl) { return new GradingCategoryRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get gradingCategory from education + /// Configuration for the 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 GradingCategoryRequestBuilderDeleteRequestConfiguration : RequestConfiguration { + } + /// + /// When set, enables users to weight assignments differently when computing a class average grade. /// public class GradingCategoryRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs index 8768817d193..77d0c22baf9 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Outcomes/OutcomesRequestBuilder.cs @@ -42,7 +42,7 @@ public OutcomesRequestBuilder(Dictionary pathParameters, IReques public OutcomesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/outcomes{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) has an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) has both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), has an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, has an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource has an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(EducationOutcome body, Action(requestInfo, EducationOutcome.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) has an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) has both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), has an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, has an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource has an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -126,7 +126,7 @@ public OutcomesRequestBuilder WithUrl(string rawUrl) { return new OutcomesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) will have an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) will have both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), will have an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, will have an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource will have an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. + /// Retrieve a list of educationOutcome objects. There are four types of outcomes: educationPointsOutcome, educationFeedbackOutcome, educationRubricOutcome, and educationFeedbackResourceOutcome. Only teachers, students, and applications with application permissions can perform this operation. A submission for a credit assignment (one that has no point value and no rubric) has an educationFeedbackOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for a points assignment (one that has a point value assigned) has both an educationFeedbackOutcome and an educationPointsOutcome. A submission for an assignment with an attached rubric, if the rubric is a credit rubric (no points), has an educationFeedbackOutcome and an educationRubricOutcome. (It might also return an educationPointsOutcome, but that outcome is ignored.) A submission for an assignment with an attached rubric, if the rubric is a points rubric, has an educationFeedbackOutcome, an educationPointsOutcome, and an educationRubricOutcome. A submission for a feedback resource has an educationFeedbackResourceOutcome. All outcome types have a regular and a published property appropriate to that type of outcome; for example, points and publishedPoints, feedback and publishedFeedback. The regular property is the most recent value updated by the teacher; the published property is the most recent value returned to the student. /// public class OutcomesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs index b3425b089d5..3fd99c1a92d 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/Resources/ResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public ResourcesRequestBuilder(Dictionary pathParameters, IReque public ResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/resources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this resource was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that were officially submitted for grading. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -84,7 +84,7 @@ public async Task PostAsync(EducationSubmissionReso return await RequestAdapter.SendAsync(requestInfo, EducationSubmissionResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this resource was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that were officially submitted for grading. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -126,7 +126,7 @@ public ResourcesRequestBuilder WithUrl(string rawUrl) { return new ResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that have officially been submitted to be graded. + /// List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this resource was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that were officially submitted for grading. /// public class ResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs index aa9f9fa59e0..8f0285be752 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/Item/SubmittedResources/SubmittedResourcesRequestBuilder.cs @@ -42,7 +42,7 @@ public SubmittedResourcesRequestBuilder(Dictionary pathParameter public SubmittedResourcesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions/{educationSubmission%2Did}/submittedResources{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + /// List the educationSubmissionResource objects that were officially submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission can't change the submitted list without resubmitting the assignment. This resource is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(EducationSubmissionReso return await RequestAdapter.SendAsync(requestInfo, EducationSubmissionResource.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + /// List the educationSubmissionResource objects that were officially submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission can't change the submitted list without resubmitting the assignment. This resource is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public SubmittedResourcesRequestBuilder WithUrl(string rawUrl) { return new SubmittedResourcesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List the educationSubmissionResource objects that have officially been submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission cannot change the submitted list without resubmitting the assignment. This is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. + /// List the educationSubmissionResource objects that were officially submitted for grading. Only teachers, students, and applications with application permissions can perform this operation. The student who owns the submission can't change the submitted list without resubmitting the assignment. This resource is a wrapper around the real resource and can contain a pointer back to the actual assignment resource if this resource was copied from the assignment. /// public class SubmittedResourcesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs index 91a11f709e2..08c7a585239 100644 --- a/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Education/Users/Item/Assignments/Item/Submissions/SubmissionsRequestBuilder.cs @@ -42,7 +42,7 @@ public SubmissionsRequestBuilder(Dictionary pathParameters, IReq public SubmissionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/education/users/{educationUser%2Did}/assignments/{educationAssignment%2Did}/submissions{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they're associated with. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -83,7 +83,7 @@ public async Task PostAsync(EducationSubmission body, Actio return await RequestAdapter.SendAsync(requestInfo, EducationSubmission.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they're associated with. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public SubmissionsRequestBuilder WithUrl(string rawUrl) { return new SubmissionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they are associated with. + /// List all the submissions associated with an assignment. Only teachers, students, and applications with application permissions can perform this operation. A teacher or an application with application permissions can get all the submissions while a student can only get submissions that they're associated with. /// public class SubmissionsRequestBuilderGetQueryParameters { /// Include count of items 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 039b2ffe48e..e49cb0dd521 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/ConversationItemRequestBuilder.cs @@ -35,7 +35,7 @@ public ConversationItemRequestBuilder(string rawUrl, IRequestAdapter requestAdap } /// /// Delete conversation. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -54,8 +54,8 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of conversation object. - /// Find more info here + /// The group's conversations. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -90,7 +90,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of conversation object. + /// The group's conversations. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -119,7 +119,7 @@ public ConversationItemRequestBuilder WithUrl(string rawUrl) { public class ConversationItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Retrieve the properties and relationships of conversation object. + /// The group's conversations. /// public class ConversationItemRequestBuilderGetQueryParameters { /// Select properties to be returned diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs index 5a8d71683b9..73591ca6bcc 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/PostsRequestBuilder.cs @@ -42,8 +42,8 @@ public PostsRequestBuilder(Dictionary pathParameters, IRequestAd public PostsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/conversations/{conversation%2Did}/threads/{conversationThread%2Did}/posts{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the posts of the specified thread. 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 + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PostCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -85,7 +85,7 @@ public PostsRequestBuilder WithUrl(string rawUrl) { return new PostsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. /// public class PostsRequestBuilderGetQueryParameters { /// Include count of items 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 2709dccd85e..99c82bcb178 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 @@ -88,8 +88,8 @@ public async Task DeleteAsync(Action - /// Returns the metadata for a [list][]. - /// Find more info here + /// Get a list of rich long-running operations associated with a list. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Returns the metadata for a [list][]. + /// Get a list of rich long-running operations associated with a list. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -193,7 +193,7 @@ public ListItemRequestBuilder WithUrl(string rawUrl) { public class ListItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Returns the metadata for a [list][]. + /// Get a list of rich long-running operations associated with 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 2397c019235..c5af64acddc 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 @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. - /// Find more info here + /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/Channels/Item/Messages/MessagesRequestBuilder.cs index 9492c78f3af..4c3efa85798 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 @@ -67,8 +67,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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 21a4c801c5c..2a01509eac2 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 @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. - /// Find more info here + /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs index 8c9779bd993..f71eee9623a 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 @@ -67,8 +67,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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationPostRequestBody.cs index 976ec163774..ef17eb7b4ba 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Team/SendActivityNotification/SendActivityNotificationPostRequestBody.cs @@ -61,6 +61,20 @@ public TeamworkNotificationRecipient Recipient { get { return BackingStore?.Get("recipient"); } set { BackingStore?.Set("recipient", value); } } +#endif + /// The teamsAppId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TeamsAppId { + get { return BackingStore?.Get("teamsAppId"); } + set { BackingStore?.Set("teamsAppId", value); } + } +#nullable restore +#else + public string TeamsAppId { + get { return BackingStore?.Get("teamsAppId"); } + set { BackingStore?.Set("teamsAppId", value); } + } #endif /// The templateParameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,6 +128,7 @@ public virtual IDictionary> GetFieldDeserializers() { {"chainId", n => { ChainId = n.GetLongValue(); } }, {"previewText", n => { PreviewText = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, {"recipient", n => { Recipient = n.GetObjectValue(TeamworkNotificationRecipient.CreateFromDiscriminatorValue); } }, + {"teamsAppId", n => { TeamsAppId = n.GetStringValue(); } }, {"templateParameters", n => { TemplateParameters = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.KeyValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, {"topic", n => { Topic = n.GetObjectValue(TeamworkActivityTopic.CreateFromDiscriminatorValue); } }, }; @@ -128,6 +143,7 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteLongValue("chainId", ChainId); writer.WriteObjectValue("previewText", PreviewText); writer.WriteObjectValue("recipient", Recipient); + writer.WriteStringValue("teamsAppId", TeamsAppId); writer.WriteCollectionOfObjectValues("templateParameters", TemplateParameters); writer.WriteObjectValue("topic", Topic); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs index db89a0cb9b2..fe8f139738c 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/PostsRequestBuilder.cs @@ -42,8 +42,8 @@ public PostsRequestBuilder(Dictionary pathParameters, IRequestAd public PostsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/threads/{conversationThread%2Did}/posts{?%24top,%24skip,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the posts of the specified thread. 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 + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -62,7 +62,7 @@ public async Task GetAsync(Action(requestInfo, PostCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -85,7 +85,7 @@ public PostsRequestBuilder WithUrl(string rawUrl) { return new PostsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the posts of the specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. + /// Get the properties and relationships of a post in a specified thread. You can specify both the parent conversation and the thread, or, you can specify the thread without referencing the parent conversation. Since the post resource supports extensions, you can also use the GET operation to get custom properties and extension data in a post instance. /// public class PostsRequestBuilderGetQueryParameters { /// Include count of items 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 046d4dbe4d9..24ed0b2ba12 100644 --- a/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Identity/ConditionalAccess/NamedLocations/Item/NamedLocationItemRequestBuilder.cs @@ -49,8 +49,8 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of a namedLocation object. - /// Find more info here + /// Retrieve the properties and relationships of an ipNamedLocation object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, NamedLocation.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an ipNamedLocation object. - /// Find more info here + /// Update the properties of a countryNamedLocation object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -107,7 +107,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of a namedLocation object. + /// Retrieve the properties and relationships of an ipNamedLocation object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an ipNamedLocation object. + /// Update the properties of a countryNamedLocation object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. @@ -155,7 +155,7 @@ public NamedLocationItemRequestBuilder WithUrl(string rawUrl) { public class NamedLocationItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Retrieve the properties and relationships of a namedLocation object. + /// Retrieve the properties and relationships of an ipNamedLocation object. /// public class NamedLocationItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.cs index 3f206809d48..822e8e04d9b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/TermsOfUse/Agreements/Item/AgreementItemRequestBuilder.cs @@ -64,8 +64,8 @@ public async Task DeleteAsync(Action - /// Retrieve the properties and relationships of an agreement object. - /// Find more info here + /// Retrieve all files related to an agreement. This includes the default file and all localized files. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -122,7 +122,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve the properties and relationships of an agreement object. + /// Retrieve all files related to an agreement. This includes the default file and all localized files. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -170,7 +170,7 @@ public AgreementItemRequestBuilder WithUrl(string rawUrl) { public class AgreementItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Retrieve the properties and relationships of an agreement object. + /// Retrieve all files related to an agreement. This includes the default file and all localized files. /// public class AgreementItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs index 3015ad6b298..41cf211dcc4 100644 --- a/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityProtection/RiskyUsers/Item/History/HistoryRequestBuilder.cs @@ -42,8 +42,8 @@ public HistoryRequestBuilder(Dictionary pathParameters, IRequest public HistoryRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityProtection/riskyUsers/{riskyUser%2Did}/history{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Get the riskyUserHistoryItems from the history navigation property. - /// Find more info here + /// Read the properties and relationships of a riskyUserHistoryItem object. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -83,7 +83,7 @@ public async Task PostAsync(RiskyUserHistoryItem body, Act return await RequestAdapter.SendAsync(requestInfo, RiskyUserHistoryItem.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the riskyUserHistoryItems from the history navigation property. + /// Read the properties and relationships of a riskyUserHistoryItem object. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -125,7 +125,7 @@ public HistoryRequestBuilder WithUrl(string rawUrl) { return new HistoryRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the riskyUserHistoryItems from the history navigation property. + /// Read the properties and relationships of a riskyUserHistoryItem object. /// public class HistoryRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs index e173cfc8dcf..e6637e71c12 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs @@ -37,17 +37,17 @@ public EventItemRequestBuilder this[string position] { get { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CalendarViewRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", pathParameters) { + public CalendarViewRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView{?startDateTime*,endDateTime*,%24top,%24skip,%24filter,%24count,%24orderby,%24select}", pathParameters) { } /// /// Instantiates a new CalendarViewRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CalendarViewRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { + public CalendarViewRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView{?startDateTime*,endDateTime*,%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar (../me/calendarView) or some other calendar of the user's. + /// The calendar view for the calendar. Navigation property. Read-only. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar (../me/calendarView) or some other calendar of the user's. + /// The calendar view for the calendar. Navigation property. Read-only. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -90,12 +90,22 @@ public CalendarViewRequestBuilder WithUrl(string rawUrl) { return new CalendarViewRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar (../me/calendarView) or some other calendar of the user's. + /// The calendar view for the calendar. Navigation property. Read-only. /// public class CalendarViewRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] public bool? Count { get; set; } + /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -129,6 +139,16 @@ public class CalendarViewRequestBuilderGetQueryParameters { /// Skip the first n items [QueryParameter("%24skip")] public int? Skip { get; set; } + /// The start date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T19:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif /// Show only the first n items [QueryParameter("%24top")] public int? Top { get; set; } diff --git a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs index 2737293b92b..57eaff9bcd3 100644 --- a/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/CalendarGroups/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs @@ -74,14 +74,14 @@ public class EventItemRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public EventItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}{?%24select}", pathParameters) { + public EventItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}{?startDateTime*,endDateTime*,%24select}", pathParameters) { } /// /// Instantiates a new EventItemRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public EventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}{?%24select}", rawUrl) { + public EventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}{?startDateTime*,endDateTime*,%24select}", rawUrl) { } /// /// The calendar view for the calendar. Navigation property. Read-only. @@ -129,6 +129,16 @@ public EventItemRequestBuilder WithUrl(string rawUrl) { /// The calendar view for the calendar. Navigation property. Read-only. /// public class EventItemRequestBuilderGetQueryParameters { + /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -138,6 +148,16 @@ public class EventItemRequestBuilderGetQueryParameters { #else [QueryParameter("%24select")] public string[] Select { get; set; } +#endif + /// The start date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T19:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } #endif } /// diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 26fca50fe21..c2dd88c6cd4 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -49,8 +49,8 @@ public async Task DeleteAsync(Action - /// Retrieve a conversationMember from a chat or channel. - /// Find more info here + /// Retrieve a conversationMember from a chat. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -106,7 +106,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a conversationMember from a chat or channel. + /// Retrieve a conversationMember from a chat. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -154,7 +154,7 @@ public ConversationMemberItemRequestBuilder WithUrl(string rawUrl) { public class ConversationMemberItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Retrieve a conversationMember from a chat or channel. + /// Retrieve a conversationMember from a chat. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs index 7763fe74871..2e6b7c16599 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs index a55afd05af7..1578bdf9d49 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs @@ -61,6 +61,20 @@ public TeamworkNotificationRecipient Recipient { get { return BackingStore?.Get("recipient"); } set { BackingStore?.Set("recipient", value); } } +#endif + /// The teamsAppId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TeamsAppId { + get { return BackingStore?.Get("teamsAppId"); } + set { BackingStore?.Set("teamsAppId", value); } + } +#nullable restore +#else + public string TeamsAppId { + get { return BackingStore?.Get("teamsAppId"); } + set { BackingStore?.Set("teamsAppId", value); } + } #endif /// The templateParameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,6 +128,7 @@ public virtual IDictionary> GetFieldDeserializers() { {"chainId", n => { ChainId = n.GetLongValue(); } }, {"previewText", n => { PreviewText = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, {"recipient", n => { Recipient = n.GetObjectValue(TeamworkNotificationRecipient.CreateFromDiscriminatorValue); } }, + {"teamsAppId", n => { TeamsAppId = n.GetStringValue(); } }, {"templateParameters", n => { TemplateParameters = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.KeyValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, {"topic", n => { Topic = n.GetObjectValue(TeamworkActivityTopic.CreateFromDiscriminatorValue); } }, }; @@ -128,6 +143,7 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteLongValue("chainId", ChainId); writer.WriteObjectValue("previewText", PreviewText); writer.WriteObjectValue("recipient", Recipient); + writer.WriteStringValue("teamsAppId", TeamsAppId); writer.WriteCollectionOfObjectValues("templateParameters", TemplateParameters); writer.WriteObjectValue("topic", Topic); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Me/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Events/EventsRequestBuilder.cs index dfe6cab5f94..a3316d261b9 100644 --- a/src/Microsoft.Graph/Generated/Me/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Events/EventsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. - /// Find more info here + /// Create one or more multi-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources are supported: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. + /// Create one or more multi-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources are supported: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 8f58824daae..281a57f5407 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. - /// Find more info here + /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index bd0b405b623..fd4dcb48c20 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -67,8 +67,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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index 1c6fcf542e8..d449ea591ea 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. - /// Find more info here + /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs index 0874e463dbd..2c3b60437c0 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -67,8 +67,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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs index 4e983b6ab4d..cca07c36540 100644 --- a/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs @@ -61,6 +61,20 @@ public TeamworkNotificationRecipient Recipient { get { return BackingStore?.Get("recipient"); } set { BackingStore?.Set("recipient", value); } } +#endif + /// The teamsAppId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TeamsAppId { + get { return BackingStore?.Get("teamsAppId"); } + set { BackingStore?.Set("teamsAppId", value); } + } +#nullable restore +#else + public string TeamsAppId { + get { return BackingStore?.Get("teamsAppId"); } + set { BackingStore?.Set("teamsAppId", value); } + } #endif /// The templateParameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,6 +128,7 @@ public virtual IDictionary> GetFieldDeserializers() { {"chainId", n => { ChainId = n.GetLongValue(); } }, {"previewText", n => { PreviewText = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, {"recipient", n => { Recipient = n.GetObjectValue(TeamworkNotificationRecipient.CreateFromDiscriminatorValue); } }, + {"teamsAppId", n => { TeamsAppId = n.GetStringValue(); } }, {"templateParameters", n => { TemplateParameters = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.KeyValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, {"topic", n => { Topic = n.GetObjectValue(TeamworkActivityTopic.CreateFromDiscriminatorValue); } }, }; @@ -128,6 +143,7 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteLongValue("chainId", ChainId); writer.WriteObjectValue("previewText", PreviewText); writer.WriteObjectValue("recipient", Recipient); + writer.WriteStringValue("teamsAppId", TeamsAppId); writer.WriteCollectionOfObjectValues("templateParameters", TemplateParameters); writer.WriteObjectValue("topic", Topic); writer.WriteAdditionalData(AdditionalData); 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 ebc6b467c8a..b7096123ec6 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 @@ -47,8 +47,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{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a message. - /// Find more info here + /// Retrieve a list of attachment objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -131,7 +131,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items 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 0fab6dd3e88..731a6077aed 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 @@ -47,8 +47,8 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/attachments{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a message. - /// Find more info here + /// Retrieve a list of attachment objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -131,7 +131,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// 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 da80c355cf5..72dd234d7e8 100644 --- a/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs @@ -396,8 +396,8 @@ public ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder ExportDevic return new ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder(PathParameters, RequestAdapter, skip, top); } /// - /// 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. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -448,7 +448,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. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -490,7 +490,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. /// 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 163563fb8d4..b893bd55d6a 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -47,8 +47,8 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}/attachments{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a message. - /// Find more info here + /// Retrieve a list of attachment objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -131,7 +131,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// 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 b2d545fcb2e..7c1ff962724 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/MessageItemRequestBuilder.cs @@ -89,8 +89,8 @@ public MessageItemRequestBuilder(Dictionary pathParameters, IReq public MessageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/messages/{message%2Did}{?includeHiddenMessages*,%24select,%24expand}", rawUrl) { } /// - /// Delete a message in the specified user's mailbox, or delete a relationship of the message. - /// Find more info here + /// Delete eventMessage. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -110,7 +110,7 @@ public async Task DeleteAsync(Action /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -129,8 +129,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a message object. - /// Find more info here + /// Update the properties of an eventMessage object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -151,7 +151,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a message in the specified user's mailbox, or delete a relationship of the message. + /// Delete eventMessage. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -183,7 +183,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a message object. + /// Update the properties of an eventMessage object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs index 3df5352cea7..51b1457e195 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs @@ -29,7 +29,7 @@ public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Get media content for the navigation property messages from me - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs index 1b163c0c94d..c1eeb01bc43 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs @@ -48,7 +48,7 @@ public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b } /// /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, MessageCollectionResponse.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 draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,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 draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Me/Teamwork/SendActivityNotification/SendActivityNotificationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Me/Teamwork/SendActivityNotification/SendActivityNotificationPostRequestBody.cs index 7d6afc6d9f1..06909b6bb6b 100644 --- a/src/Microsoft.Graph/Generated/Me/Teamwork/SendActivityNotification/SendActivityNotificationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Me/Teamwork/SendActivityNotification/SendActivityNotificationPostRequestBody.cs @@ -47,6 +47,20 @@ public ItemBody PreviewText { get { return BackingStore?.Get("previewText"); } set { BackingStore?.Set("previewText", value); } } +#endif + /// The teamsAppId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TeamsAppId { + get { return BackingStore?.Get("teamsAppId"); } + set { BackingStore?.Set("teamsAppId", value); } + } +#nullable restore +#else + public string TeamsAppId { + get { return BackingStore?.Get("teamsAppId"); } + set { BackingStore?.Set("teamsAppId", value); } + } #endif /// The templateParameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -99,6 +113,7 @@ public virtual IDictionary> GetFieldDeserializers() { {"activityType", n => { ActivityType = n.GetStringValue(); } }, {"chainId", n => { ChainId = n.GetLongValue(); } }, {"previewText", n => { PreviewText = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, + {"teamsAppId", n => { TeamsAppId = n.GetStringValue(); } }, {"templateParameters", n => { TemplateParameters = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.KeyValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, {"topic", n => { Topic = n.GetObjectValue(TeamworkActivityTopic.CreateFromDiscriminatorValue); } }, }; @@ -112,6 +127,7 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteStringValue("activityType", ActivityType); writer.WriteLongValue("chainId", ChainId); writer.WriteObjectValue("previewText", PreviewText); + writer.WriteStringValue("teamsAppId", TeamsAppId); writer.WriteCollectionOfObjectValues("templateParameters", TemplateParameters); writer.WriteObjectValue("topic", Topic); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageResource.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageResource.cs index 76f094c41a5..a3029bf797d 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageResource.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageResource.cs @@ -6,6 +6,20 @@ using System; namespace Microsoft.Graph.Models { public class AccessPackageResource : Entity, IParsable { + /// The attributes property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Attributes { + get { return BackingStore?.Get?>("attributes"); } + set { BackingStore?.Set("attributes", value); } + } +#nullable restore +#else + public List Attributes { + get { return BackingStore?.Get>("attributes"); } + set { BackingStore?.Set("attributes", value); } + } +#endif /// The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. public DateTimeOffset? CreatedDateTime { get { return BackingStore?.Get("createdDateTime"); } @@ -127,6 +141,7 @@ public List Scopes { /// public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { + {"attributes", n => { Attributes = n.GetCollectionOfObjectValues(AccessPackageResourceAttribute.CreateFromDiscriminatorValue)?.ToList(); } }, {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, {"description", n => { Description = n.GetStringValue(); } }, {"displayName", n => { DisplayName = n.GetStringValue(); } }, @@ -145,6 +160,7 @@ public override IDictionary> GetFieldDeserializers() public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); + writer.WriteCollectionOfObjectValues("attributes", Attributes); writer.WriteDateTimeOffsetValue("createdDateTime", CreatedDateTime); writer.WriteStringValue("description", Description); writer.WriteStringValue("displayName", DisplayName); diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceAttribute.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceAttribute.cs new file mode 100644 index 00000000000..2bb54ef8f7f --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceAttribute.cs @@ -0,0 +1,112 @@ +// +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.Models { + public class AccessPackageResourceAttribute : 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 destination property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public AccessPackageResourceAttributeDestination? Destination { + get { return BackingStore?.Get("destination"); } + set { BackingStore?.Set("destination", value); } + } +#nullable restore +#else + public AccessPackageResourceAttributeDestination Destination { + get { return BackingStore?.Get("destination"); } + set { BackingStore?.Set("destination", value); } + } +#endif + /// The name property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Name { + get { return BackingStore?.Get("name"); } + set { BackingStore?.Set("name", value); } + } +#nullable restore +#else + public string Name { + get { return BackingStore?.Get("name"); } + set { BackingStore?.Set("name", 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 + /// The source property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public AccessPackageResourceAttributeSource? Source { + get { return BackingStore?.Get("source"); } + set { BackingStore?.Set("source", value); } + } +#nullable restore +#else + public AccessPackageResourceAttributeSource Source { + get { return BackingStore?.Get("source"); } + set { BackingStore?.Set("source", value); } + } +#endif + /// + /// Instantiates a new accessPackageResourceAttribute and sets the default values. + /// + public AccessPackageResourceAttribute() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static AccessPackageResourceAttribute CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AccessPackageResourceAttribute(); + } + /// + /// The deserialization information for the current model + /// + public virtual IDictionary> GetFieldDeserializers() { + return new Dictionary> { + {"destination", n => { Destination = n.GetObjectValue(AccessPackageResourceAttributeDestination.CreateFromDiscriminatorValue); } }, + {"name", n => { Name = n.GetStringValue(); } }, + {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"source", n => { Source = n.GetObjectValue(AccessPackageResourceAttributeSource.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// 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.WriteObjectValue("destination", Destination); + writer.WriteStringValue("name", Name); + writer.WriteStringValue("@odata.type", OdataType); + writer.WriteObjectValue("source", Source); + writer.WriteAdditionalData(AdditionalData); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceAttributeDestination.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceAttributeDestination.cs new file mode 100644 index 00000000000..aaf9df36b18 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceAttributeDestination.cs @@ -0,0 +1,68 @@ +// +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.Models { + public class AccessPackageResourceAttributeDestination : 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 accessPackageResourceAttributeDestination and sets the default values. + /// + public AccessPackageResourceAttributeDestination() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static AccessPackageResourceAttributeDestination CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.accessPackageUserDirectoryAttributeStore" => new AccessPackageUserDirectoryAttributeStore(), + _ => new AccessPackageResourceAttributeDestination(), + }; + } + /// + /// The deserialization information for the current model + /// + 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/AccessPackageResourceAttributeQuestion.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceAttributeQuestion.cs new file mode 100644 index 00000000000..04c4c4d9c66 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceAttributeQuestion.cs @@ -0,0 +1,55 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class AccessPackageResourceAttributeQuestion : AccessPackageResourceAttributeSource, IParsable { + /// The question property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public AccessPackageQuestion? Question { + get { return BackingStore?.Get("question"); } + set { BackingStore?.Set("question", value); } + } +#nullable restore +#else + public AccessPackageQuestion Question { + get { return BackingStore?.Get("question"); } + set { BackingStore?.Set("question", value); } + } +#endif + /// + /// Instantiates a new accessPackageResourceAttributeQuestion and sets the default values. + /// + public AccessPackageResourceAttributeQuestion() : base() { + OdataType = "#microsoft.graph.accessPackageResourceAttributeQuestion"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AccessPackageResourceAttributeQuestion CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AccessPackageResourceAttributeQuestion(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"question", n => { Question = n.GetObjectValue(AccessPackageQuestion.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("question", Question); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageResourceAttributeSource.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceAttributeSource.cs new file mode 100644 index 00000000000..51410fee4c2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageResourceAttributeSource.cs @@ -0,0 +1,68 @@ +// +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.Models { + public class AccessPackageResourceAttributeSource : 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 accessPackageResourceAttributeSource and sets the default values. + /// + public AccessPackageResourceAttributeSource() { + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); + AdditionalData = new Dictionary(); + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static AccessPackageResourceAttributeSource CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + var mappingValue = parseNode.GetChildNode("@odata.type")?.GetStringValue(); + return mappingValue switch { + "#microsoft.graph.accessPackageResourceAttributeQuestion" => new AccessPackageResourceAttributeQuestion(), + _ => new AccessPackageResourceAttributeSource(), + }; + } + /// + /// The deserialization information for the current model + /// + 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/AccessPackageUserDirectoryAttributeStore.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageUserDirectoryAttributeStore.cs new file mode 100644 index 00000000000..b5496032d11 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageUserDirectoryAttributeStore.cs @@ -0,0 +1,39 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class AccessPackageUserDirectoryAttributeStore : AccessPackageResourceAttributeDestination, IParsable { + /// + /// Instantiates a new accessPackageUserDirectoryAttributeStore and sets the default values. + /// + public AccessPackageUserDirectoryAttributeStore() : base() { + OdataType = "#microsoft.graph.accessPackageUserDirectoryAttributeStore"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new AccessPackageUserDirectoryAttributeStore CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new AccessPackageUserDirectoryAttributeStore(); + } + /// + /// The deserialization information for the current model + /// + 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/Agreement.cs b/src/Microsoft.Graph/Generated/Models/Agreement.cs index cd5d3e4e3b0..cd874ea8c12 100644 --- a/src/Microsoft.Graph/Generated/Models/Agreement.cs +++ b/src/Microsoft.Graph/Generated/Models/Agreement.cs @@ -20,7 +20,7 @@ public List Acceptances { set { BackingStore?.Set("acceptances", value); } } #endif - /// Display name of the agreement. The display name is used for internal tracking of the agreement but is not shown to end users who view the agreement. Supports $filter (eq). + /// Display name of the agreement. The display name is used for internal tracking of the agreement but isn't shown to end users who view the agreement. Supports $filter (eq). #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { @@ -86,7 +86,7 @@ public Microsoft.Graph.Models.TermsExpiration TermsExpiration { set { BackingStore?.Set("termsExpiration", value); } } #endif - /// The duration after which the user must re-accept the terms of use. The value is represented in ISO 8601 format for durations. Supports $filter (eq). + /// The duration after which the user must reaccept the terms of use. The value is represented in ISO 8601 format for durations. Supports $filter (eq). public TimeSpan? UserReacceptRequiredFrequency { get { return BackingStore?.Get("userReacceptRequiredFrequency"); } set { BackingStore?.Set("userReacceptRequiredFrequency", value); } diff --git a/src/Microsoft.Graph/Generated/Models/Call.cs b/src/Microsoft.Graph/Generated/Models/Call.cs index 22dd25ba199..bddc77605f8 100644 --- a/src/Microsoft.Graph/Generated/Models/Call.cs +++ b/src/Microsoft.Graph/Generated/Models/Call.cs @@ -20,7 +20,7 @@ public List AudioRoutingGroups { set { BackingStore?.Set("audioRoutingGroups", value); } } #endif - /// The callback URL on which callbacks will be delivered. Must be https. + /// The callback URL on which callbacks are delivered. Must be an HTTPS URL. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? CallbackUri { @@ -34,7 +34,7 @@ public string CallbackUri { set { BackingStore?.Set("callbackUri", value); } } #endif - /// A unique identifier for all the participant calls in a conference or a unique identifier for two participant calls in a P2P call. This needs to be copied over from Microsoft.Graph.Call.CallChainId. + /// A unique identifier for all the participant calls in a conference or a unique identifier for two participant calls in a P2P call. This identifier must be copied over from Microsoft.Graph.Call.CallChainId. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? CallChainId { diff --git a/src/Microsoft.Graph/Generated/Models/ConditionalAccessApplications.cs b/src/Microsoft.Graph/Generated/Models/ConditionalAccessApplications.cs index 8c47f93cbdb..c2c28c6a3c9 100644 --- a/src/Microsoft.Graph/Generated/Models/ConditionalAccessApplications.cs +++ b/src/Microsoft.Graph/Generated/Models/ConditionalAccessApplications.cs @@ -28,7 +28,7 @@ public ConditionalAccessFilter ApplicationFilter { #endif /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// Can be one of the following: The list of client IDs (appId) explicitly excluded from the policy. Office365 - For the list of apps included in Office365, see Conditional Access target apps: Office 365 + /// Can be one of the following: The list of client IDs (appId) explicitly excluded from the policy. Office365 - For the list of apps included in Office365, see Apps included in Conditional Access Office 365 app suite #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? ExcludeApplications { @@ -42,7 +42,7 @@ public List ExcludeApplications { set { BackingStore?.Set("excludeApplications", value); } } #endif - /// Can be one of the following: The list of client IDs (appId) the policy applies to, unless explicitly excluded (in excludeApplications) All Office365 - For the list of apps included in Office365, see Conditional Access target apps: Office 365 + /// Can be one of the following: The list of client IDs (appId) the policy applies to, unless explicitly excluded (in excludeApplications) All Office365 - For the list of apps included in Office365, see Apps included in Conditional Access Office 365 app suite #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? IncludeApplications { diff --git a/src/Microsoft.Graph/Generated/Models/DeltaParticipants.cs b/src/Microsoft.Graph/Generated/Models/DeltaParticipants.cs index 59ef58870ba..5ce04926107 100644 --- a/src/Microsoft.Graph/Generated/Models/DeltaParticipants.cs +++ b/src/Microsoft.Graph/Generated/Models/DeltaParticipants.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class DeltaParticipants : Entity, IParsable { - /// The participants property + /// The collection of participants that were updated since the last roster update. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Participants { @@ -20,7 +20,7 @@ public List Participants { set { BackingStore?.Set("participants", value); } } #endif - /// The sequenceNumber property + /// The sequence number for the roster update that is used to identify the notification order. public long? SequenceNumber { get { return BackingStore?.Get("sequenceNumber"); } set { BackingStore?.Set("sequenceNumber", value); } diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignment.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignment.cs index 9c227ec8707..22031b89d66 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignment.cs @@ -6,12 +6,12 @@ using System; namespace Microsoft.Graph.Models { public class EducationAssignment : Entity, IParsable { - /// Optional field to control the assignment behavior for students who are added after the assignment is published. If not specified, defaults to none. Supported values are: none, assignIfOpen. For example, a teacher can use assignIfOpen to indicate that an assignment should be assigned to any new student who joins the class while the assignment is still open, and none to indicate that an assignment should not be assigned to new students. + /// Optional field to control the assignment behavior for students who are added after the assignment is published. If not specified, defaults to none. Supported values are: none, assignIfOpen. For example, a teacher can use assignIfOpen to indicate that an assignment should be assigned to any new student who joins the class while the assignment is still open, and none to indicate that an assignment shouldn't be assigned to new students. public EducationAddedStudentAction? AddedStudentAction { get { return BackingStore?.Get("addedStudentAction"); } set { BackingStore?.Set("addedStudentAction", value); } } - /// Optional field to control the assignment behavior for adding assignments to students' and teachers' calendars when the assignment is published. The possible values are: none, studentsAndPublisher, studentsAndTeamOwners, unknownFutureValue, and studentsOnly. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: studentsOnly. The default value is none. + /// Optional field to control the assignment behavior for adding assignments to students' and teachers' calendars when the assignment is published. The possible values are: none, studentsAndPublisher, studentsAndTeamOwners, unknownFutureValue, and studentsOnly. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: studentsOnly. The default value is none. public EducationAddToCalendarOptions? AddToCalendarAction { get { return BackingStore?.Get("addToCalendarAction"); } set { BackingStore?.Set("addToCalendarAction", value); } @@ -64,7 +64,7 @@ public List Categories { set { BackingStore?.Set("categories", value); } } #endif - /// Class which this assignment belongs. + /// Class to which this assignment belongs. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ClassId { @@ -78,7 +78,7 @@ public string ClassId { set { BackingStore?.Set("classId", value); } } #endif - /// Date when the assignment will be closed for submissions. This is an optional field that can be null if the assignment does not allowLateSubmissions or when the closeDateTime is the same as the dueDateTime. But if specified, then the closeDateTime must be greater than or equal to the dueDateTime. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + /// Date when the assignment will be closed for submissions. This is an optional field that can be null if the assignment doesn't allowLateSubmissions or when the closeDateTime is the same as the dueDateTime. But if specified, then the closeDateTime must be greater than or equal to the dueDateTime. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z public DateTimeOffset? CloseDateTime { get { return BackingStore?.Get("closeDateTime"); } set { BackingStore?.Set("closeDateTime", value); } @@ -149,7 +149,7 @@ public EducationAssignmentGradeType Grading { set { BackingStore?.Set("grading", value); } } #endif - /// The gradingCategory property + /// 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 public EducationGradingCategory? GradingCategory { @@ -163,7 +163,7 @@ public EducationGradingCategory GradingCategory { set { BackingStore?.Set("gradingCategory", value); } } #endif - /// Instructions for the assignment. This along with the display name tell the student what to do. + /// Instructions for the assignment. The instructsions and the display name tell the student what to do. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public EducationItemBody? Instructions { @@ -257,7 +257,7 @@ public EducationAssignmentStatus? Status { get { return BackingStore?.Get("status"); } set { BackingStore?.Set("status", value); } } - /// Once published, there is a submission object for each student representing their work and grade. Read-only. Nullable. + /// Once published, there's a submission object for each student representing their work and grade. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Submissions { diff --git a/src/Microsoft.Graph/Generated/Models/EducationAssignmentSettings.cs b/src/Microsoft.Graph/Generated/Models/EducationAssignmentSettings.cs index 5b7c6026731..3eb18cb18cf 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationAssignmentSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationAssignmentSettings.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class EducationAssignmentSettings : Entity, IParsable { - /// The gradingCategories property + /// 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 public List? GradingCategories { @@ -20,7 +20,7 @@ public List GradingCategories { set { BackingStore?.Set("gradingCategories", value); } } #endif - /// Indicates whether turn-in celebration animation is shown. A value of true indicates that the animation isn't shown. Default value is false. + /// Indicates whether to show the turn-in celebration animation. If true, indicates to skip the animation. The default value is false. public bool? SubmissionAnimationDisabled { get { return BackingStore?.Get("submissionAnimationDisabled"); } set { BackingStore?.Set("submissionAnimationDisabled", value); } diff --git a/src/Microsoft.Graph/Generated/Models/EducationGradingCategory.cs b/src/Microsoft.Graph/Generated/Models/EducationGradingCategory.cs index 48021e48d24..cb0cee30606 100644 --- a/src/Microsoft.Graph/Generated/Models/EducationGradingCategory.cs +++ b/src/Microsoft.Graph/Generated/Models/EducationGradingCategory.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class EducationGradingCategory : Entity, IParsable { - /// The displayName property + /// The name of the grading category. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DisplayName { @@ -20,7 +20,7 @@ public string DisplayName { set { BackingStore?.Set("displayName", value); } } #endif - /// The percentageWeight property + /// The weight of the category; an integer between 0 and 100. public int? PercentageWeight { get { return BackingStore?.Get("percentageWeight"); } set { BackingStore?.Set("percentageWeight", value); } diff --git a/src/Microsoft.Graph/Generated/Models/ExtensionProperty.cs b/src/Microsoft.Graph/Generated/Models/ExtensionProperty.cs index fe2e7bf9d2f..5efb19e7b56 100644 --- a/src/Microsoft.Graph/Generated/Models/ExtensionProperty.cs +++ b/src/Microsoft.Graph/Generated/Models/ExtensionProperty.cs @@ -20,7 +20,7 @@ public string AppDisplayName { set { BackingStore?.Set("appDisplayName", value); } } #endif - /// Specifies the data type of the value the extension property can hold. Following values are supported. Not nullable. Binary - 256 bytes maximumBooleanDateTime - Must be specified in ISO 8601 format. Will be stored in UTC.Integer - 32-bit value.LargeInteger - 64-bit value.String - 256 characters maximum + /// Specifies the data type of the value the extension property can hold. Following values are supported. Binary - 256 bytes maximumBooleanDateTime - Must be specified in ISO 8601 format. Will be stored in UTC.Integer - 32-bit value.LargeInteger - 64-bit value.String - 256 characters maximumNot nullable. For multivalued directory extensions, these limits apply per value in the collection. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? DataType { @@ -34,7 +34,7 @@ public string DataType { set { BackingStore?.Set("dataType", value); } } #endif - /// Defines the directory extension as a multi-valued property. When true, the directory extension property can store a collection of objects of the dataType; for example, a collection of integers. The default value is false. Supports $filter (eq). + /// Defines the directory extension as a multi-valued property. When true, the directory extension property can store a collection of objects of the dataType; for example, a collection of string types such as 'extensionb7b1c57b532f40b8b5ed4b7a7ba67401jobGroupTracker': ['String 1', 'String 2']. The default value is false. Supports $filter (eq). public bool? IsMultiValued { get { return BackingStore?.Get("isMultiValued"); } set { BackingStore?.Set("isMultiValued", value); } diff --git a/src/Microsoft.Graph/Generated/Models/IdentitySource.cs b/src/Microsoft.Graph/Generated/Models/IdentitySource.cs index 1d019b54478..cb923438ca5 100644 --- a/src/Microsoft.Graph/Generated/Models/IdentitySource.cs +++ b/src/Microsoft.Graph/Generated/Models/IdentitySource.cs @@ -47,6 +47,7 @@ public static IdentitySource CreateFromDiscriminatorValue(IParseNode parseNode) "#microsoft.graph.crossCloudAzureActiveDirectoryTenant" => new CrossCloudAzureActiveDirectoryTenant(), "#microsoft.graph.domainIdentitySource" => new DomainIdentitySource(), "#microsoft.graph.externalDomainFederation" => new ExternalDomainFederation(), + "#microsoft.graph.socialIdentitySource" => new SocialIdentitySource(), _ => new IdentitySource(), }; } diff --git a/src/Microsoft.Graph/Generated/Models/Participant.cs b/src/Microsoft.Graph/Generated/Models/Participant.cs index 36509522e02..9d298399c33 100644 --- a/src/Microsoft.Graph/Generated/Models/Participant.cs +++ b/src/Microsoft.Graph/Generated/Models/Participant.cs @@ -72,7 +72,7 @@ public Microsoft.Graph.Models.RecordingInfo RecordingInfo { set { BackingStore?.Set("recordingInfo", value); } } #endif - /// The removedState property + /// Indicates the reason why the participant was removed from the roster. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public Microsoft.Graph.Models.RemovedState? RemovedState { @@ -100,7 +100,7 @@ public OnlineMeetingRestricted RestrictedExperience { set { BackingStore?.Set("restrictedExperience", value); } } #endif - /// The rosterSequenceNumber property + /// Indicates the roster sequence number in which the participant was last updated. public long? RosterSequenceNumber { get { return BackingStore?.Get("rosterSequenceNumber"); } set { BackingStore?.Set("rosterSequenceNumber", value); } diff --git a/src/Microsoft.Graph/Generated/Models/RemovedState.cs b/src/Microsoft.Graph/Generated/Models/RemovedState.cs index 2e2f93747ed..6cd97c429f4 100644 --- a/src/Microsoft.Graph/Generated/Models/RemovedState.cs +++ b/src/Microsoft.Graph/Generated/Models/RemovedState.cs @@ -28,7 +28,7 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif - /// The reason property + /// The removal reason for the participant resource. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Reason { diff --git a/src/Microsoft.Graph/Generated/Models/SearchRequest.cs b/src/Microsoft.Graph/Generated/Models/SearchRequest.cs index f79455db993..9e935d57988 100644 --- a/src/Microsoft.Graph/Generated/Models/SearchRequest.cs +++ b/src/Microsoft.Graph/Generated/Models/SearchRequest.cs @@ -75,7 +75,7 @@ public bool? EnableTopResults { get { return BackingStore?.Get("enableTopResults"); } set { BackingStore?.Set("enableTopResults", value); } } - /// One or more types of resources expected in the response. Possible values are: event, message, driveItem, externalItem, site, list, listItem, drive, chatMessage, person, acronym, bookmark. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum:chatMessage, person, acronym, bookmark. See known limitations for those combinations of two or more entity types that are supported in the same search request. Required. + /// One or more types of resources expected in the response. Possible values are: event, message, driveItem, externalItem, site, list, listItem, drive, chatMessage, person, acronym, bookmark. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: chatMessage, person, acronym, bookmark. See known limitations for those combinations of two or more entity types that are supported in the same search request. Required. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? EntityTypes { diff --git a/src/Microsoft.Graph/Generated/Models/Security/AlertEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/AlertEvidence.cs index 775e6cde61a..c9091fd3c9f 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/AlertEvidence.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/AlertEvidence.cs @@ -125,7 +125,12 @@ public static AlertEvidence CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.security.containerRegistryEvidence" => new ContainerRegistryEvidence(), "#microsoft.graph.security.deviceEvidence" => new DeviceEvidence(), "#microsoft.graph.security.fileEvidence" => new FileEvidence(), + "#microsoft.graph.security.gitHubOrganizationEvidence" => new GitHubOrganizationEvidence(), + "#microsoft.graph.security.gitHubRepoEvidence" => new GitHubRepoEvidence(), + "#microsoft.graph.security.gitHubUserEvidence" => new GitHubUserEvidence(), "#microsoft.graph.security.googleCloudResourceEvidence" => new GoogleCloudResourceEvidence(), + "#microsoft.graph.security.hostLogonSessionEvidence" => new HostLogonSessionEvidence(), + "#microsoft.graph.security.ioTDeviceEvidence" => new IoTDeviceEvidence(), "#microsoft.graph.security.ipEvidence" => new IpEvidence(), "#microsoft.graph.security.kubernetesClusterEvidence" => new KubernetesClusterEvidence(), "#microsoft.graph.security.kubernetesControllerEvidence" => new KubernetesControllerEvidence(), @@ -136,11 +141,17 @@ public static AlertEvidence CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.security.kubernetesServiceEvidence" => new KubernetesServiceEvidence(), "#microsoft.graph.security.mailboxEvidence" => new MailboxEvidence(), "#microsoft.graph.security.mailClusterEvidence" => new MailClusterEvidence(), + "#microsoft.graph.security.malwareEvidence" => new MalwareEvidence(), + "#microsoft.graph.security.networkConnectionEvidence" => new NetworkConnectionEvidence(), + "#microsoft.graph.security.nicEvidence" => new NicEvidence(), "#microsoft.graph.security.oauthApplicationEvidence" => new OauthApplicationEvidence(), "#microsoft.graph.security.processEvidence" => new ProcessEvidence(), "#microsoft.graph.security.registryKeyEvidence" => new RegistryKeyEvidence(), "#microsoft.graph.security.registryValueEvidence" => new RegistryValueEvidence(), + "#microsoft.graph.security.sasTokenEvidence" => new SasTokenEvidence(), "#microsoft.graph.security.securityGroupEvidence" => new SecurityGroupEvidence(), + "#microsoft.graph.security.servicePrincipalEvidence" => new ServicePrincipalEvidence(), + "#microsoft.graph.security.submissionMailEvidence" => new SubmissionMailEvidence(), "#microsoft.graph.security.urlEvidence" => new UrlEvidence(), "#microsoft.graph.security.userEvidence" => new UserEvidence(), _ => new AlertEvidence(), diff --git a/src/Microsoft.Graph/Generated/Models/Security/GitHubOrganizationEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/GitHubOrganizationEvidence.cs new file mode 100644 index 00000000000..235341ea71a --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/GitHubOrganizationEvidence.cs @@ -0,0 +1,135 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class GitHubOrganizationEvidence : AlertEvidence, IParsable { + /// The company property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Company { + get { return BackingStore?.Get("company"); } + set { BackingStore?.Set("company", value); } + } +#nullable restore +#else + public string Company { + get { return BackingStore?.Get("company"); } + set { BackingStore?.Set("company", value); } + } +#endif + /// 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 email property +#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 + /// The login property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Login { + get { return BackingStore?.Get("login"); } + set { BackingStore?.Set("login", value); } + } +#nullable restore +#else + public string Login { + get { return BackingStore?.Get("login"); } + set { BackingStore?.Set("login", value); } + } +#endif + /// The orgId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OrgId { + get { return BackingStore?.Get("orgId"); } + set { BackingStore?.Set("orgId", value); } + } +#nullable restore +#else + public string OrgId { + get { return BackingStore?.Get("orgId"); } + set { BackingStore?.Set("orgId", value); } + } +#endif + /// The webUrl property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? WebUrl { + get { return BackingStore?.Get("webUrl"); } + set { BackingStore?.Set("webUrl", value); } + } +#nullable restore +#else + public string WebUrl { + get { return BackingStore?.Get("webUrl"); } + set { BackingStore?.Set("webUrl", value); } + } +#endif + /// + /// Instantiates a new gitHubOrganizationEvidence and sets the default values. + /// + public GitHubOrganizationEvidence() : base() { + OdataType = "#microsoft.graph.security.gitHubOrganizationEvidence"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GitHubOrganizationEvidence CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GitHubOrganizationEvidence(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"company", n => { Company = n.GetStringValue(); } }, + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"email", n => { Email = n.GetStringValue(); } }, + {"login", n => { Login = n.GetStringValue(); } }, + {"orgId", n => { OrgId = n.GetStringValue(); } }, + {"webUrl", n => { WebUrl = 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("company", Company); + writer.WriteStringValue("displayName", DisplayName); + writer.WriteStringValue("email", Email); + writer.WriteStringValue("login", Login); + writer.WriteStringValue("orgId", OrgId); + writer.WriteStringValue("webUrl", WebUrl); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/GitHubRepoEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/GitHubRepoEvidence.cs new file mode 100644 index 00000000000..7f007781948 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/GitHubRepoEvidence.cs @@ -0,0 +1,119 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class GitHubRepoEvidence : AlertEvidence, IParsable { + /// The baseUrl property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? BaseUrl { + get { return BackingStore?.Get("baseUrl"); } + set { BackingStore?.Set("baseUrl", value); } + } +#nullable restore +#else + public string BaseUrl { + get { return BackingStore?.Get("baseUrl"); } + set { BackingStore?.Set("baseUrl", value); } + } +#endif + /// The login property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Login { + get { return BackingStore?.Get("login"); } + set { BackingStore?.Set("login", value); } + } +#nullable restore +#else + public string Login { + get { return BackingStore?.Get("login"); } + set { BackingStore?.Set("login", value); } + } +#endif + /// The owner property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Owner { + get { return BackingStore?.Get("owner"); } + set { BackingStore?.Set("owner", value); } + } +#nullable restore +#else + public string Owner { + get { return BackingStore?.Get("owner"); } + set { BackingStore?.Set("owner", value); } + } +#endif + /// The ownerType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OwnerType { + get { return BackingStore?.Get("ownerType"); } + set { BackingStore?.Set("ownerType", value); } + } +#nullable restore +#else + public string OwnerType { + get { return BackingStore?.Get("ownerType"); } + set { BackingStore?.Set("ownerType", value); } + } +#endif + /// The repoId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? RepoId { + get { return BackingStore?.Get("repoId"); } + set { BackingStore?.Set("repoId", value); } + } +#nullable restore +#else + public string RepoId { + get { return BackingStore?.Get("repoId"); } + set { BackingStore?.Set("repoId", value); } + } +#endif + /// + /// Instantiates a new gitHubRepoEvidence and sets the default values. + /// + public GitHubRepoEvidence() : base() { + OdataType = "#microsoft.graph.security.gitHubRepoEvidence"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GitHubRepoEvidence CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GitHubRepoEvidence(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"baseUrl", n => { BaseUrl = n.GetStringValue(); } }, + {"login", n => { Login = n.GetStringValue(); } }, + {"owner", n => { Owner = n.GetStringValue(); } }, + {"ownerType", n => { OwnerType = n.GetStringValue(); } }, + {"repoId", n => { RepoId = 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("baseUrl", BaseUrl); + writer.WriteStringValue("login", Login); + writer.WriteStringValue("owner", Owner); + writer.WriteStringValue("ownerType", OwnerType); + writer.WriteStringValue("repoId", RepoId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/GitHubUserEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/GitHubUserEvidence.cs new file mode 100644 index 00000000000..b64936e7c22 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/GitHubUserEvidence.cs @@ -0,0 +1,119 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class GitHubUserEvidence : AlertEvidence, IParsable { + /// The email property +#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 + /// The login property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Login { + get { return BackingStore?.Get("login"); } + set { BackingStore?.Set("login", value); } + } +#nullable restore +#else + public string Login { + get { return BackingStore?.Get("login"); } + set { BackingStore?.Set("login", value); } + } +#endif + /// The name property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Name { + get { return BackingStore?.Get("name"); } + set { BackingStore?.Set("name", value); } + } +#nullable restore +#else + public string Name { + get { return BackingStore?.Get("name"); } + set { BackingStore?.Set("name", value); } + } +#endif + /// The userId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? UserId { + get { return BackingStore?.Get("userId"); } + set { BackingStore?.Set("userId", value); } + } +#nullable restore +#else + public string UserId { + get { return BackingStore?.Get("userId"); } + set { BackingStore?.Set("userId", value); } + } +#endif + /// The webUrl property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? WebUrl { + get { return BackingStore?.Get("webUrl"); } + set { BackingStore?.Set("webUrl", value); } + } +#nullable restore +#else + public string WebUrl { + get { return BackingStore?.Get("webUrl"); } + set { BackingStore?.Set("webUrl", value); } + } +#endif + /// + /// Instantiates a new gitHubUserEvidence and sets the default values. + /// + public GitHubUserEvidence() : base() { + OdataType = "#microsoft.graph.security.gitHubUserEvidence"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new GitHubUserEvidence CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new GitHubUserEvidence(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"email", n => { Email = n.GetStringValue(); } }, + {"login", n => { Login = n.GetStringValue(); } }, + {"name", n => { Name = n.GetStringValue(); } }, + {"userId", n => { UserId = n.GetStringValue(); } }, + {"webUrl", n => { WebUrl = 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("email", Email); + writer.WriteStringValue("login", Login); + writer.WriteStringValue("name", Name); + writer.WriteStringValue("userId", UserId); + writer.WriteStringValue("webUrl", WebUrl); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/HostLogonSessionEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/HostLogonSessionEvidence.cs new file mode 100644 index 00000000000..e042d17d177 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/HostLogonSessionEvidence.cs @@ -0,0 +1,101 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class HostLogonSessionEvidence : AlertEvidence, IParsable { + /// The account property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public UserEvidence? Account { + get { return BackingStore?.Get("account"); } + set { BackingStore?.Set("account", value); } + } +#nullable restore +#else + public UserEvidence Account { + get { return BackingStore?.Get("account"); } + set { BackingStore?.Set("account", value); } + } +#endif + /// The endUtcDateTime property + public DateTimeOffset? EndUtcDateTime { + get { return BackingStore?.Get("endUtcDateTime"); } + set { BackingStore?.Set("endUtcDateTime", value); } + } + /// The host property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public DeviceEvidence? Host { + get { return BackingStore?.Get("host"); } + set { BackingStore?.Set("host", value); } + } +#nullable restore +#else + public DeviceEvidence Host { + get { return BackingStore?.Get("host"); } + set { BackingStore?.Set("host", value); } + } +#endif + /// The sessionId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? SessionId { + get { return BackingStore?.Get("sessionId"); } + set { BackingStore?.Set("sessionId", value); } + } +#nullable restore +#else + public string SessionId { + get { return BackingStore?.Get("sessionId"); } + set { BackingStore?.Set("sessionId", value); } + } +#endif + /// The startUtcDateTime property + public DateTimeOffset? StartUtcDateTime { + get { return BackingStore?.Get("startUtcDateTime"); } + set { BackingStore?.Set("startUtcDateTime", value); } + } + /// + /// Instantiates a new hostLogonSessionEvidence and sets the default values. + /// + public HostLogonSessionEvidence() : base() { + OdataType = "#microsoft.graph.security.hostLogonSessionEvidence"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new HostLogonSessionEvidence CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new HostLogonSessionEvidence(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"account", n => { Account = n.GetObjectValue(UserEvidence.CreateFromDiscriminatorValue); } }, + {"endUtcDateTime", n => { EndUtcDateTime = n.GetDateTimeOffsetValue(); } }, + {"host", n => { Host = n.GetObjectValue(DeviceEvidence.CreateFromDiscriminatorValue); } }, + {"sessionId", n => { SessionId = n.GetStringValue(); } }, + {"startUtcDateTime", n => { StartUtcDateTime = n.GetDateTimeOffsetValue(); } }, + }; + } + /// + /// 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("account", Account); + writer.WriteDateTimeOffsetValue("endUtcDateTime", EndUtcDateTime); + writer.WriteObjectValue("host", Host); + writer.WriteStringValue("sessionId", SessionId); + writer.WriteDateTimeOffsetValue("startUtcDateTime", StartUtcDateTime); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/IoTDeviceEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/IoTDeviceEvidence.cs new file mode 100644 index 00000000000..e0e6aed4164 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/IoTDeviceEvidence.cs @@ -0,0 +1,419 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class IoTDeviceEvidence : AlertEvidence, 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 + /// The deviceName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DeviceName { + get { return BackingStore?.Get("deviceName"); } + set { BackingStore?.Set("deviceName", value); } + } +#nullable restore +#else + public string DeviceName { + get { return BackingStore?.Get("deviceName"); } + set { BackingStore?.Set("deviceName", value); } + } +#endif + /// The devicePageLink property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DevicePageLink { + get { return BackingStore?.Get("devicePageLink"); } + set { BackingStore?.Set("devicePageLink", value); } + } +#nullable restore +#else + public string DevicePageLink { + get { return BackingStore?.Get("devicePageLink"); } + set { BackingStore?.Set("devicePageLink", value); } + } +#endif + /// The deviceSubType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DeviceSubType { + get { return BackingStore?.Get("deviceSubType"); } + set { BackingStore?.Set("deviceSubType", value); } + } +#nullable restore +#else + public string DeviceSubType { + get { return BackingStore?.Get("deviceSubType"); } + set { BackingStore?.Set("deviceSubType", value); } + } +#endif + /// The deviceType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? DeviceType { + get { return BackingStore?.Get("deviceType"); } + set { BackingStore?.Set("deviceType", value); } + } +#nullable restore +#else + public string DeviceType { + get { return BackingStore?.Get("deviceType"); } + set { BackingStore?.Set("deviceType", value); } + } +#endif + /// The importance property + public IoTDeviceImportanceType? Importance { + get { return BackingStore?.Get("importance"); } + set { BackingStore?.Set("importance", value); } + } + /// The ioTHub property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public AzureResourceEvidence? IoTHub { + get { return BackingStore?.Get("ioTHub"); } + set { BackingStore?.Set("ioTHub", value); } + } +#nullable restore +#else + public AzureResourceEvidence IoTHub { + get { return BackingStore?.Get("ioTHub"); } + set { BackingStore?.Set("ioTHub", value); } + } +#endif + /// The ioTSecurityAgentId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? IoTSecurityAgentId { + get { return BackingStore?.Get("ioTSecurityAgentId"); } + set { BackingStore?.Set("ioTSecurityAgentId", value); } + } +#nullable restore +#else + public string IoTSecurityAgentId { + get { return BackingStore?.Get("ioTSecurityAgentId"); } + set { BackingStore?.Set("ioTSecurityAgentId", value); } + } +#endif + /// The ipAddress property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public IpEvidence? IpAddress { + get { return BackingStore?.Get("ipAddress"); } + set { BackingStore?.Set("ipAddress", value); } + } +#nullable restore +#else + public IpEvidence IpAddress { + get { return BackingStore?.Get("ipAddress"); } + set { BackingStore?.Set("ipAddress", value); } + } +#endif + /// The isAuthorized property + public bool? IsAuthorized { + get { return BackingStore?.Get("isAuthorized"); } + set { BackingStore?.Set("isAuthorized", value); } + } + /// The isProgramming property + public bool? IsProgramming { + get { return BackingStore?.Get("isProgramming"); } + set { BackingStore?.Set("isProgramming", value); } + } + /// The isScanner property + public bool? IsScanner { + get { return BackingStore?.Get("isScanner"); } + set { BackingStore?.Set("isScanner", value); } + } + /// The macAddress property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MacAddress { + get { return BackingStore?.Get("macAddress"); } + set { BackingStore?.Set("macAddress", value); } + } +#nullable restore +#else + public string MacAddress { + get { return BackingStore?.Get("macAddress"); } + set { BackingStore?.Set("macAddress", value); } + } +#endif + /// The manufacturer property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Manufacturer { + get { return BackingStore?.Get("manufacturer"); } + set { BackingStore?.Set("manufacturer", value); } + } +#nullable restore +#else + public string Manufacturer { + get { return BackingStore?.Get("manufacturer"); } + set { BackingStore?.Set("manufacturer", value); } + } +#endif + /// The model property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Model { + get { return BackingStore?.Get("model"); } + set { BackingStore?.Set("model", value); } + } +#nullable restore +#else + public string Model { + get { return BackingStore?.Get("model"); } + set { BackingStore?.Set("model", value); } + } +#endif + /// The nics property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public NicEvidence? Nics { + get { return BackingStore?.Get("nics"); } + set { BackingStore?.Set("nics", value); } + } +#nullable restore +#else + public NicEvidence Nics { + get { return BackingStore?.Get("nics"); } + set { BackingStore?.Set("nics", value); } + } +#endif + /// The operatingSystem property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? OperatingSystem { + get { return BackingStore?.Get("operatingSystem"); } + set { BackingStore?.Set("operatingSystem", value); } + } +#nullable restore +#else + public string OperatingSystem { + get { return BackingStore?.Get("operatingSystem"); } + set { BackingStore?.Set("operatingSystem", value); } + } +#endif + /// The owners property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Owners { + get { return BackingStore?.Get?>("owners"); } + set { BackingStore?.Set("owners", value); } + } +#nullable restore +#else + public List Owners { + get { return BackingStore?.Get>("owners"); } + set { BackingStore?.Set("owners", value); } + } +#endif + /// The protocols property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Protocols { + get { return BackingStore?.Get?>("protocols"); } + set { BackingStore?.Set("protocols", value); } + } +#nullable restore +#else + public List Protocols { + get { return BackingStore?.Get>("protocols"); } + set { BackingStore?.Set("protocols", value); } + } +#endif + /// The purdueLayer property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? PurdueLayer { + get { return BackingStore?.Get("purdueLayer"); } + set { BackingStore?.Set("purdueLayer", value); } + } +#nullable restore +#else + public string PurdueLayer { + get { return BackingStore?.Get("purdueLayer"); } + set { BackingStore?.Set("purdueLayer", value); } + } +#endif + /// The sensor property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Sensor { + get { return BackingStore?.Get("sensor"); } + set { BackingStore?.Set("sensor", value); } + } +#nullable restore +#else + public string Sensor { + get { return BackingStore?.Get("sensor"); } + set { BackingStore?.Set("sensor", value); } + } +#endif + /// The serialNumber property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? SerialNumber { + get { return BackingStore?.Get("serialNumber"); } + set { BackingStore?.Set("serialNumber", value); } + } +#nullable restore +#else + public string SerialNumber { + get { return BackingStore?.Get("serialNumber"); } + set { BackingStore?.Set("serialNumber", value); } + } +#endif + /// The site property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Site { + get { return BackingStore?.Get("site"); } + set { BackingStore?.Set("site", value); } + } +#nullable restore +#else + public string Site { + get { return BackingStore?.Get("site"); } + set { BackingStore?.Set("site", value); } + } +#endif + /// The source property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Source { + get { return BackingStore?.Get("source"); } + set { BackingStore?.Set("source", value); } + } +#nullable restore +#else + public string Source { + get { return BackingStore?.Get("source"); } + set { BackingStore?.Set("source", value); } + } +#endif + /// The sourceRef property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public UrlEvidence? SourceRef { + get { return BackingStore?.Get("sourceRef"); } + set { BackingStore?.Set("sourceRef", value); } + } +#nullable restore +#else + public UrlEvidence SourceRef { + get { return BackingStore?.Get("sourceRef"); } + set { BackingStore?.Set("sourceRef", value); } + } +#endif + /// The zone property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Zone { + get { return BackingStore?.Get("zone"); } + set { BackingStore?.Set("zone", value); } + } +#nullable restore +#else + public string Zone { + get { return BackingStore?.Get("zone"); } + set { BackingStore?.Set("zone", value); } + } +#endif + /// + /// Instantiates a new ioTDeviceEvidence and sets the default values. + /// + public IoTDeviceEvidence() : base() { + OdataType = "#microsoft.graph.security.ioTDeviceEvidence"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new IoTDeviceEvidence CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new IoTDeviceEvidence(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"deviceId", n => { DeviceId = n.GetStringValue(); } }, + {"deviceName", n => { DeviceName = n.GetStringValue(); } }, + {"devicePageLink", n => { DevicePageLink = n.GetStringValue(); } }, + {"deviceSubType", n => { DeviceSubType = n.GetStringValue(); } }, + {"deviceType", n => { DeviceType = n.GetStringValue(); } }, + {"importance", n => { Importance = n.GetEnumValue(); } }, + {"ioTHub", n => { IoTHub = n.GetObjectValue(AzureResourceEvidence.CreateFromDiscriminatorValue); } }, + {"ioTSecurityAgentId", n => { IoTSecurityAgentId = n.GetStringValue(); } }, + {"ipAddress", n => { IpAddress = n.GetObjectValue(IpEvidence.CreateFromDiscriminatorValue); } }, + {"isAuthorized", n => { IsAuthorized = n.GetBoolValue(); } }, + {"isProgramming", n => { IsProgramming = n.GetBoolValue(); } }, + {"isScanner", n => { IsScanner = n.GetBoolValue(); } }, + {"macAddress", n => { MacAddress = n.GetStringValue(); } }, + {"manufacturer", n => { Manufacturer = n.GetStringValue(); } }, + {"model", n => { Model = n.GetStringValue(); } }, + {"nics", n => { Nics = n.GetObjectValue(NicEvidence.CreateFromDiscriminatorValue); } }, + {"operatingSystem", n => { OperatingSystem = n.GetStringValue(); } }, + {"owners", n => { Owners = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"protocols", n => { Protocols = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"purdueLayer", n => { PurdueLayer = n.GetStringValue(); } }, + {"sensor", n => { Sensor = n.GetStringValue(); } }, + {"serialNumber", n => { SerialNumber = n.GetStringValue(); } }, + {"site", n => { Site = n.GetStringValue(); } }, + {"source", n => { Source = n.GetStringValue(); } }, + {"sourceRef", n => { SourceRef = n.GetObjectValue(UrlEvidence.CreateFromDiscriminatorValue); } }, + {"zone", n => { Zone = 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); + writer.WriteStringValue("deviceName", DeviceName); + writer.WriteStringValue("devicePageLink", DevicePageLink); + writer.WriteStringValue("deviceSubType", DeviceSubType); + writer.WriteStringValue("deviceType", DeviceType); + writer.WriteEnumValue("importance", Importance); + writer.WriteObjectValue("ioTHub", IoTHub); + writer.WriteStringValue("ioTSecurityAgentId", IoTSecurityAgentId); + writer.WriteObjectValue("ipAddress", IpAddress); + writer.WriteBoolValue("isAuthorized", IsAuthorized); + writer.WriteBoolValue("isProgramming", IsProgramming); + writer.WriteBoolValue("isScanner", IsScanner); + writer.WriteStringValue("macAddress", MacAddress); + writer.WriteStringValue("manufacturer", Manufacturer); + writer.WriteStringValue("model", Model); + writer.WriteObjectValue("nics", Nics); + writer.WriteStringValue("operatingSystem", OperatingSystem); + writer.WriteCollectionOfPrimitiveValues("owners", Owners); + writer.WriteCollectionOfPrimitiveValues("protocols", Protocols); + writer.WriteStringValue("purdueLayer", PurdueLayer); + writer.WriteStringValue("sensor", Sensor); + writer.WriteStringValue("serialNumber", SerialNumber); + writer.WriteStringValue("site", Site); + writer.WriteStringValue("source", Source); + writer.WriteObjectValue("sourceRef", SourceRef); + writer.WriteStringValue("zone", Zone); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/IoTDeviceImportanceType.cs b/src/Microsoft.Graph/Generated/Models/Security/IoTDeviceImportanceType.cs new file mode 100644 index 00000000000..8c6f46dcc56 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/IoTDeviceImportanceType.cs @@ -0,0 +1,17 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models.Security { + public enum IoTDeviceImportanceType { + [EnumMember(Value = "unknown")] + Unknown, + [EnumMember(Value = "low")] + Low, + [EnumMember(Value = "normal")] + Normal, + [EnumMember(Value = "high")] + High, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/MalwareEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/MalwareEvidence.cs new file mode 100644 index 00000000000..c0a4648d106 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/MalwareEvidence.cs @@ -0,0 +1,103 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class MalwareEvidence : AlertEvidence, IParsable { + /// The category property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Category { + get { return BackingStore?.Get("category"); } + set { BackingStore?.Set("category", value); } + } +#nullable restore +#else + public string Category { + get { return BackingStore?.Get("category"); } + set { BackingStore?.Set("category", value); } + } +#endif + /// The files property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Files { + get { return BackingStore?.Get?>("files"); } + set { BackingStore?.Set("files", value); } + } +#nullable restore +#else + public List Files { + get { return BackingStore?.Get>("files"); } + set { BackingStore?.Set("files", value); } + } +#endif + /// The name property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Name { + get { return BackingStore?.Get("name"); } + set { BackingStore?.Set("name", value); } + } +#nullable restore +#else + public string Name { + get { return BackingStore?.Get("name"); } + set { BackingStore?.Set("name", value); } + } +#endif + /// The processes property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Processes { + get { return BackingStore?.Get?>("processes"); } + set { BackingStore?.Set("processes", value); } + } +#nullable restore +#else + public List Processes { + get { return BackingStore?.Get>("processes"); } + set { BackingStore?.Set("processes", value); } + } +#endif + /// + /// Instantiates a new malwareEvidence and sets the default values. + /// + public MalwareEvidence() : base() { + OdataType = "#microsoft.graph.security.malwareEvidence"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new MalwareEvidence CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new MalwareEvidence(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"category", n => { Category = n.GetStringValue(); } }, + {"files", n => { Files = n.GetCollectionOfObjectValues(FileEvidence.CreateFromDiscriminatorValue)?.ToList(); } }, + {"name", n => { Name = n.GetStringValue(); } }, + {"processes", n => { Processes = n.GetCollectionOfObjectValues(ProcessEvidence.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.WriteStringValue("category", Category); + writer.WriteCollectionOfObjectValues("files", Files); + writer.WriteStringValue("name", Name); + writer.WriteCollectionOfObjectValues("processes", Processes); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/NetworkConnectionEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/NetworkConnectionEvidence.cs new file mode 100644 index 00000000000..1ed027415d1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/NetworkConnectionEvidence.cs @@ -0,0 +1,92 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class NetworkConnectionEvidence : AlertEvidence, IParsable { + /// The destinationAddress property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public IpEvidence? DestinationAddress { + get { return BackingStore?.Get("destinationAddress"); } + set { BackingStore?.Set("destinationAddress", value); } + } +#nullable restore +#else + public IpEvidence DestinationAddress { + get { return BackingStore?.Get("destinationAddress"); } + set { BackingStore?.Set("destinationAddress", value); } + } +#endif + /// The destinationPort property + public int? DestinationPort { + get { return BackingStore?.Get("destinationPort"); } + set { BackingStore?.Set("destinationPort", value); } + } + /// The protocol property + public ProtocolType? Protocol { + get { return BackingStore?.Get("protocol"); } + set { BackingStore?.Set("protocol", value); } + } + /// The sourceAddress property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public IpEvidence? SourceAddress { + get { return BackingStore?.Get("sourceAddress"); } + set { BackingStore?.Set("sourceAddress", value); } + } +#nullable restore +#else + public IpEvidence SourceAddress { + get { return BackingStore?.Get("sourceAddress"); } + set { BackingStore?.Set("sourceAddress", value); } + } +#endif + /// The sourcePort property + public int? SourcePort { + get { return BackingStore?.Get("sourcePort"); } + set { BackingStore?.Set("sourcePort", value); } + } + /// + /// Instantiates a new networkConnectionEvidence and sets the default values. + /// + public NetworkConnectionEvidence() : base() { + OdataType = "#microsoft.graph.security.networkConnectionEvidence"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new NetworkConnectionEvidence CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new NetworkConnectionEvidence(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"destinationAddress", n => { DestinationAddress = n.GetObjectValue(IpEvidence.CreateFromDiscriminatorValue); } }, + {"destinationPort", n => { DestinationPort = n.GetIntValue(); } }, + {"protocol", n => { Protocol = n.GetEnumValue(); } }, + {"sourceAddress", n => { SourceAddress = n.GetObjectValue(IpEvidence.CreateFromDiscriminatorValue); } }, + {"sourcePort", n => { SourcePort = 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.WriteObjectValue("destinationAddress", DestinationAddress); + writer.WriteIntValue("destinationPort", DestinationPort); + writer.WriteEnumValue("protocol", Protocol); + writer.WriteObjectValue("sourceAddress", SourceAddress); + writer.WriteIntValue("sourcePort", SourcePort); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/NicEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/NicEvidence.cs new file mode 100644 index 00000000000..688caeab014 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/NicEvidence.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.Models.Security { + public class NicEvidence : AlertEvidence, IParsable { + /// The ipAddress property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public IpEvidence? IpAddress { + get { return BackingStore?.Get("ipAddress"); } + set { BackingStore?.Set("ipAddress", value); } + } +#nullable restore +#else + public IpEvidence IpAddress { + get { return BackingStore?.Get("ipAddress"); } + set { BackingStore?.Set("ipAddress", value); } + } +#endif + /// The macAddress property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? MacAddress { + get { return BackingStore?.Get("macAddress"); } + set { BackingStore?.Set("macAddress", value); } + } +#nullable restore +#else + public string MacAddress { + get { return BackingStore?.Get("macAddress"); } + set { BackingStore?.Set("macAddress", value); } + } +#endif + /// The vlans property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Vlans { + get { return BackingStore?.Get?>("vlans"); } + set { BackingStore?.Set("vlans", value); } + } +#nullable restore +#else + public List Vlans { + get { return BackingStore?.Get>("vlans"); } + set { BackingStore?.Set("vlans", value); } + } +#endif + /// + /// Instantiates a new nicEvidence and sets the default values. + /// + public NicEvidence() : base() { + OdataType = "#microsoft.graph.security.nicEvidence"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new NicEvidence CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new NicEvidence(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"ipAddress", n => { IpAddress = n.GetObjectValue(IpEvidence.CreateFromDiscriminatorValue); } }, + {"macAddress", n => { MacAddress = n.GetStringValue(); } }, + {"vlans", n => { Vlans = n.GetCollectionOfPrimitiveValues()?.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.WriteObjectValue("ipAddress", IpAddress); + writer.WriteStringValue("macAddress", MacAddress); + writer.WriteCollectionOfPrimitiveValues("vlans", Vlans); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/ProtocolType.cs b/src/Microsoft.Graph/Generated/Models/Security/ProtocolType.cs new file mode 100644 index 00000000000..2e1d4e995f0 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/ProtocolType.cs @@ -0,0 +1,13 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models.Security { + public enum ProtocolType { + [EnumMember(Value = "tcp")] + Tcp, + [EnumMember(Value = "udp")] + Udp, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/SasTokenEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/SasTokenEvidence.cs new file mode 100644 index 00000000000..67ded8e0133 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/SasTokenEvidence.cs @@ -0,0 +1,181 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class SasTokenEvidence : AlertEvidence, IParsable { + /// The allowedIpAddresses property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? AllowedIpAddresses { + get { return BackingStore?.Get("allowedIpAddresses"); } + set { BackingStore?.Set("allowedIpAddresses", value); } + } +#nullable restore +#else + public string AllowedIpAddresses { + get { return BackingStore?.Get("allowedIpAddresses"); } + set { BackingStore?.Set("allowedIpAddresses", value); } + } +#endif + /// The allowedResourceTypes property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AllowedResourceTypes { + get { return BackingStore?.Get?>("allowedResourceTypes"); } + set { BackingStore?.Set("allowedResourceTypes", value); } + } +#nullable restore +#else + public List AllowedResourceTypes { + get { return BackingStore?.Get>("allowedResourceTypes"); } + set { BackingStore?.Set("allowedResourceTypes", value); } + } +#endif + /// The allowedServices property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? AllowedServices { + get { return BackingStore?.Get?>("allowedServices"); } + set { BackingStore?.Set("allowedServices", value); } + } +#nullable restore +#else + public List AllowedServices { + get { return BackingStore?.Get>("allowedServices"); } + set { BackingStore?.Set("allowedServices", value); } + } +#endif + /// The expiryDateTime property + public DateTimeOffset? ExpiryDateTime { + get { return BackingStore?.Get("expiryDateTime"); } + set { BackingStore?.Set("expiryDateTime", value); } + } + /// The permissions property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Permissions { + get { return BackingStore?.Get?>("permissions"); } + set { BackingStore?.Set("permissions", value); } + } +#nullable restore +#else + public List Permissions { + get { return BackingStore?.Get>("permissions"); } + set { BackingStore?.Set("permissions", value); } + } +#endif + /// The protocol property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Protocol { + get { return BackingStore?.Get("protocol"); } + set { BackingStore?.Set("protocol", value); } + } +#nullable restore +#else + public string Protocol { + get { return BackingStore?.Get("protocol"); } + set { BackingStore?.Set("protocol", value); } + } +#endif + /// The signatureHash property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? SignatureHash { + get { return BackingStore?.Get("signatureHash"); } + set { BackingStore?.Set("signatureHash", value); } + } +#nullable restore +#else + public string SignatureHash { + get { return BackingStore?.Get("signatureHash"); } + set { BackingStore?.Set("signatureHash", value); } + } +#endif + /// The signedWith property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? SignedWith { + get { return BackingStore?.Get("signedWith"); } + set { BackingStore?.Set("signedWith", value); } + } +#nullable restore +#else + public string SignedWith { + get { return BackingStore?.Get("signedWith"); } + set { BackingStore?.Set("signedWith", value); } + } +#endif + /// The startDateTime property + public DateTimeOffset? StartDateTime { + get { return BackingStore?.Get("startDateTime"); } + set { BackingStore?.Set("startDateTime", value); } + } + /// The storageResource property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public AzureResourceEvidence? StorageResource { + get { return BackingStore?.Get("storageResource"); } + set { BackingStore?.Set("storageResource", value); } + } +#nullable restore +#else + public AzureResourceEvidence StorageResource { + get { return BackingStore?.Get("storageResource"); } + set { BackingStore?.Set("storageResource", value); } + } +#endif + /// + /// Instantiates a new sasTokenEvidence and sets the default values. + /// + public SasTokenEvidence() : base() { + OdataType = "#microsoft.graph.security.sasTokenEvidence"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new SasTokenEvidence CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SasTokenEvidence(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"allowedIpAddresses", n => { AllowedIpAddresses = n.GetStringValue(); } }, + {"allowedResourceTypes", n => { AllowedResourceTypes = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"allowedServices", n => { AllowedServices = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"expiryDateTime", n => { ExpiryDateTime = n.GetDateTimeOffsetValue(); } }, + {"permissions", n => { Permissions = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + {"protocol", n => { Protocol = n.GetStringValue(); } }, + {"signatureHash", n => { SignatureHash = n.GetStringValue(); } }, + {"signedWith", n => { SignedWith = n.GetStringValue(); } }, + {"startDateTime", n => { StartDateTime = n.GetDateTimeOffsetValue(); } }, + {"storageResource", n => { StorageResource = n.GetObjectValue(AzureResourceEvidence.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.WriteStringValue("allowedIpAddresses", AllowedIpAddresses); + writer.WriteCollectionOfPrimitiveValues("allowedResourceTypes", AllowedResourceTypes); + writer.WriteCollectionOfPrimitiveValues("allowedServices", AllowedServices); + writer.WriteDateTimeOffsetValue("expiryDateTime", ExpiryDateTime); + writer.WriteCollectionOfPrimitiveValues("permissions", Permissions); + writer.WriteStringValue("protocol", Protocol); + writer.WriteStringValue("signatureHash", SignatureHash); + writer.WriteStringValue("signedWith", SignedWith); + writer.WriteDateTimeOffsetValue("startDateTime", StartDateTime); + writer.WriteObjectValue("storageResource", StorageResource); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/ServicePrincipalEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/ServicePrincipalEvidence.cs new file mode 100644 index 00000000000..8525e238ef7 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/ServicePrincipalEvidence.cs @@ -0,0 +1,126 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class ServicePrincipalEvidence : AlertEvidence, IParsable { + /// The appId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? AppId { + get { return BackingStore?.Get("appId"); } + set { BackingStore?.Set("appId", value); } + } +#nullable restore +#else + public string AppId { + get { return BackingStore?.Get("appId"); } + set { BackingStore?.Set("appId", value); } + } +#endif + /// The appOwnerTenantId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? AppOwnerTenantId { + get { return BackingStore?.Get("appOwnerTenantId"); } + set { BackingStore?.Set("appOwnerTenantId", value); } + } +#nullable restore +#else + public string AppOwnerTenantId { + get { return BackingStore?.Get("appOwnerTenantId"); } + set { BackingStore?.Set("appOwnerTenantId", value); } + } +#endif + /// The servicePrincipalName property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ServicePrincipalName { + get { return BackingStore?.Get("servicePrincipalName"); } + set { BackingStore?.Set("servicePrincipalName", value); } + } +#nullable restore +#else + public string ServicePrincipalName { + get { return BackingStore?.Get("servicePrincipalName"); } + set { BackingStore?.Set("servicePrincipalName", value); } + } +#endif + /// The servicePrincipalObjectId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ServicePrincipalObjectId { + get { return BackingStore?.Get("servicePrincipalObjectId"); } + set { BackingStore?.Set("servicePrincipalObjectId", value); } + } +#nullable restore +#else + public string ServicePrincipalObjectId { + get { return BackingStore?.Get("servicePrincipalObjectId"); } + set { BackingStore?.Set("servicePrincipalObjectId", value); } + } +#endif + /// The servicePrincipalType property + public Microsoft.Graph.Models.Security.ServicePrincipalType? ServicePrincipalType { + get { return BackingStore?.Get("servicePrincipalType"); } + set { BackingStore?.Set("servicePrincipalType", value); } + } + /// 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 servicePrincipalEvidence and sets the default values. + /// + public ServicePrincipalEvidence() : base() { + OdataType = "#microsoft.graph.security.servicePrincipalEvidence"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new ServicePrincipalEvidence CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new ServicePrincipalEvidence(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"appId", n => { AppId = n.GetStringValue(); } }, + {"appOwnerTenantId", n => { AppOwnerTenantId = n.GetStringValue(); } }, + {"servicePrincipalName", n => { ServicePrincipalName = n.GetStringValue(); } }, + {"servicePrincipalObjectId", n => { ServicePrincipalObjectId = n.GetStringValue(); } }, + {"servicePrincipalType", n => { ServicePrincipalType = n.GetEnumValue(); } }, + {"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("appId", AppId); + writer.WriteStringValue("appOwnerTenantId", AppOwnerTenantId); + writer.WriteStringValue("servicePrincipalName", ServicePrincipalName); + writer.WriteStringValue("servicePrincipalObjectId", ServicePrincipalObjectId); + writer.WriteEnumValue("servicePrincipalType", ServicePrincipalType); + writer.WriteStringValue("tenantId", TenantId); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/ServicePrincipalType.cs b/src/Microsoft.Graph/Generated/Models/Security/ServicePrincipalType.cs new file mode 100644 index 00000000000..f766bb9185e --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/ServicePrincipalType.cs @@ -0,0 +1,17 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models.Security { + public enum ServicePrincipalType { + [EnumMember(Value = "unknown")] + Unknown, + [EnumMember(Value = "application")] + Application, + [EnumMember(Value = "managedIdentity")] + ManagedIdentity, + [EnumMember(Value = "legacy")] + Legacy, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/SubmissionMailEvidence.cs b/src/Microsoft.Graph/Generated/Models/Security/SubmissionMailEvidence.cs new file mode 100644 index 00000000000..b762d584a06 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/Security/SubmissionMailEvidence.cs @@ -0,0 +1,174 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models.Security { + public class SubmissionMailEvidence : AlertEvidence, IParsable { + /// The networkMessageId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? NetworkMessageId { + get { return BackingStore?.Get("networkMessageId"); } + set { BackingStore?.Set("networkMessageId", value); } + } +#nullable restore +#else + public string NetworkMessageId { + get { return BackingStore?.Get("networkMessageId"); } + set { BackingStore?.Set("networkMessageId", value); } + } +#endif + /// The recipient property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Recipient { + get { return BackingStore?.Get("recipient"); } + set { BackingStore?.Set("recipient", value); } + } +#nullable restore +#else + public string Recipient { + get { return BackingStore?.Get("recipient"); } + set { BackingStore?.Set("recipient", value); } + } +#endif + /// The reportType property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? ReportType { + get { return BackingStore?.Get("reportType"); } + set { BackingStore?.Set("reportType", value); } + } +#nullable restore +#else + public string ReportType { + get { return BackingStore?.Get("reportType"); } + set { BackingStore?.Set("reportType", value); } + } +#endif + /// The sender property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Sender { + get { return BackingStore?.Get("sender"); } + set { BackingStore?.Set("sender", value); } + } +#nullable restore +#else + public string Sender { + get { return BackingStore?.Get("sender"); } + set { BackingStore?.Set("sender", value); } + } +#endif + /// The senderIp property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? SenderIp { + get { return BackingStore?.Get("senderIp"); } + set { BackingStore?.Set("senderIp", value); } + } +#nullable restore +#else + public string SenderIp { + get { return BackingStore?.Get("senderIp"); } + set { BackingStore?.Set("senderIp", value); } + } +#endif + /// The subject property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Subject { + get { return BackingStore?.Get("subject"); } + set { BackingStore?.Set("subject", value); } + } +#nullable restore +#else + public string Subject { + get { return BackingStore?.Get("subject"); } + set { BackingStore?.Set("subject", value); } + } +#endif + /// The submissionDateTime property + public DateTimeOffset? SubmissionDateTime { + get { return BackingStore?.Get("submissionDateTime"); } + set { BackingStore?.Set("submissionDateTime", value); } + } + /// The submissionId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? SubmissionId { + get { return BackingStore?.Get("submissionId"); } + set { BackingStore?.Set("submissionId", value); } + } +#nullable restore +#else + public string SubmissionId { + get { return BackingStore?.Get("submissionId"); } + set { BackingStore?.Set("submissionId", value); } + } +#endif + /// The submitter property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Submitter { + get { return BackingStore?.Get("submitter"); } + set { BackingStore?.Set("submitter", value); } + } +#nullable restore +#else + public string Submitter { + get { return BackingStore?.Get("submitter"); } + set { BackingStore?.Set("submitter", value); } + } +#endif + /// + /// Instantiates a new submissionMailEvidence and sets the default values. + /// + public SubmissionMailEvidence() : base() { + OdataType = "#microsoft.graph.security.submissionMailEvidence"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new SubmissionMailEvidence CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SubmissionMailEvidence(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"networkMessageId", n => { NetworkMessageId = n.GetStringValue(); } }, + {"recipient", n => { Recipient = n.GetStringValue(); } }, + {"reportType", n => { ReportType = n.GetStringValue(); } }, + {"sender", n => { Sender = n.GetStringValue(); } }, + {"senderIp", n => { SenderIp = n.GetStringValue(); } }, + {"subject", n => { Subject = n.GetStringValue(); } }, + {"submissionDateTime", n => { SubmissionDateTime = n.GetDateTimeOffsetValue(); } }, + {"submissionId", n => { SubmissionId = n.GetStringValue(); } }, + {"submitter", n => { Submitter = 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("networkMessageId", NetworkMessageId); + writer.WriteStringValue("recipient", Recipient); + writer.WriteStringValue("reportType", ReportType); + writer.WriteStringValue("sender", Sender); + writer.WriteStringValue("senderIp", SenderIp); + writer.WriteStringValue("subject", Subject); + writer.WriteDateTimeOffsetValue("submissionDateTime", SubmissionDateTime); + writer.WriteStringValue("submissionId", SubmissionId); + writer.WriteStringValue("submitter", Submitter); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/SendDtmfTonesOperation.cs b/src/Microsoft.Graph/Generated/Models/SendDtmfTonesOperation.cs index 71f4a11a684..6f1b643f163 100644 --- a/src/Microsoft.Graph/Generated/Models/SendDtmfTonesOperation.cs +++ b/src/Microsoft.Graph/Generated/Models/SendDtmfTonesOperation.cs @@ -6,7 +6,7 @@ using System; namespace Microsoft.Graph.Models { public class SendDtmfTonesOperation : CommsOperation, IParsable { - /// The completionReason property + /// The results of the action. Possible values are: unknown, completedSuccessfully, mediaOperationCanceled, unknownfutureValue. public SendDtmfCompletionReason? CompletionReason { get { return BackingStore?.Get("completionReason"); } set { BackingStore?.Set("completionReason", value); } diff --git a/src/Microsoft.Graph/Generated/Models/SignInActivity.cs b/src/Microsoft.Graph/Generated/Models/SignInActivity.cs index 72135a94cc3..1ce7d014990 100644 --- a/src/Microsoft.Graph/Generated/Models/SignInActivity.cs +++ b/src/Microsoft.Graph/Generated/Models/SignInActivity.cs @@ -14,7 +14,7 @@ public IDictionary AdditionalData { } /// Stores model information. public IBackingStore BackingStore { get; private set; } - /// The last non-interactive sign-in date for a specific user. You can use this field to calculate the last time a client attempted to sign into the directory on behalf of a user. Because some users may use clients to access tenant resources rather than signing into your tenant directly, you can use the non-interactive sign-in date to along with lastSignInDateTime to identify inactive users. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is: '2014-01-01T00:00:00Z'. Microsoft Entra ID maintains non-interactive sign-ins going back to May 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. + /// The last non-interactive sign-in date for a specific user. You can use this field to calculate the last time a client attempted (either successfully or unsuccessfully) to sign in to the directory on behalf of a user. Because some users may use clients to access tenant resources rather than signing into your tenant directly, you can use the non-interactive sign-in date to along with lastSignInDateTime to identify inactive users. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is: '2014-01-01T00:00:00Z'. Microsoft Entra ID maintains non-interactive sign-ins going back to May 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. public DateTimeOffset? LastNonInteractiveSignInDateTime { get { return BackingStore?.Get("lastNonInteractiveSignInDateTime"); } set { BackingStore?.Set("lastNonInteractiveSignInDateTime", value); } @@ -33,7 +33,7 @@ public string LastNonInteractiveSignInRequestId { set { BackingStore?.Set("lastNonInteractiveSignInRequestId", value); } } #endif - /// The last interactive sign-in date and time for a specific user. You can use this field to calculate the last time a user attempted to sign into the directory with an interactive authentication method. This field can be used to build reports, such as inactive users. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is: '2014-01-01T00:00:00Z'. Microsoft Entra ID maintains interactive sign-ins going back to April 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. + /// The last interactive sign-in date and time for a specific user. You can use this field to calculate the last time a user attempted (either successfully or unsuccessfully) to sign in to the directory with an interactive authentication method. This field can be used to build reports, such as inactive users. The timestamp represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is: '2014-01-01T00:00:00Z'. Microsoft Entra ID maintains interactive sign-ins going back to April 2020. For more information about using the value of this property, see Manage inactive user accounts in Microsoft Entra ID. public DateTimeOffset? LastSignInDateTime { get { return BackingStore?.Get("lastSignInDateTime"); } set { BackingStore?.Set("lastSignInDateTime", value); } diff --git a/src/Microsoft.Graph/Generated/Models/SocialIdentitySource.cs b/src/Microsoft.Graph/Generated/Models/SocialIdentitySource.cs new file mode 100644 index 00000000000..3eaba276f13 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/SocialIdentitySource.cs @@ -0,0 +1,62 @@ +// +using Microsoft.Kiota.Abstractions.Serialization; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System; +namespace Microsoft.Graph.Models { + public class SocialIdentitySource : IdentitySource, 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 socialIdentitySourceType property + public Microsoft.Graph.Models.SocialIdentitySourceType? SocialIdentitySourceType { + get { return BackingStore?.Get("socialIdentitySourceType"); } + set { BackingStore?.Set("socialIdentitySourceType", value); } + } + /// + /// Instantiates a new socialIdentitySource and sets the default values. + /// + public SocialIdentitySource() : base() { + OdataType = "#microsoft.graph.socialIdentitySource"; + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new SocialIdentitySource CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new SocialIdentitySource(); + } + /// + /// The deserialization information for the current model + /// + public override IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"displayName", n => { DisplayName = n.GetStringValue(); } }, + {"socialIdentitySourceType", n => { SocialIdentitySourceType = n.GetEnumValue(); } }, + }; + } + /// + /// 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.WriteEnumValue("socialIdentitySourceType", SocialIdentitySourceType); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/SocialIdentitySourceType.cs b/src/Microsoft.Graph/Generated/Models/SocialIdentitySourceType.cs new file mode 100644 index 00000000000..49b3e999fa2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/SocialIdentitySourceType.cs @@ -0,0 +1,11 @@ +// +using System.Runtime.Serialization; +using System; +namespace Microsoft.Graph.Models { + public enum SocialIdentitySourceType { + [EnumMember(Value = "facebook")] + Facebook, + [EnumMember(Value = "unknownFutureValue")] + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs index c776744ca98..6270edf9870 100644 --- a/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/Item/OrganizationItemRequestBuilder.cs @@ -113,8 +113,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Organization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization. - /// Find more info here + /// Update the properties of a organization object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -167,7 +167,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of the currently authenticated organization. In this case, organization is defined as a collection of exactly one record, and so its ID must be specified in the request. The ID is also known as the tenantId of the organization. + /// Update the properties of a organization object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Organization/OrganizationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/OrganizationRequestBuilder.cs index 5ae90679222..84d6eb02bf2 100644 --- a/src/Microsoft.Graph/Generated/Organization/OrganizationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/OrganizationRequestBuilder.cs @@ -62,8 +62,8 @@ public OrganizationRequestBuilder(Dictionary pathParameters, IRe public OrganizationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/organization{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List properties and relationships of the organization objects. - /// Find more info here + /// Retrieve a list of organization objects. There's only one organization object in the collection. + /// 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 GetAsync(Action(requestInfo, Microsoft.Graph.Models.Organization.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List properties and relationships of the organization objects. + /// Retrieve a list of organization objects. There's only one organization object in the collection. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -145,7 +145,7 @@ public OrganizationRequestBuilder WithUrl(string rawUrl) { return new OrganizationRequestBuilder(rawUrl, RequestAdapter); } /// - /// List properties and relationships of the organization objects. + /// Retrieve a list of organization objects. There's only one organization object in the collection. /// public class OrganizationRequestBuilderGetQueryParameters { /// Include count of items 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 cdc9675dfc7..be1f3fe1b16 100644 --- a/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/Item/Lists/Item/ListItemRequestBuilder.cs @@ -88,8 +88,8 @@ public async Task DeleteAsync(Action - /// Returns the metadata for a [list][]. - /// Find more info here + /// Get a list of rich long-running operations associated with a list. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -145,7 +145,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Returns the metadata for a [list][]. + /// Get a list of rich long-running operations associated with a list. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -193,7 +193,7 @@ public ListItemRequestBuilder WithUrl(string rawUrl) { public class ListItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Returns the metadata for a [list][]. + /// Get a list of rich long-running operations associated with a list. /// public class ListItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs index c6d157da26c..f16ae4cab04 100644 --- a/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Sites/SitesRequestBuilder.cs @@ -62,8 +62,8 @@ public SitesRequestBuilder(Dictionary pathParameters, IRequestAd public SitesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/sites{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// List all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. - /// Find more info here + /// Search across a SharePoint tenant for [sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -82,7 +82,7 @@ public async Task GetAsync(Action(requestInfo, SiteCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// List all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. + /// Search across a SharePoint tenant for [sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -105,7 +105,7 @@ public SitesRequestBuilder WithUrl(string rawUrl) { return new SitesRequestBuilder(rawUrl, RequestAdapter); } /// - /// List all available [sites][] in an organization. Specific filter criteria and query options are also supported and described below: In addition, you can use a [$search][] query against the /sites collection to find sites matching given keywords.If you want to list all sites across all geographies, refer to getAllSites][]. For more guidance about building applications that use site discovery for scanning purposes, see [Best practices for discovering files and detecting changes at scale. + /// Search across a SharePoint tenant for [sites][] that match keywords provided. The only property that works for sorting is createdDateTime. The search filter is a free text search that uses multiple properties when retrieving the search results. /// public class SitesRequestBuilderGetQueryParameters { /// Include count of items 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 474932b8209..505dcc6dafb 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 @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. - /// Find more info here + /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index 5dd9613a877..e9931bfd92c 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 @@ -67,8 +67,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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index bd4ea6742a1..96d29e5eccd 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 @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. - /// Find more info here + /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs index 678e620da14..f8f33ea905c 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -67,8 +67,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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs index 261390d4333..96557eab847 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs @@ -61,6 +61,20 @@ public TeamworkNotificationRecipient Recipient { get { return BackingStore?.Get("recipient"); } set { BackingStore?.Set("recipient", value); } } +#endif + /// The teamsAppId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TeamsAppId { + get { return BackingStore?.Get("teamsAppId"); } + set { BackingStore?.Set("teamsAppId", value); } + } +#nullable restore +#else + public string TeamsAppId { + get { return BackingStore?.Get("teamsAppId"); } + set { BackingStore?.Set("teamsAppId", value); } + } #endif /// The templateParameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,6 +128,7 @@ public virtual IDictionary> GetFieldDeserializers() { {"chainId", n => { ChainId = n.GetLongValue(); } }, {"previewText", n => { PreviewText = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, {"recipient", n => { Recipient = n.GetObjectValue(TeamworkNotificationRecipient.CreateFromDiscriminatorValue); } }, + {"teamsAppId", n => { TeamsAppId = n.GetStringValue(); } }, {"templateParameters", n => { TemplateParameters = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.KeyValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, {"topic", n => { Topic = n.GetObjectValue(TeamworkActivityTopic.CreateFromDiscriminatorValue); } }, }; @@ -128,6 +143,7 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteLongValue("chainId", ChainId); writer.WriteObjectValue("previewText", PreviewText); writer.WriteObjectValue("recipient", Recipient); + writer.WriteStringValue("teamsAppId", TeamsAppId); writer.WriteCollectionOfObjectValues("templateParameters", TemplateParameters); writer.WriteObjectValue("topic", Topic); writer.WriteAdditionalData(AdditionalData); 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 e2279518c86..77309f72ac4 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 @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. - /// Find more info here + /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index 93ef01dcc62..91cd8acb136 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 @@ -67,8 +67,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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs index 55704aedb51..ec9419dede0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/CalendarViewRequestBuilder.cs @@ -37,17 +37,17 @@ public EventItemRequestBuilder this[string position] { get { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public CalendarViewRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", pathParameters) { + public CalendarViewRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView{?startDateTime*,endDateTime*,%24top,%24skip,%24filter,%24count,%24orderby,%24select}", pathParameters) { } /// /// Instantiates a new CalendarViewRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public CalendarViewRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView{?%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { + public CalendarViewRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView{?startDateTime*,endDateTime*,%24top,%24skip,%24filter,%24count,%24orderby,%24select}", rawUrl) { } /// - /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar (../me/calendarView) or some other calendar of the user's. + /// The calendar view for the calendar. Navigation property. Read-only. /// Find more info here /// /// Cancellation token to use when cancelling requests @@ -67,7 +67,7 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar (../me/calendarView) or some other calendar of the user's. + /// The calendar view for the calendar. Navigation property. Read-only. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -90,12 +90,22 @@ public CalendarViewRequestBuilder WithUrl(string rawUrl) { return new CalendarViewRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the occurrences, exceptions and single instances of events in a calendar view defined by a time range,from a user's default calendar (../me/calendarView) or some other calendar of the user's. + /// The calendar view for the calendar. Navigation property. Read-only. /// public class CalendarViewRequestBuilderGetQueryParameters { /// Include count of items [QueryParameter("%24count")] public bool? Count { get; set; } + /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif /// Filter items by property values #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -129,6 +139,16 @@ public class CalendarViewRequestBuilderGetQueryParameters { /// Skip the first n items [QueryParameter("%24skip")] public int? Skip { get; set; } + /// The start date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T19:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } +#endif /// Show only the first n items [QueryParameter("%24top")] public int? Top { get; set; } diff --git a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs index 2c4c6481dde..bc25d98c426 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/CalendarGroups/Item/Calendars/Item/CalendarView/Item/EventItemRequestBuilder.cs @@ -74,14 +74,14 @@ public class EventItemRequestBuilder : BaseRequestBuilder { /// /// Path parameters for the request /// The request adapter to use to execute the requests. - public EventItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}{?%24select}", pathParameters) { + public EventItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}{?startDateTime*,endDateTime*,%24select}", pathParameters) { } /// /// Instantiates a new EventItemRequestBuilder and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. - public EventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}{?%24select}", rawUrl) { + public EventItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/calendarGroups/{calendarGroup%2Did}/calendars/{calendar%2Did}/calendarView/{event%2Did}{?startDateTime*,endDateTime*,%24select}", rawUrl) { } /// /// The calendar view for the calendar. Navigation property. Read-only. @@ -129,6 +129,16 @@ public EventItemRequestBuilder WithUrl(string rawUrl) { /// The calendar view for the calendar. Navigation property. Read-only. /// public class EventItemRequestBuilderGetQueryParameters { + /// The end date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T20:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("endDateTime")] + public string? EndDateTime { get; set; } +#nullable restore +#else + [QueryParameter("endDateTime")] + public string EndDateTime { get; set; } +#endif /// Select properties to be returned #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -138,6 +148,16 @@ public class EventItemRequestBuilderGetQueryParameters { #else [QueryParameter("%24select")] public string[] Select { get; set; } +#endif + /// The start date and time of the time range, represented in ISO 8601 format. For example, 2019-11-08T19:00:00-08:00 +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("startDateTime")] + public string? StartDateTime { get; set; } +#nullable restore +#else + [QueryParameter("startDateTime")] + public string StartDateTime { get; set; } #endif } /// diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index 9d9b0e1d09e..bc2fe365337 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -49,8 +49,8 @@ public async Task DeleteAsync(Action - /// Retrieve a conversationMember from a chat or channel. - /// Find more info here + /// Retrieve a conversationMember from a chat. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -106,7 +106,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Retrieve a conversationMember from a chat or channel. + /// Retrieve a conversationMember from a chat. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -154,7 +154,7 @@ public ConversationMemberItemRequestBuilder WithUrl(string rawUrl) { public class ConversationMemberItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Retrieve a conversationMember from a chat or channel. + /// Retrieve a conversationMember from a chat. /// public class ConversationMemberItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs index 39ebaa8ab85..3e34c8f29f2 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. - /// Find more info here + /// Send a new chatMessage in the specified channel or a chat. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs index c60ceb97d5e..300d01f0845 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs @@ -61,6 +61,20 @@ public TeamworkNotificationRecipient Recipient { get { return BackingStore?.Get("recipient"); } set { BackingStore?.Set("recipient", value); } } +#endif + /// The teamsAppId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TeamsAppId { + get { return BackingStore?.Get("teamsAppId"); } + set { BackingStore?.Set("teamsAppId", value); } + } +#nullable restore +#else + public string TeamsAppId { + get { return BackingStore?.Get("teamsAppId"); } + set { BackingStore?.Set("teamsAppId", value); } + } #endif /// The templateParameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,6 +128,7 @@ public virtual IDictionary> GetFieldDeserializers() { {"chainId", n => { ChainId = n.GetLongValue(); } }, {"previewText", n => { PreviewText = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, {"recipient", n => { Recipient = n.GetObjectValue(TeamworkNotificationRecipient.CreateFromDiscriminatorValue); } }, + {"teamsAppId", n => { TeamsAppId = n.GetStringValue(); } }, {"templateParameters", n => { TemplateParameters = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.KeyValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, {"topic", n => { Topic = n.GetObjectValue(TeamworkActivityTopic.CreateFromDiscriminatorValue); } }, }; @@ -128,6 +143,7 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteLongValue("chainId", ChainId); writer.WriteObjectValue("previewText", PreviewText); writer.WriteObjectValue("recipient", Recipient); + writer.WriteStringValue("teamsAppId", TeamsAppId); writer.WriteCollectionOfObjectValues("templateParameters", TemplateParameters); writer.WriteObjectValue("topic", Topic); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/Events/EventsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Events/EventsRequestBuilder.cs index a0bce06ac17..635a338896d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Events/EventsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Events/EventsRequestBuilder.cs @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, EventCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. - /// Find more info here + /// Create one or more multi-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources are supported: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Create one or more single-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. + /// Create one or more multi-value extended properties in a new or existing instance of a resource. The following user resources are supported: The following group resources are supported: See Extended properties overview for more information about when to useopen extensions or extended properties, and how to specify extended properties. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs index fd6f50e9cf1..b20b0b583a0 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. - /// Find more info here + /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index bc08b7ada38..9751025f21e 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs @@ -67,8 +67,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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs index e83c8de078e..80acc9e16ea 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Members/Item/ConversationMemberItemRequestBuilder.cs @@ -69,8 +69,8 @@ public async Task GetAsync(Action(requestInfo, ConversationMember.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the role of a conversationMember in a team or channel. - /// Find more info here + /// 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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -123,7 +123,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the role of a conversationMember in a team or channel. + /// Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs index 3d6723213f1..9f2375dbd90 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -67,8 +67,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 /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Send a new chatMessage in the specified channel. + /// Send a new chatMessage in the specified channel or a chat. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs index 217e58c761f..211d3f3ba90 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/SendActivityNotification/SendActivityNotificationPostRequestBody.cs @@ -61,6 +61,20 @@ public TeamworkNotificationRecipient Recipient { get { return BackingStore?.Get("recipient"); } set { BackingStore?.Set("recipient", value); } } +#endif + /// The teamsAppId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TeamsAppId { + get { return BackingStore?.Get("teamsAppId"); } + set { BackingStore?.Set("teamsAppId", value); } + } +#nullable restore +#else + public string TeamsAppId { + get { return BackingStore?.Get("teamsAppId"); } + set { BackingStore?.Set("teamsAppId", value); } + } #endif /// The templateParameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -114,6 +128,7 @@ public virtual IDictionary> GetFieldDeserializers() { {"chainId", n => { ChainId = n.GetLongValue(); } }, {"previewText", n => { PreviewText = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, {"recipient", n => { Recipient = n.GetObjectValue(TeamworkNotificationRecipient.CreateFromDiscriminatorValue); } }, + {"teamsAppId", n => { TeamsAppId = n.GetStringValue(); } }, {"templateParameters", n => { TemplateParameters = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.KeyValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, {"topic", n => { Topic = n.GetObjectValue(TeamworkActivityTopic.CreateFromDiscriminatorValue); } }, }; @@ -128,6 +143,7 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteLongValue("chainId", ChainId); writer.WriteObjectValue("previewText", PreviewText); writer.WriteObjectValue("recipient", Recipient); + writer.WriteStringValue("teamsAppId", TeamsAppId); writer.WriteCollectionOfObjectValues("templateParameters", TemplateParameters); writer.WriteObjectValue("topic", Topic); writer.WriteAdditionalData(AdditionalData); 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 37f2b5a5834..a35d7c5fab9 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 @@ -47,8 +47,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{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a message. - /// Find more info here + /// Retrieve a list of attachment objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -131,7 +131,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// public class AttachmentsRequestBuilderGetQueryParameters { /// Include count of items 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 5ee6284f9c5..d3b3e859812 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 @@ -47,8 +47,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{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a message. - /// Find more info here + /// Retrieve a list of attachment objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -131,7 +131,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// 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 e6df056cd60..9174c22e5a5 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 @@ -47,8 +47,8 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/attachments{?%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) { } /// - /// Retrieve a list of attachment objects attached to a message. - /// Find more info here + /// Retrieve a list of attachment objects. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -89,7 +89,7 @@ public async Task PostAsync(Attachment body, Action(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -131,7 +131,7 @@ public AttachmentsRequestBuilder WithUrl(string rawUrl) { return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects attached to a message. + /// Retrieve a list of attachment objects. /// 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 79443290ee5..06b39abc3c7 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/MessageItemRequestBuilder.cs @@ -89,8 +89,8 @@ public MessageItemRequestBuilder(Dictionary pathParameters, IReq public MessageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}{?includeHiddenMessages*,%24select,%24expand}", rawUrl) { } /// - /// Delete a message in the specified user's mailbox, or delete a relationship of the message. - /// Find more info here + /// Delete eventMessage. + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -110,7 +110,7 @@ public async Task DeleteAsync(Action /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -129,8 +129,8 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of a message object. - /// Find more info here + /// Update the properties of an eventMessage object. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -151,7 +151,7 @@ public async Task DeleteAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete a message in the specified user's mailbox, or delete a relationship of the message. + /// Delete eventMessage. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -183,7 +183,7 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of a message object. + /// Update the properties of an eventMessage object. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs index 21e320fc98b..13b35f4fc9a 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs @@ -29,7 +29,7 @@ public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Get media content for the navigation property messages from users - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs index f7bd8785317..e448cc4a205 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs @@ -48,7 +48,7 @@ public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b } /// /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here + /// Find more info here /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -67,8 +67,8 @@ public async Task GetAsync(Action(requestInfo, MessageCollectionResponse.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 draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -105,7 +105,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 draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/SendActivityNotification/SendActivityNotificationPostRequestBody.cs b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/SendActivityNotification/SendActivityNotificationPostRequestBody.cs index a73089fdf92..e4c0ee0a95d 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Teamwork/SendActivityNotification/SendActivityNotificationPostRequestBody.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Teamwork/SendActivityNotification/SendActivityNotificationPostRequestBody.cs @@ -47,6 +47,20 @@ public ItemBody PreviewText { get { return BackingStore?.Get("previewText"); } set { BackingStore?.Set("previewText", value); } } +#endif + /// The teamsAppId property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? TeamsAppId { + get { return BackingStore?.Get("teamsAppId"); } + set { BackingStore?.Set("teamsAppId", value); } + } +#nullable restore +#else + public string TeamsAppId { + get { return BackingStore?.Get("teamsAppId"); } + set { BackingStore?.Set("teamsAppId", value); } + } #endif /// The templateParameters property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -99,6 +113,7 @@ public virtual IDictionary> GetFieldDeserializers() { {"activityType", n => { ActivityType = n.GetStringValue(); } }, {"chainId", n => { ChainId = n.GetLongValue(); } }, {"previewText", n => { PreviewText = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, + {"teamsAppId", n => { TeamsAppId = n.GetStringValue(); } }, {"templateParameters", n => { TemplateParameters = n.GetCollectionOfObjectValues(Microsoft.Graph.Models.KeyValuePair.CreateFromDiscriminatorValue)?.ToList(); } }, {"topic", n => { Topic = n.GetObjectValue(TeamworkActivityTopic.CreateFromDiscriminatorValue); } }, }; @@ -112,6 +127,7 @@ public virtual void Serialize(ISerializationWriter writer) { writer.WriteStringValue("activityType", ActivityType); writer.WriteLongValue("chainId", ChainId); writer.WriteObjectValue("previewText", PreviewText); + writer.WriteStringValue("teamsAppId", TeamsAppId); writer.WriteCollectionOfObjectValues("templateParameters", TemplateParameters); writer.WriteObjectValue("topic", Topic); writer.WriteAdditionalData(AdditionalData); diff --git a/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs index 16b6df86e1f..e50fadc1938 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/UserItemRequestBuilder.cs @@ -437,7 +437,7 @@ public ExportDeviceAndAppManagementDataWithSkipWithTopRequestBuilder ExportDevic } /// /// Update the properties of a user object. - /// Find more info here + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests diff --git a/src/Microsoft.Graph/Generated/kiota-lock.json b/src/Microsoft.Graph/Generated/kiota-lock.json index dd2889dee8f..7f3727180ba 100644 --- a/src/Microsoft.Graph/Generated/kiota-lock.json +++ b/src/Microsoft.Graph/Generated/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "A51F0B80678F4961B58F61BE8CA500D5BFE398232A8622C953865B2E86FEC2189BFD0742733426B1818061CC458E7925D509528E22D679E40C997DCFEA45E8B6", + "descriptionHash": "02D9E05E8AD229038F0A43DB8F9ED8F1DA087984C0F8A58B80D8BCD4016DE4A90AA60F7BB1FEB810FDE64DCDBB99C71CCD718A7BD8771B3E82394B7281A7488A", "descriptionLocation": "../../msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.10.0", + "kiotaVersion": "1.11.0", "clientClassName": "BaseGraphServiceClient", "clientNamespaceName": "Microsoft.Graph", "language": "CSharp", From a02f2e4f7739aac07bc78fd3dd6510e305ce29c3 Mon Sep 17 00:00:00 2001 From: Andrew Omondi Date: Tue, 16 Jan 2024 16:12:09 +0300 Subject: [PATCH 3/3] Bumps version and release notes --- CHANGELOG.md | 5 + .../Extensions/SubscriptionExtensions.cs | 33 +++++ src/Microsoft.Graph/Microsoft.Graph.csproj | 2 +- .../Extensions/ChangeNotificationTests.cs | 120 ++++++++++++++++++ 4 files changed, 159 insertions(+), 1 deletion(-) create mode 100644 src/Microsoft.Graph/Extensions/SubscriptionExtensions.cs create mode 100644 tests/Microsoft.Graph.DotnetCore.Test/Models/Extensions/ChangeNotificationTests.cs diff --git a/CHANGELOG.md b/CHANGELOG.md index fec5d5fe0af..872a87f74be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v ## [Unreleased] +## [5.39.0] - 2024-01-16 + +- Latest metadata updates from 16th January 2024. +- Fixes missing interfaces for changenotification models(https://github.com/microsoftgraph/msgraph-sdk-dotnet/issues/2237). + ## [5.38.0] - 2024-01-03 - Latest metadata updates from 2nd January 2024. diff --git a/src/Microsoft.Graph/Extensions/SubscriptionExtensions.cs b/src/Microsoft.Graph/Extensions/SubscriptionExtensions.cs new file mode 100644 index 00000000000..1ef7c9e3605 --- /dev/null +++ b/src/Microsoft.Graph/Extensions/SubscriptionExtensions.cs @@ -0,0 +1,33 @@ +using System; +using System.Security.Cryptography.X509Certificates; +using Microsoft.Graph; + +namespace Microsoft.Graph.Models +{ + public static class SubscriptionExtensions + { + /// + /// Adds the public encryption certificate information for change notifications with resource data to the subscription creation information. + /// + /// The subscription instance of type + /// Certificate to use for encryption + /// Thrown when is null + public static void AddPublicEncryptionCertificate(this Subscription subscription, X509Certificate2 certificate) + { + if (certificate == null) + throw new ArgumentNullException(nameof(certificate)); + + var tempSubscription = new EncryptableSubscription(); + tempSubscription.AddPublicEncryptionCertificate(certificate); + subscription.EncryptionCertificate = tempSubscription.EncryptionCertificate; + } + } + + internal class EncryptableSubscription : IEncryptableSubscription + { + /// + /// The encryption certificate + /// + public string EncryptionCertificate { get; set; } + } +} diff --git a/src/Microsoft.Graph/Microsoft.Graph.csproj b/src/Microsoft.Graph/Microsoft.Graph.csproj index 29d5e7254a8..e67ec67b960 100644 --- a/src/Microsoft.Graph/Microsoft.Graph.csproj +++ b/src/Microsoft.Graph/Microsoft.Graph.csproj @@ -22,7 +22,7 @@ false 35MSSharedLib1024.snk true - 5.38.0 + 5.39.0 diff --git a/tests/Microsoft.Graph.DotnetCore.Test/Models/Extensions/ChangeNotificationTests.cs b/tests/Microsoft.Graph.DotnetCore.Test/Models/Extensions/ChangeNotificationTests.cs new file mode 100644 index 00000000000..2dd23a977d2 --- /dev/null +++ b/tests/Microsoft.Graph.DotnetCore.Test/Models/Extensions/ChangeNotificationTests.cs @@ -0,0 +1,120 @@ +using Microsoft.Graph.Models; +using Xunit; +using System.Security.Cryptography.X509Certificates; +using System.Security; +using System; +using System.Threading.Tasks; +using Microsoft.Kiota.Abstractions.Serialization; +using Microsoft.Kiota.Serialization.Json; + +namespace Microsoft.Graph.DotnetCore.Test.Extensions +{ + public class ChangeNotificationTests + { + private readonly X509Certificate2 _certificate; + public ChangeNotificationTests() + { + // This is a DUMMY certificate used to validate the functionality + var certificateString = "MIIQagIBAzCCEDAGCSqGSIb3DQEHAaCCECEEghAdMIIQGTCCBg8GCSqGSIb3DQEHBqCCBgAwggX8AgEAMIIF9QYJKoZIhvcNAQcBMBwGCiqGSIb3DQEMAQYwDgQIEAk4/VMAFtsCAggAgIIFyAXxkPPBcl1MbwgA3SSTHD3WBxi" + + "qiGVC9+0ufNW70SoIyx7V9ZVP/eFXb/moZD7BEir30WCdqqZCvh3aHvoL1SlreKXFmYqLzUViqBsHl3GIox2f/Ic7CS486JCoLHMoTHPcC3Y40zr8HX+Zc0SJs1cT4KFN3UJnoKwD+lWgn7XOiyzKWC6zksqM2spnc5W6+I5eHo" + + "SDEkgPa6mDYtB+0/9bPSV8XkDu9MWGUhq+bNBlenMwAF+QeWBbaTskiEHgloJPzqVop8aT/KRsKLNBrWQ64JJ5dYG/yjqg0/oA//T8/cCDqhTuc0FiS4IRzmKnTsOuVgbwJ8t3vvd6lHRfFZXTYnMmRLuZ62xvzsAIRCg6+CUmU" + + "fJB9SZodYMD1dC3ScIHoNbbgJUfbUOriC9lL6kLPdxBOAmICMy+47t1PvmFpFJe0fzz8M26Lg5Bbc+pVdwKBDXa2+15Dw/vSiTZuEq1e5C/EJwZDzKU9cskqONGeegxSMDlY12vJR2eY6m/fVrpu58QTAi9kkl5+U4naQp4WXMy" + + "9EydbqNWge1Y3CFxZBldktC6PajhjAF83mMaohAZ+91SfTLx2bar8vxWxCTePSwci2vyZDrzSCvogaNa4CMJViz7Vfbzof4WOTw5tYin9cCNHQuw47hLDVZtIevavAkwruwmXNbd1l7lr9433AdBRh9iiG6uMpwJYAPwj8lkGDU" + + "1H0MFBYjvWMVdh3S4KUkN6kIZPCryFcBKWvqmZn0tVpCbtIlCARXEoz2iYR+VydRW0C5+BlnYCCL60rylirKlRQSm4yzY6vr3wFjWxtEn4SMdR8HUhT7EqAel6AIYO9ZFsJ76GK994l/QMy++pjd4HRIw3SSNoshzQA+y9+MWcP" + + "sUMUj0gS+9NXr/GZ/G4m1gWnuFOnulUWXYD1CctimampvaPwdcWKrUKnzUeMFYxMkMdycEkfePPw4oTYHw5/OgBv4/3PNuuIDBwA0XNop9ixrcNtT+O2eqyITIJLZ6xcxS8aVvrGeGcKs+u0CC4mqvKKVXPLYJ7qN1lznHVEMB7" + + "97JM3SQyhGcYXOqDRV4GlXbAPYbH7P7pbepTF/Y2TascDkcpmX3UeglK6L/zcNG2X+RdjVrJpeNCYVHt9xgQ2eIb9O+6U5eBt25UeUjqa1JBcHf1/XcMIp5+Tf0xO00xV+faI9vXFk5C3DuEOQh6E7Gmp+aPa/s9H/4yV2teuYJ" + + "SxXkszbTvy5bC0C00rD9qFsQORNnZM1MePzbQ0CNAadNiDzdOluDRruwKAGWtxjnjqzMOxfRBZwx2AJfc7EO2zgUaUpoCQQ+Aznnt1zHoWsTP1HcloE3MginzLi76PwwEMbvnc6U2stqsbkENqX6O1OahqeP9C98qlXt12j8vmV" + + "xbFbLRFJYEDkv3hEIOkZmfIUZZ7PtQG6pcz4MXy8VNubgrz1BKd1FDiajGEN9w0z18sszjVRogiTIuST47eN473PmeqMuQDKf4w+nFsQbPYC7Ldxd+DHCdDVXpEeF3ImtmB5cvZnL8VSnCit8Uarws9tj8NCL0RaCJa5aAWGdkb" + + "9+Se4A1sBLn60lODQ0VLGg6M3GQYlLKkGFDNZ13SfBlEzehOE3yIPo+BD2kFoR0Tp1ITMj5CX88EZ30CY1u0vDtjHlFnvCcUcCxA5Ck8QaVR+3ghdUCFyZWjc7pd6ivRnH1AUO3f3HJq+UYbBHvKEG6UYviPGypijsH+4utOdxU" + + "sLCp7Xo06ieotorfbTLMkLcp6G0PykLbT7D+B5f+XNfB5pvjIzB5qo7b9tq4KzVVm67aBCRWF9UQP59/XbHpTL8UCHPB5StAkZNSfaqFIetiJFbYhRK40G5eOiUShX3SZnwxejRb91TrR4in3HuiB8VvAxxzozqJrFBT02XiNuG" + + "3EzW215isLunbU7o3w2ZVrspwWDNJV1kWv0gtg4rls+vt/jSQ+lhwGiZHHVw7WPlnzMwggoCBgkqhkiG9w0BBwGgggnzBIIJ7zCCCeswggnnBgsqhkiG9w0BDAoBAqCCCW4wgglqMBwGCiqGSIb3DQEMAQMwDgQIAE5+HZYwEY8" + + "CAggABIIJSEPsDMNEgZJkFSZUJZ8cuCA1E2e9/jJUu3RPzhoUMRjx++17zprL5LVF4vfQ2Dgd16pQ/IdP2yhK+YHfWvjYvo9E/xPx2V6qXzC7r1VyO0qZSmYuYhVIlMo+vrexuT0UeWQvjXX72DLVcixCGWrUf8qt9CqofChyjn" + + "UddsD9hdoWgNSTgBMi6aNFxlFFfeJMOeTfUbFOGAnUFwySWUnwA3Lx7NrcKWLngmvmyo/zl8++M528SeEGAT7jeZ3NdkI8OqCWlE77ybmZYHXJRgq4D01oVdiQAgnd3Wj8sKmrjIByc23IdIrusHgM5b9BYXdsiEo3seJ6H4V4B" + + "tG5KOPFpM3m2KwZDtlLfgj4Od/XbyZwtRkLOVvOA8ARtDPlfIR8nW+ptFpMlaWGX72oreMm6utQ3OWJtjx+xFKm+VgVhJpJrt1NC1U1vnVp3apwcSXB66nf6gxfipQoUubUoFqUbIBA6lVECVN2XQcO9oHF4exOxAXA0/R45dMm" + + "UIRAc81x6B5I/sRWxYybwtWDUvilLdpjmgzjrQZM8S7EiG13r8mRbYXgtAHFxDv80DYZuywutclEYrFEVoXLGmXBXqlw/uFRQq9ee9xFbrYet8nYCIsUhPc5xF3bLG5bNaIhNrey3+53PlX6ralAfDmCFUHFor2pVnMP0HxG7bq" + + "8ylUNzIVbcliDFIeukdF0fBc0L7VtGaXKLKSZPx7QE4W3dzGRkBPTuG13wOf7batwdV5AwBUoNXLKqbvzqj/M6LgCTdtZ0Qlf7MKH1Av2aYxIV9m/053CKL3tmCj06EkuTWhmMQcfckrnMoInVrmgOpsjX0nQ1EaxkglJtpm2u0" + + "MKN7f9liXOzg5x1aUvIIEddJUxTnpbcl8AEGnPuZvScsQ9JajbRA8v+0gv+qLIgh4esC+AV4ufRV01HOjA/30S1WTAykU+HPvLq/goz8SwtLVmD9F1n5ppWULLYbQObKVUmGiJWjvFDdVtuR4XA1SpBO6nC4wL/Qe2CG360uj9s" + + "zvgDXYVF108/Xr/pJqwHhyb3dujsPre73zS2AWjKPRC/qbe+LZw+Yj4KVD3MslFg14CkS/TPK1zdUyBEnNJIBatbp28/NNX3bMd2TaB7mIlr4T2iSQI4yf5U5gxnPXGOUeqLqKbi7iUbHHk6407PkyIZPyBxUaSIi/KtpUkGvY+" + + "aTAtLLA5F6tKp6FpsvbGBUkOCBcAMLc36Se9GG6UfBf6ZIFtZBpugp4+aZlKxzzigEF+8S4v4/4lm4HcLE7dC8ChD+fPtAQqqMjWmJnrp1Jm20URW//8mk7WVzNTEPuRIeFXTLw52pRtO6E51V085lX3cvEvNgcN3GiCnztb5W7" + + "Tx5eYFGbkXKhmc8OSbNZ1QfAlWwPyVumFujC7bLiCp6V9R0MMUlGY6BiJwFNGM0Isoz7v3Y2DLlYdztdNto9I1+73mMXsCnsCmQTE4pqjGX4imva64pIELuQ2AE2ecAZ7/J/v3DXhsgUXkAnjZIvqnAr/UOBkDDjLc7xByGEkzD" + + "D0PFQclF4ehxo8s8ttUT9VXmLuWgj1inbIU7gcTWaVZFA+4cTeuKDfOCQ+LNaYrv3EZ96FuEO/Dj0Eo+7iiIvWm13ggN+39Bmbp+nerB2r0geAOO6QiPIRD8v2Slwv2Pv3CrBhSX9mVAFt195ZFd3sojhGgqlcJ4tRdV/pGb5At" + + "4T4D0qcRop3aOQ9UST5e1Gmc2w3+z07tCEBsp+teQurAVjX7laEHhA2oavJii9DGAau94X63lURBEQmX8EE6b/9k432dTw5evCkzzO3XMyssvXuEHeuSPnFnLkHFrn9IuHh9LkZvTkQbXRuVVhjnmrfy8Hgq9hK/Tgfax0vow8G" + + "v3CVPptYxL6uo+N4aHHROU4IkOiaV8hUIRFeKh6uE8ILDxWKo+QT5i1iwsm6mhm4cZno7NxCseIXmveU47qhJ/FuwMRVzUfvIzeanEoNUUEEyurqgDSJWqtZLHa9N2FbHHbR30YF7HekH48mvB7MXcHywHEcgMo8rL4I1F820Bd" + + "tLL4xXc1g0NoFWpnrBavoi6mCNcqc4eULIcF5MPg9k1xE663Sw6xlrVKEgXDHHivsv4Y0D5EYRxcqeOkkQ4AwH0a7Y7ps2ZsUxVenXtBqSeaGgY5tY4GX55+ko9tyyOkVV9XT6JcBfCxPtwEeyV+oVlMRg9alVCiw7scMeFFDiH" + + "+4a6CI/J0hyluBjuChypu6i1UjJDC+GloiyiiRktBw1b7Hytg5w8u9tTMNCVNHWLuvGSmzPyYymAIiRSqrCtVH/APv+SWtGC+eNh5+mZc0hz7hHi6gmc7zB/58+VVOdm0vqGaQx28uv5Pht5yw7KgKgtFt//0KvAsCKYso6FsTU" + + "4IzJL3uBPp20xb5Vka4I69c3ysd8Jcx2Y3fykech34fhRLIqJRBo42+ekhAEkF5nZTVFBYgOFv6jir4gTxI4Bax6ukBNDQYDY9VL+dIDU1/PPtepHRNB6lqlKX4Y5T6tqn8u5UbeMVug+ket0oaQ4SObAOkrJdgyE1aGXfSYGoD" + + "vOYz8OCFWNJjDECCrZgniKbV+fxgcOExbXD1Au9W0wgHnagT+uoik0rshi6nsIel4XmVv/MiQowK35s6Olq4mrdRPoOwoePuo3/CEL+BwRlX0aJhFgRS5O0L/zD8Hc8EPR6CO9+8jbkbBQ80KnVsS25ArgoA45CSFCrmqRxFnnp" + + "R6Dvlr0EmlDfGOnFlnZXZNIuPYZZT6UbH0ObaxDKYMPZ2NRbfETfdDHM+WBPuqGVc6OiMqa7PFkHjispf7saXtSrcpL+UYvNzX4PQwpUi8frl0Aq7w7c8GKosmaNp3VYiTc9cAcd/JlX5dAZK2yndVpmQlUeA028j5Lyc9Hm9Gn" + + "T6wjPT4x2lYvXd+AwOBY/3CY2eAslCN+4nmoRZnovDH4Ffp2bnId9FrsViBDWLKWV63yN2OTnTPJxj7ZQEC6T78sdqEpw5vKdi3xYYj2MhBXNohE0lK3Ig4ijsB9P16bXA8PcKaIwhnpeTKsLcdBPwVapuDku24u4u/Z/A+Q3Ls" + + "lbEJdiRhGrHv6I+MJd2Gx/1qBU6VO4N/vC/VL3uv5VY/zRcA4r4ff7m7nfsuwyz5JsLMIcQEx0LuKyy74XmayhpdDE1RlovO0+JkzFmMCMGCSqGSIb3DQEJFTEWBBRLlTU+CGrTcZZgas+DShRTLwPm2zA/BgkqhkiG9w0BCRQx" + + "Mh4wAHIAaQBjAGgAbgBvAHQAaQBmAGkAYwBhAHQAaQBvAG4AcwBhAHAAcAAuAGMAbwBtMDEwITAJBgUrDgMCGgUABBShhhfLZmAOmqGltImT+9krDrQGAgQId7jD11L05jECAggA"; + var secureString = new SecureString(); + secureString.AppendChar('r'); + secureString.AppendChar('i'); + secureString.AppendChar('c'); + secureString.AppendChar('h'); + this._certificate = new X509Certificate2(Convert.FromBase64String(certificateString), secureString); + + // register the default serialization instance as the generator would. + ParseNodeFactoryRegistry.DefaultInstance.ContentTypeAssociatedFactories.TryAdd(CoreConstants.MimeTypeNames.Application.Json, new JsonParseNodeFactory()); + } + + + [Fact] + public void AddPublicEncryptionCertificate() + { + // arrange + var subscription = new Subscription(); + + // act + subscription.AddPublicEncryptionCertificate(_certificate); + + // assert + Assert.NotNull(subscription.EncryptionCertificate); + + // Assert that the cert only has the public key + var addedCertificate = new X509Certificate2(Convert.FromBase64String(subscription.EncryptionCertificate)); + Assert.False(addedCertificate.HasPrivateKey); + } + + [Fact] + public async Task DecryptableContentCanBeDecryptedWithCertificate() + { + // Arrange + var testChangeNotificationEncryptedContent = new ChangeNotificationEncryptedContent + { + Data = "FFYlP1Bgb/fWW2kHMZiq4Y98E+XL0QTWEnGogTF6RRS+i3KqlXw35yy5ax8fEOzJbLc10ky24Ij+5ei2Hwqkzhph35XdLIsVsJZlQNYBwOu4jKvYbbhc1uHpQ/QBbs" + + "4IcdtWKCojqnDYcJmhwkzOZYHUr6XFHHD0GbO3y/wE0BKxMG6d5gNMfbT08OSWl+bhETeGVif8GTgZ0CNA6j7Xlq2T9Jd512cEBtEbXgJoISJVyOo4YzSirrb4R9xr" + + "lw9ASdz+oEzKZeUh0NSKfihjvevg90f7r5ZCHH1bP13Fxi/9NxASS7Sv28kvQbl+bqjNvCXK/Ol7rQr4DfMXPG82BGYU8n5AmWBztTY4mZLR59896coFz4CCDai4aS" + + "WDO1ldldvW9eqsnWTukQSwef3nHMMwTNxGge5YRMFKfVjOKr55xI7bevi2pZ6iZm8Kp8F+Gi+5V1uDpUFqeeFG3z03e7TfqczNIHdIjqxFpdYlrh/7ySd3L3q4D3TT" + + "vVCRdrbjuJ4oZeuFG4PQbAmJBcMwLrWDBmAykTRtrMT1Y1Ur1lX6lTiikGkrlV1VPizykLZmkq6jeoJOnMVLDWpNlQSKKfDicHRWoBHxDHc/g0aPs1g9Jd0I06YsVi" + + "JsEhvRz5Kwp4jAbyDff1XVExYPKRA07EfbOl5dLReE6ATcJGBr1dI4VVECRS7yW+uYTxoUUyePUOGIPGgpCBzJGYoRXKpBibcRib4Xs6WHVrEwNkN2RTHneh7NdzUm" + + "Piv5RoTSBFKRgysb5pWt1aUwIOnvjxLPIvTJmOob6nYvR/qCkfczEDzofYjG8H/7m2n/tqVvrs73QH7bIgapSU6GMhg41+Sizkjo4NRaIg2xrn7KM9NRJpjhsw5IyP" + + "Df2VgJlO9CruoCOHnbSlXCMeQUXATmXc7+bp4Zg18D2IXDryHhmc5GaBgrhzKjZtfvFzkLjY57VXODrsUB5Erya39RaX5bkqDXgzxHR3LWXZPlfuXCPKG5sPc1fGcP" + + "nS3+xONICej5xGxzdEo/t9esmGPWCSv3EyxBY+r7PIsNQ2gzwE5WERiRE83NHXrM1sYoSg83NqL5yZ/ohhR8lU3MTJ4xypnAglh+UdYIwqKaO4LKXaSO1Wg2MXWFAH" + + "BNVAYY64OrxUwm4kUS5T8CPypGKm5qHWJsWZ2dryGTwEoAKfVM5kWfhQ+56jpwN0AxCtgvGBvt7FX0S5UFa9rMf3EYgsXDQLw+o6N6W9LRC+nmQX+HTyl1mgHf/aGx" + + "8EW3DH3Ho52WgBf5IJ/TsvhLpDF6SKZrKLa1qm9PzShR0CGkLl+39pOT9bvcYhVW9I/mI6qv/84ben4NC0nDV31DdGTlB/pY7pIpmQuqSUQi+QAOQqO6oAYP5hh8Ey" + + "SQWapIyGdLE3R5HXEQJNVRYZM3BFlQ68HdPOi45KOp3PUAll3GNyxvjzE4UfeSTNGLMEll4Q2V3DlP1JcfIQNBi2SrVPtdq2A7l5NjyPoLnxKF8aoDWfunp0dAJcl" + + "eZNecO1YSXliGeisSiuumCTBKoLlx18XUZ4lfimtFChOnqC80RoVGSMTkM4anng99IHLUp/cOwRvnPmThGeTJX294ZsGlxrjmS3p/6DACHZKzy15GHYwhioMUDmcmX" + + "VYC2EkN/QPFd/nGUi6KM/dMpJ3mqXxyqP+F4d4b+Dv64QBijF5OFUffc9c46r5aoh0enIdY3TmC/hFloCQlHcrU83LBO2880TKnJI5xPbjjtZZxjA==", + DataKey = "PfUrKAM9G3k7Bx3XUAQ7jJwvceKrJwO7immbL6c+cFU2RCRicRAAA35C5c2iuEItNxQoXEHBei9aalToPg6XaOVqU7Y2U0vYZ/OPJ9+7gXRk4zYdLTWQgZMeXaa" + + "NgJIE0xc8BCuYKacT/iB6aY9JHmj2rbR6EDbMTKWkVBe+Z/qtQFhJFq9WBLXsh719qLl/MQarYCDrTNQtryF0WXn0UuLh2OIJYV9T8eSv4j1ZM0WDKw0X9MLaqF" + + "PZsZ0SXX4t2EArdnrCBf5duPPCcmfhnvrimqiynSJPDQT0e63oLlpW1z37TvZTeyORY1YTQRmaKWD91fiYtuVmSSVVy2vg+Fm7UIG082bc8y7LT241Qd5RosJaf" + + "1w+JPZbttjm7I6uT22XOzaNRouQWx5UxRvWllm46F3pFNq0dn0lztdsW0QckAV4M86wwObVZbqUbnDZ8YloHz0XRRg7cU0H1K60fPMAo7PUoMV+bJC9HzB5O8jp" + + "TScDd4yOYZPB1liV2PHRHuIB23lVUARe3MuMo4i+hAc/ftK9s7yvREBuBSD0wi9R6qCygZ09YwrqfXZjRlKcFnz6EE7sqT1tzs4OxdT8XgAdveV6PU968kQhema" + + "TsSSrmpvsVn46mMb1le2YY5PUukxZoUFiDMZb036C56HAQ2cyWZkNweDxDQXdHOvvfmU=", + DataSignature = "wAtDAqtryLgLo4zhy8BOpqTjf6BYlGv1I9acDpKQo5w=", + EncryptionCertificateId = "custom-id-for-testing", + EncryptionCertificateThumbprint = "4B95353E086AD37196606ACF834A14532F03E6DB" + }; + + // Act + var chatMessage = await testChangeNotificationEncryptedContent.DecryptAsync((_, thumbprint) => Task.FromResult(this._certificate)); + + // Assert that decryption is okay + Assert.Equal("1625126194597", chatMessage.Etag); + Assert.Equal("Hello World", chatMessage.Body.Content); + Assert.Equal(BodyType.Text, chatMessage.Body.ContentType); + } + } +}