From 1bfba759a6140eff71f1682bfeab735686f36f83 Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 7 Mar 2023 11:02:32 +0000 Subject: [PATCH] Update generated files with build 108103 --- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Contracts/ContractsRequestBuilder.cs | 5 + .../Contracts/Delta/DeltaRequestBuilder.cs | 166 ++++++++++++++++++ .../Contracts/Delta/DeltaResponse.cs | 49 ++++++ .../DeletedItemsRequestBuilder.cs | 5 + .../DeletedItems/Delta/DeltaRequestBuilder.cs | 166 ++++++++++++++++++ .../DeletedItems/Delta/DeltaResponse.cs | 49 ++++++ .../Delta/DeltaRequestBuilder.cs | 166 ++++++++++++++++++ .../DirectoryObjects/Delta/DeltaResponse.cs | 49 ++++++ .../DirectoryObjectsRequestBuilder.cs | 5 + .../Delta/DeltaRequestBuilder.cs | 166 ++++++++++++++++++ .../Delta/DeltaResponse.cs | 49 ++++++ .../DirectoryRoleTemplatesRequestBuilder.cs | 5 + .../Workbook/Names/NamesRequestBuilder.cs | 2 +- .../Item/Columns/ColumnsRequestBuilder.cs | 2 +- .../Workbook/Tables/TablesRequestBuilder.cs | 2 +- .../Item/Points/PointsRequestBuilder.cs | 8 +- .../Item/Series/SeriesRequestBuilder.cs | 2 +- .../Item/Columns/ColumnsRequestBuilder.cs | 2 +- .../Worksheets/WorksheetsRequestBuilder.cs | 2 +- .../Delta/DeltaRequestBuilder.cs | 166 ++++++++++++++++++ .../Delta/DeltaResponse.cs | 49 ++++++ .../GroupSettingTemplatesRequestBuilder.cs | 5 + .../ConversationsRequestBuilder.cs | 6 +- .../InReplyTo/Reply/ReplyRequestBuilder.cs | 6 +- .../Posts/Item/Reply/ReplyRequestBuilder.cs | 6 +- .../Delta/DeltaRequestBuilder.cs | 166 ++++++++++++++++++ .../PermissionGrants/Delta/DeltaResponse.cs | 49 ++++++ .../PermissionGrantsRequestBuilder.cs | 5 + .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- .../InReplyTo/Reply/ReplyRequestBuilder.cs | 6 +- .../Posts/Item/Reply/ReplyRequestBuilder.cs | 6 +- ...AccessPackageQuestionItemRequestBuilder.cs | 6 +- .../Item/Questions/QuestionsRequestBuilder.cs | 6 +- ...AccessPackageQuestionItemRequestBuilder.cs | 6 +- .../Item/Questions/QuestionsRequestBuilder.cs | 6 +- ...AccessPackageQuestionItemRequestBuilder.cs | 6 +- .../Item/Questions/QuestionsRequestBuilder.cs | 6 +- .../Delta/DeltaRequestBuilder.cs | 166 ++++++++++++++++++ .../ExternalSponsors/Delta/DeltaResponse.cs | 49 ++++++ .../ExternalSponsorsRequestBuilder.cs | 5 + .../Delta/DeltaRequestBuilder.cs | 166 ++++++++++++++++++ .../InternalSponsors/Delta/DeltaResponse.cs | 49 ++++++ .../InternalSponsorsRequestBuilder.cs | 5 + .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- .../Generated/Me/MeRequestBuilder.cs | 8 +- .../Item/Value/ContentRequestBuilder.cs | 2 +- .../Me/Messages/MessagesRequestBuilder.cs | 14 +- .../Models/AccessPackageAssignmentPolicy.cs | 2 +- .../Models/AgreementCollectionResponse.cs | 11 +- .../Generated/Models/AppRoleAssignment.cs | 2 +- .../Generated/Models/Application.cs | 2 +- .../Generated/Models/AuditEvent.cs | 3 - ...unicationServicesUserConversationMember.cs | 2 +- .../Generated/Models/BookingAppointment.cs | 3 - .../Generated/Models/CertificateStatus.cs | 6 + .../Models/DirectoryObjectPartnerReference.cs | 2 +- src/Microsoft.Graph/Generated/Models/Drive.cs | 2 +- .../EnterpriseCodeSigningCertificate.cs | 133 ++++++++++++++ .../Generated/Models/Entity.cs | 2 + .../Generated/Models/EntityType.cs | 1 + src/Microsoft.Graph/Generated/Models/Group.cs | 2 +- ...bAppProvisioningConfigurationAssignment.cs | 48 +++++ .../Generated/Models/LobbyBypassScope.cs | 11 ++ .../Generated/Models/LobbyBypassSettings.cs | 7 + .../Generated/Models/MailboxSettings.cs | 2 +- .../Generated/Models/ManagedApp.cs | 5 +- .../Generated/Models/MeetingChatMode.cs | 8 + .../Models/MobileThreatDefenseConnector.cs | 2 +- .../Generated/Models/OnlineMeeting.cs | 14 ++ .../Models/OnlineMeetingPresenters.cs | 9 + .../EdiscoveryNoncustodialDataSource.cs | 2 +- .../Security/EdiscoveryReviewSetQuery.cs | 2 +- .../Generated/Models/ServicePrincipal.cs | 2 +- .../Generated/Models/TermsAndConditions.cs | 3 - src/Microsoft.Graph/Generated/Models/User.cs | 2 +- .../Organization/Delta/DeltaRequestBuilder.cs | 166 ++++++++++++++++++ .../Organization/Delta/DeltaResponse.cs | 49 ++++++ .../OrganizationRequestBuilder.cs | 5 + .../Delta/DeltaRequestBuilder.cs | 166 ++++++++++++++++++ .../PermissionGrants/Delta/DeltaResponse.cs | 49 ++++++ .../PermissionGrantsRequestBuilder.cs | 5 + .../Item/AppliesTo/AppliesToRequestBuilder.cs | 5 + .../AppliesTo/Delta/DeltaRequestBuilder.cs | 166 ++++++++++++++++++ .../Item/AppliesTo/Delta/DeltaResponse.cs | 49 ++++++ .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Item/Messages/MessagesRequestBuilder.cs | 6 +- .../Messages/MessagesRequestBuilder.cs | 6 +- .../Item/Value/ContentRequestBuilder.cs | 2 +- .../Item/Messages/MessagesRequestBuilder.cs | 14 +- .../Generated/Users/UsersRequestBuilder.cs | 8 +- src/Microsoft.Graph/Generated/kiota-lock.json | 2 +- 98 files changed, 2781 insertions(+), 137 deletions(-) create mode 100644 src/Microsoft.Graph/Generated/Contracts/Delta/DeltaRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Contracts/Delta/DeltaResponse.cs create mode 100644 src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Delta/DeltaRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Delta/DeltaResponse.cs create mode 100644 src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaResponse.cs create mode 100644 src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaResponse.cs create mode 100644 src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Delta/DeltaResponse.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaResponse.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Models/CertificateStatus.cs create mode 100644 src/Microsoft.Graph/Generated/Models/EnterpriseCodeSigningCertificate.cs create mode 100644 src/Microsoft.Graph/Generated/Models/IosLobAppProvisioningConfigurationAssignment.cs create mode 100644 src/Microsoft.Graph/Generated/Models/LobbyBypassScope.cs create mode 100644 src/Microsoft.Graph/Generated/Models/MeetingChatMode.cs create mode 100644 src/Microsoft.Graph/Generated/Models/OnlineMeetingPresenters.cs create mode 100644 src/Microsoft.Graph/Generated/Organization/Delta/DeltaRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Organization/Delta/DeltaResponse.cs create mode 100644 src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaResponse.cs create mode 100644 src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Delta/DeltaRequestBuilder.cs create mode 100644 src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Delta/DeltaResponse.cs diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs index 0058385cf63..fbbe2d0cc6b 100644 --- a/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 @@ -132,7 +132,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/Contracts/ContractsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/ContractsRequestBuilder.cs index 047be5c0889..0ccd56973a3 100644 --- a/src/Microsoft.Graph/Generated/Contracts/ContractsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Contracts/ContractsRequestBuilder.cs @@ -1,4 +1,5 @@ using Microsoft.Graph.Contracts.Count; +using Microsoft.Graph.Contracts.Delta; using Microsoft.Graph.Contracts.GetAvailableExtensionProperties; using Microsoft.Graph.Contracts.GetByIds; using Microsoft.Graph.Contracts.Item; @@ -22,6 +23,10 @@ public class ContractsRequestBuilder { public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to call the delta method. + public DeltaRequestBuilder Delta { get => + new DeltaRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the getAvailableExtensionProperties method. public GetAvailableExtensionPropertiesRequestBuilder GetAvailableExtensionProperties { get => new GetAvailableExtensionPropertiesRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..9ed6f3c42ce --- /dev/null +++ b/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,166 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Contracts.Delta { + /// + /// Provides operations to call the delta method. + /// + public class DeltaRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/contracts/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/contracts/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke function delta + /// + /// 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 GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke function delta + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new DeltaRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke function delta + /// + public class DeltaRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DeltaRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public DeltaRequestBuilderGetQueryParameters QueryParameters { get; set; } = new DeltaRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new deltaRequestBuilderGetRequestConfiguration and sets the default values. + /// + public DeltaRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..3be2e8e9bb3 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Contracts/Delta/DeltaResponse.cs @@ -0,0 +1,49 @@ +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Contracts.Delta { + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/DeletedItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/DeletedItemsRequestBuilder.cs index 84118f02c9a..d54c9fade0a 100644 --- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/DeletedItemsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/DeletedItemsRequestBuilder.cs @@ -1,4 +1,5 @@ using Microsoft.Graph.DirectoryNamespace.DeletedItems.Count; +using Microsoft.Graph.DirectoryNamespace.DeletedItems.Delta; using Microsoft.Graph.DirectoryNamespace.DeletedItems.GetAvailableExtensionProperties; using Microsoft.Graph.DirectoryNamespace.DeletedItems.GetByIds; using Microsoft.Graph.DirectoryNamespace.DeletedItems.GraphApplication; @@ -25,6 +26,10 @@ public class DeletedItemsRequestBuilder { public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to call the delta method. + public DeltaRequestBuilder Delta { get => + new DeltaRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the getAvailableExtensionProperties method. public GetAvailableExtensionPropertiesRequestBuilder GetAvailableExtensionProperties { get => new GetAvailableExtensionPropertiesRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..86dffd48c85 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,166 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Delta { + /// + /// Provides operations to call the delta method. + /// + public class DeltaRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/directory/deletedItems/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/directory/deletedItems/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke function delta + /// + /// 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 GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke function delta + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new DeltaRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke function delta + /// + public class DeltaRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DeltaRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public DeltaRequestBuilderGetQueryParameters QueryParameters { get; set; } = new DeltaRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new deltaRequestBuilderGetRequestConfiguration and sets the default values. + /// + public DeltaRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..f26d7cc918c --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Delta/DeltaResponse.cs @@ -0,0 +1,49 @@ +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Delta { + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..55d2621a659 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,166 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.DirectoryObjects.Delta { + /// + /// Provides operations to call the delta method. + /// + public class DeltaRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/directoryObjects/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/directoryObjects/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke function delta + /// + /// 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 GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke function delta + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new DeltaRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke function delta + /// + public class DeltaRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DeltaRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public DeltaRequestBuilderGetQueryParameters QueryParameters { get; set; } = new DeltaRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new deltaRequestBuilderGetRequestConfiguration and sets the default values. + /// + public DeltaRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..f5c462d99d4 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/Delta/DeltaResponse.cs @@ -0,0 +1,49 @@ +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.DirectoryObjects.Delta { + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryObjects/DirectoryObjectsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryObjects/DirectoryObjectsRequestBuilder.cs index 101a1cf4458..f0ccae12e9a 100644 --- a/src/Microsoft.Graph/Generated/DirectoryObjects/DirectoryObjectsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryObjects/DirectoryObjectsRequestBuilder.cs @@ -1,4 +1,5 @@ using Microsoft.Graph.DirectoryObjects.Count; +using Microsoft.Graph.DirectoryObjects.Delta; using Microsoft.Graph.DirectoryObjects.GetAvailableExtensionProperties; using Microsoft.Graph.DirectoryObjects.GetByIds; using Microsoft.Graph.DirectoryObjects.Item; @@ -22,6 +23,10 @@ public class DirectoryObjectsRequestBuilder { public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to call the delta method. + public DeltaRequestBuilder Delta { get => + new DeltaRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the getAvailableExtensionProperties method. public GetAvailableExtensionPropertiesRequestBuilder GetAvailableExtensionProperties { get => new GetAvailableExtensionPropertiesRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..2bb53fc8053 --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,166 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.DirectoryRoleTemplates.Delta { + /// + /// Provides operations to call the delta method. + /// + public class DeltaRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/directoryRoleTemplates/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/directoryRoleTemplates/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke function delta + /// + /// 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 GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke function delta + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new DeltaRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke function delta + /// + public class DeltaRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DeltaRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public DeltaRequestBuilderGetQueryParameters QueryParameters { get; set; } = new DeltaRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new deltaRequestBuilderGetRequestConfiguration and sets the default values. + /// + public DeltaRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..6b7cadb100f --- /dev/null +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/Delta/DeltaResponse.cs @@ -0,0 +1,49 @@ +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.DirectoryRoleTemplates.Delta { + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.cs index dfff9b44314..cc7e558de65 100644 --- a/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/DirectoryRoleTemplates/DirectoryRoleTemplatesRequestBuilder.cs @@ -1,4 +1,5 @@ using Microsoft.Graph.DirectoryRoleTemplates.Count; +using Microsoft.Graph.DirectoryRoleTemplates.Delta; using Microsoft.Graph.DirectoryRoleTemplates.GetAvailableExtensionProperties; using Microsoft.Graph.DirectoryRoleTemplates.GetByIds; using Microsoft.Graph.DirectoryRoleTemplates.Item; @@ -22,6 +23,10 @@ public class DirectoryRoleTemplatesRequestBuilder { public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to call the delta method. + public DeltaRequestBuilder Delta { get => + new DeltaRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the getAvailableExtensionProperties method. public GetAvailableExtensionPropertiesRequestBuilder GetAvailableExtensionProperties { get => new GetAvailableExtensionPropertiesRequestBuilder(PathParameters, RequestAdapter); 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 2aaf860694d..f02af7d9b8b 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 @@ -70,7 +70,7 @@ public NamesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// /// 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 a7a6ab4739d..1a26d930708 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 @@ -66,7 +66,7 @@ public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// /// 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/TablesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs index 7f4fd72ed46..83613ec74a0 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/TablesRequestBuilder.cs @@ -66,7 +66,7 @@ public TablesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// /// Retrieve a list of table 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/Item/Series/Item/Points/PointsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs index 9aab7cf5141..8a5495f11e4 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/Item/Points/PointsRequestBuilder.cs @@ -60,8 +60,8 @@ public PointsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Retrieve a list of chartpoint objects. - /// Find more info here + /// Retrieve a list of chartpoints objects. + /// 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 PostAsync(WorkbookChartPoint body, Action< return await RequestAdapter.SendAsync(requestInfo, WorkbookChartPoint.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Retrieve a list of chartpoint objects. + /// Retrieve a list of chartpoints objects. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -164,7 +164,7 @@ public RequestInformation ToPostRequestInformation(WorkbookChartPoint body, Acti return requestInfo; } /// - /// Retrieve a list of chartpoint objects. + /// Retrieve a list of chartpoints objects. /// public class PointsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs index 01119a21cf1..c6c2173ead1 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs @@ -61,7 +61,7 @@ public SeriesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// /// Retrieve a list of chartseries 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/Columns/ColumnsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Columns/ColumnsRequestBuilder.cs index 2da3b60b469..e841e017846 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 @@ -66,7 +66,7 @@ public ColumnsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// /// 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/WorksheetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs index 8d0f0e535ed..1635ab4491c 100644 --- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs @@ -65,7 +65,7 @@ public WorksheetsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// /// Retrieve a list of worksheet 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/GroupSettingTemplates/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..9c9d30e5656 --- /dev/null +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,166 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.GroupSettingTemplates.Delta { + /// + /// Provides operations to call the delta method. + /// + public class DeltaRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/groupSettingTemplates/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/groupSettingTemplates/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke function delta + /// + /// 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 GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke function delta + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new DeltaRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke function delta + /// + public class DeltaRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DeltaRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public DeltaRequestBuilderGetQueryParameters QueryParameters { get; set; } = new DeltaRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new deltaRequestBuilderGetRequestConfiguration and sets the default values. + /// + public DeltaRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..55fa2f341f8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/Delta/DeltaResponse.cs @@ -0,0 +1,49 @@ +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.GroupSettingTemplates.Delta { + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.cs b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.cs index 8566da35c0e..97a4dd2c9c2 100644 --- a/src/Microsoft.Graph/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/GroupSettingTemplates/GroupSettingTemplatesRequestBuilder.cs @@ -1,4 +1,5 @@ using Microsoft.Graph.GroupSettingTemplates.Count; +using Microsoft.Graph.GroupSettingTemplates.Delta; using Microsoft.Graph.GroupSettingTemplates.GetAvailableExtensionProperties; using Microsoft.Graph.GroupSettingTemplates.GetByIds; using Microsoft.Graph.GroupSettingTemplates.Item; @@ -22,6 +23,10 @@ public class GroupSettingTemplatesRequestBuilder { public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to call the delta method. + public DeltaRequestBuilder Delta { get => + new DeltaRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the getAvailableExtensionProperties method. public GetAvailableExtensionPropertiesRequestBuilder GetAvailableExtensionProperties { get => new GetAvailableExtensionPropertiesRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs index b0e6d1d617a..5e92a078be7 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/ConversationsRequestBuilder.cs @@ -79,8 +79,8 @@ public async Task GetAsync(Action(requestInfo, ConversationCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Use reply thread or reply post to further post to that conversation. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -127,7 +127,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. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. + /// Use reply thread or reply post to further post to that conversation. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs index f0e09ef81e3..5491728eaf0 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs @@ -46,8 +46,8 @@ public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task PostAsync(ReplyPostRequestBody body, 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. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs index 3af5576760b..2c5b251b7a2 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Conversations/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs @@ -46,8 +46,8 @@ public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task PostAsync(ReplyPostRequestBody body, 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. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..3361e3cb8ab --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,166 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Groups.Item.PermissionGrants.Delta { + /// + /// Provides operations to call the delta method. + /// + public class DeltaRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/groups/{group%2Did}/permissionGrants/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/groups/{group%2Did}/permissionGrants/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke function delta + /// + /// 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 GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke function delta + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new DeltaRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke function delta + /// + public class DeltaRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DeltaRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public DeltaRequestBuilderGetQueryParameters QueryParameters { get; set; } = new DeltaRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new deltaRequestBuilderGetRequestConfiguration and sets the default values. + /// + public DeltaRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..ea7047ef955 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/Delta/DeltaResponse.cs @@ -0,0 +1,49 @@ +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Groups.Item.PermissionGrants.Delta { + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs index 16ca12c34a2..8d3a06a98c6 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -1,4 +1,5 @@ using Microsoft.Graph.Groups.Item.PermissionGrants.Count; +using Microsoft.Graph.Groups.Item.PermissionGrants.Delta; using Microsoft.Graph.Groups.Item.PermissionGrants.GetAvailableExtensionProperties; using Microsoft.Graph.Groups.Item.PermissionGrants.GetByIds; using Microsoft.Graph.Groups.Item.PermissionGrants.Item; @@ -22,6 +23,10 @@ public class PermissionGrantsRequestBuilder { public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to call the delta method. + public DeltaRequestBuilder Delta { get => + new DeltaRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the getAvailableExtensionProperties method. public GetAvailableExtensionPropertiesRequestBuilder GetAvailableExtensionProperties { get => new GetAvailableExtensionPropertiesRequestBuilder(PathParameters, RequestAdapter); 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 d380635a674..d7ff1202c41 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 @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 @@ -132,7 +132,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/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Team/PrimaryChannel/Messages/MessagesRequestBuilder.cs index 5084116ce07..d2bb77f0104 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 @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 @@ -132,7 +132,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/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs index 3ea3caae2ea..fb8cd8acbec 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/InReplyTo/Reply/ReplyRequestBuilder.cs @@ -46,8 +46,8 @@ public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task PostAsync(ReplyPostRequestBody body, 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. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs index f6cdad5177f..8ddd95da100 100644 --- a/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Groups/Item/Threads/Item/Posts/Item/Reply/ReplyRequestBuilder.cs @@ -46,8 +46,8 @@ public ReplyRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. + /// Find more info here /// /// The request body /// Cancellation token to use when cancelling requests @@ -68,7 +68,7 @@ public async Task PostAsync(ReplyPostRequestBody body, 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. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. + /// Reply to a post and add a new post to the specified thread in a group conversation. You can specify both the parent conversation and thread in the request, or, you can specify just the parent thread without the parent conversation. /// /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.cs index 28f256bc433..e5b8329ce6d 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.cs @@ -66,7 +66,7 @@ public async Task DeleteAsync(Action - /// Get questions from identityGovernance + /// Questions that are posed to the requestor. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get questions from identityGovernance + /// Questions that are posed to the requestor. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -200,7 +200,7 @@ public AccessPackageQuestionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get questions from identityGovernance + /// Questions that are posed to the requestor. /// public class AccessPackageQuestionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.cs index a2278240e0f..6f3c0d0f132 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AccessPackages/Item/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.cs @@ -59,7 +59,7 @@ public QuestionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Get questions from identityGovernance + /// Questions that are posed to the requestor. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -99,7 +99,7 @@ public async Task PostAsync(AccessPackageQuestion body, A return await RequestAdapter.SendAsync(requestInfo, AccessPackageQuestion.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get questions from identityGovernance + /// Questions that are posed to the requestor. /// /// 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 RequestInformation ToPostRequestInformation(AccessPackageQuestion body, A return requestInfo; } /// - /// Get questions from identityGovernance + /// Questions that are posed to the requestor. /// public class QuestionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.cs index b61ab4712de..f236eb3d04e 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.cs @@ -66,7 +66,7 @@ public async Task DeleteAsync(Action - /// Get questions from identityGovernance + /// Questions that are posed to the requestor. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get questions from identityGovernance + /// Questions that are posed to the requestor. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -200,7 +200,7 @@ public AccessPackageQuestionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get questions from identityGovernance + /// Questions that are posed to the requestor. /// public class AccessPackageQuestionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.cs index 0b651ce00a5..28828d63044 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.cs @@ -59,7 +59,7 @@ public QuestionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Get questions from identityGovernance + /// Questions that are posed to the requestor. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -99,7 +99,7 @@ public async Task PostAsync(AccessPackageQuestion body, A return await RequestAdapter.SendAsync(requestInfo, AccessPackageQuestion.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get questions from identityGovernance + /// Questions that are posed to the requestor. /// /// 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 RequestInformation ToPostRequestInformation(AccessPackageQuestion body, A return requestInfo; } /// - /// Get questions from identityGovernance + /// Questions that are posed to the requestor. /// public class QuestionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.cs index f856b35aae1..7d2b6446a02 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AssignmentPolicies/Item/Questions/Item/AccessPackageQuestionItemRequestBuilder.cs @@ -66,7 +66,7 @@ public async Task DeleteAsync(Action - /// Get questions from identityGovernance + /// Questions that are posed to the requestor. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -130,7 +130,7 @@ public RequestInformation ToDeleteRequestInformation(Action - /// Get questions from identityGovernance + /// Questions that are posed to the requestor. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -200,7 +200,7 @@ public AccessPackageQuestionItemRequestBuilderDeleteRequestConfiguration() { } } /// - /// Get questions from identityGovernance + /// Questions that are posed to the requestor. /// public class AccessPackageQuestionItemRequestBuilderGetQueryParameters { /// Expand related entities diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.cs index 1898de10ecf..72df52cca7b 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AssignmentPolicies/Item/Questions/QuestionsRequestBuilder.cs @@ -59,7 +59,7 @@ public QuestionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Get questions from identityGovernance + /// Questions that are posed to the requestor. /// /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. @@ -99,7 +99,7 @@ public async Task PostAsync(AccessPackageQuestion body, A return await RequestAdapter.SendAsync(requestInfo, AccessPackageQuestion.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get questions from identityGovernance + /// Questions that are posed to the requestor. /// /// 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 RequestInformation ToPostRequestInformation(AccessPackageQuestion body, A return requestInfo; } /// - /// Get questions from identityGovernance + /// Questions that are posed to the requestor. /// public class QuestionsRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..86bdd259517 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,166 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.ExternalSponsors.Delta { + /// + /// Provides operations to call the delta method. + /// + public class DeltaRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/externalSponsors/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke function delta + /// + /// 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 GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke function delta + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new DeltaRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke function delta + /// + public class DeltaRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DeltaRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public DeltaRequestBuilderGetQueryParameters QueryParameters { get; set; } = new DeltaRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new deltaRequestBuilderGetRequestConfiguration and sets the default values. + /// + public DeltaRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..4cc10fb98e5 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/Delta/DeltaResponse.cs @@ -0,0 +1,49 @@ +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.ExternalSponsors.Delta { + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilder.cs index 082a848a67a..3c1f8305cd3 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/ExternalSponsors/ExternalSponsorsRequestBuilder.cs @@ -1,4 +1,5 @@ using Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.ExternalSponsors.Count; +using Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.ExternalSponsors.Delta; using Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.ExternalSponsors.GetAvailableExtensionProperties; using Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.ExternalSponsors.GetByIds; using Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.ExternalSponsors.Item; @@ -23,6 +24,10 @@ public class ExternalSponsorsRequestBuilder { public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to call the delta method. + public DeltaRequestBuilder Delta { get => + new DeltaRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the getAvailableExtensionProperties method. public GetAvailableExtensionPropertiesRequestBuilder GetAvailableExtensionProperties { get => new GetAvailableExtensionPropertiesRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..f576328b6f2 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,166 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.InternalSponsors.Delta { + /// + /// Provides operations to call the delta method. + /// + public class DeltaRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/identityGovernance/entitlementManagement/connectedOrganizations/{connectedOrganization%2Did}/internalSponsors/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke function delta + /// + /// 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 GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke function delta + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new DeltaRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke function delta + /// + public class DeltaRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DeltaRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public DeltaRequestBuilderGetQueryParameters QueryParameters { get; set; } = new DeltaRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new deltaRequestBuilderGetRequestConfiguration and sets the default values. + /// + public DeltaRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..170897add14 --- /dev/null +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/Delta/DeltaResponse.cs @@ -0,0 +1,49 @@ +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.InternalSponsors.Delta { + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilder.cs index 8a114eb0657..c63c5b92aaa 100644 --- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/ConnectedOrganizations/Item/InternalSponsors/InternalSponsorsRequestBuilder.cs @@ -1,4 +1,5 @@ using Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.InternalSponsors.Count; +using Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.InternalSponsors.Delta; using Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.InternalSponsors.GetAvailableExtensionProperties; using Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.InternalSponsors.GetByIds; using Microsoft.Graph.IdentityGovernance.EntitlementManagement.ConnectedOrganizations.Item.InternalSponsors.Item; @@ -23,6 +24,10 @@ public class InternalSponsorsRequestBuilder { public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to call the delta method. + public DeltaRequestBuilder Delta { get => + new DeltaRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the getAvailableExtensionProperties method. public GetAvailableExtensionPropertiesRequestBuilder GetAvailableExtensionProperties { get => new GetAvailableExtensionPropertiesRequestBuilder(PathParameters, RequestAdapter); 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 ddf21b1a2b7..086007b9250 100644 --- a/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Chats/Item/Messages/MessagesRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 @@ -132,7 +132,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/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index 45d66bfb836..555bfc073bf 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 @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 @@ -132,7 +132,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/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs index a0db7bebd64..b298e56cd8e 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 @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 @@ -132,7 +132,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/MeRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs index 6523f0d8121..f9089a3d684 100644 --- a/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/MeRequestBuilder.cs @@ -389,8 +389,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. @@ -441,7 +441,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 @@ -495,7 +495,7 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.User return requestInfo; } /// - /// 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/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs index 8f6af960e30..1199a91d8e9 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/Item/Value/ContentRequestBuilder.cs @@ -47,7 +47,7 @@ public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// /// 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 3d7539150f5..f6f3747b707 100644 --- a/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Me/Messages/MessagesRequestBuilder.cs @@ -64,8 +64,8 @@ public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Get the messages in the signed-in user's mailbox (including the Deleted Items and Clutter folders). Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. Use `$top` to customize the page size, within the range of 1 and 1000. To improve the operation response time, use `$select` to specify the exact properties you need; see example 1 below. Fine-tune the values for `$select` and `$top`, especially when you must use a larger page size, as returning a page with hundreds of messages each with a full response payload may trigger the gateway timeout (HTTP 504). To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request. Do not try to extract the `$skip` value from the `@odata.nextLink` URL to manipulate responses. This API uses the `$skip` value to keep count of all the items it has gone through in the user's mailbox to return a page of message-type items. It's therefore possible that even in the initial response, the `$skip` value is larger than the page size. For more information, see Paging Microsoft Graph data in your app. Currently, this operation returns message bodies in only HTML format. There are two scenarios where an app can get messages in another user's mail folder: - /// Find more info here + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Find more info here /// /// 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, MessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// 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 @@ -106,7 +106,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get the messages in the signed-in user's mailbox (including the Deleted Items and Clutter folders). Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. Use `$top` to customize the page size, within the range of 1 and 1000. To improve the operation response time, use `$select` to specify the exact properties you need; see example 1 below. Fine-tune the values for `$select` and `$top`, especially when you must use a larger page size, as returning a page with hundreds of messages each with a full response payload may trigger the gateway timeout (HTTP 504). To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request. Do not try to extract the `$skip` value from the `@odata.nextLink` URL to manipulate responses. This API uses the `$skip` value to keep count of all the items it has gone through in the user's mailbox to return a page of message-type items. It's therefore possible that even in the initial response, the `$skip` value is larger than the page size. For more information, see Paging Microsoft Graph data in your app. Currently, this operation returns message bodies in only HTML format. There are two scenarios where an app can get messages in another user's mail folder: + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -132,7 +132,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. See known limitations of open extensions for more information. 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. @@ -160,7 +160,7 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Messag return requestInfo; } /// - /// Get the messages in the signed-in user's mailbox (including the Deleted Items and Clutter folders). Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. Use `$top` to customize the page size, within the range of 1 and 1000. To improve the operation response time, use `$select` to specify the exact properties you need; see example 1 below. Fine-tune the values for `$select` and `$top`, especially when you must use a larger page size, as returning a page with hundreds of messages each with a full response payload may trigger the gateway timeout (HTTP 504). To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request. Do not try to extract the `$skip` value from the `@odata.nextLink` URL to manipulate responses. This API uses the `$skip` value to keep count of all the items it has gone through in the user's mailbox to return a page of message-type items. It's therefore possible that even in the initial response, the `$skip` value is larger than the page size. For more information, see Paging Microsoft Graph data in your app. Currently, this operation returns message bodies in only HTML format. There are two scenarios where an app can get messages in another user's mail folder: + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentPolicy.cs b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentPolicy.cs index e888afa880b..892ca694a15 100644 --- a/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentPolicy.cs +++ b/src/Microsoft.Graph/Generated/Models/AccessPackageAssignmentPolicy.cs @@ -104,7 +104,7 @@ public DateTimeOffset? ModifiedDateTime { get { return BackingStore?.Get("modifiedDateTime"); } set { BackingStore?.Set("modifiedDateTime", value); } } - /// The questions property + /// Questions that are posed to the requestor. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public List? Questions { diff --git a/src/Microsoft.Graph/Generated/Models/AgreementCollectionResponse.cs b/src/Microsoft.Graph/Generated/Models/AgreementCollectionResponse.cs index 818693970a3..8b48465fbb4 100644 --- a/src/Microsoft.Graph/Generated/Models/AgreementCollectionResponse.cs +++ b/src/Microsoft.Graph/Generated/Models/AgreementCollectionResponse.cs @@ -1,13 +1,10 @@ using Microsoft.Kiota.Abstractions.Serialization; -using Microsoft.Kiota.Abstractions.Store; using System; using System.Collections.Generic; using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - public class AgreementCollectionResponse : BaseCollectionPaginationCountResponse, IBackedModel, IParsable { - /// Stores model information. - public IBackingStore BackingStore { get; private set; } + public class AgreementCollectionResponse : BaseCollectionPaginationCountResponse, IParsable { /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -22,12 +19,6 @@ public List Value { set { BackingStore?.Set("value", value); } } #endif - /// - /// Instantiates a new AgreementCollectionResponse and sets the default values. - /// - public AgreementCollectionResponse() : base() { - BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); - } /// /// Creates a new instance of the appropriate class based on discriminator value /// diff --git a/src/Microsoft.Graph/Generated/Models/AppRoleAssignment.cs b/src/Microsoft.Graph/Generated/Models/AppRoleAssignment.cs index 61fe5dfc7f9..9034eb7cb47 100644 --- a/src/Microsoft.Graph/Generated/Models/AppRoleAssignment.cs +++ b/src/Microsoft.Graph/Generated/Models/AppRoleAssignment.cs @@ -68,7 +68,7 @@ public Guid? ResourceId { set { BackingStore?.Set("resourceId", value); } } /// - /// Instantiates a new appRoleAssignment and sets the default values. + /// Instantiates a new AppRoleAssignment and sets the default values. /// public AppRoleAssignment() : base() { OdataType = "#microsoft.graph.appRoleAssignment"; diff --git a/src/Microsoft.Graph/Generated/Models/Application.cs b/src/Microsoft.Graph/Generated/Models/Application.cs index 7f1487821dd..4b3e916fad4 100644 --- a/src/Microsoft.Graph/Generated/Models/Application.cs +++ b/src/Microsoft.Graph/Generated/Models/Application.cs @@ -563,7 +563,7 @@ public WebApplication Web { } #endif /// - /// Instantiates a new application and sets the default values. + /// Instantiates a new Application and sets the default values. /// public Application() : base() { OdataType = "#microsoft.graph.application"; diff --git a/src/Microsoft.Graph/Generated/Models/AuditEvent.cs b/src/Microsoft.Graph/Generated/Models/AuditEvent.cs index e1b66f49384..beb33dc57a8 100644 --- a/src/Microsoft.Graph/Generated/Models/AuditEvent.cs +++ b/src/Microsoft.Graph/Generated/Models/AuditEvent.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// - /// A class containing the properties for Audit Event. - /// public class AuditEvent : Entity, IParsable { /// Friendly name of the activity. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Models/AzureCommunicationServicesUserConversationMember.cs b/src/Microsoft.Graph/Generated/Models/AzureCommunicationServicesUserConversationMember.cs index 14c0028842e..b5698a3084d 100644 --- a/src/Microsoft.Graph/Generated/Models/AzureCommunicationServicesUserConversationMember.cs +++ b/src/Microsoft.Graph/Generated/Models/AzureCommunicationServicesUserConversationMember.cs @@ -5,7 +5,7 @@ using System.Linq; namespace Microsoft.Graph.Models { public class AzureCommunicationServicesUserConversationMember : ConversationMember, IParsable { - /// The azureCommunicationServicesId property + /// Azure Communication Services ID of the user. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? AzureCommunicationServicesId { diff --git a/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs b/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs index 3294ed0e36b..c68b2a865a4 100644 --- a/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs +++ b/src/Microsoft.Graph/Generated/Models/BookingAppointment.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// - /// Represents a booked appointment of a service by a customer in a business. - /// public class BookingAppointment : Entity, IParsable { /// Additional information that is sent to the customer when an appointment is confirmed. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Models/CertificateStatus.cs b/src/Microsoft.Graph/Generated/Models/CertificateStatus.cs new file mode 100644 index 00000000000..350438406fb --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/CertificateStatus.cs @@ -0,0 +1,6 @@ +namespace Microsoft.Graph.Models { + public enum CertificateStatus { + NotProvisioned, + Provisioned, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/DirectoryObjectPartnerReference.cs b/src/Microsoft.Graph/Generated/Models/DirectoryObjectPartnerReference.cs index 23f0d10fd7d..178d55d7da5 100644 --- a/src/Microsoft.Graph/Generated/Models/DirectoryObjectPartnerReference.cs +++ b/src/Microsoft.Graph/Generated/Models/DirectoryObjectPartnerReference.cs @@ -53,7 +53,7 @@ public string ObjectType { } #endif /// - /// Instantiates a new DirectoryObjectPartnerReference and sets the default values. + /// Instantiates a new directoryObjectPartnerReference and sets the default values. /// public DirectoryObjectPartnerReference() : base() { OdataType = "#microsoft.graph.directoryObjectPartnerReference"; diff --git a/src/Microsoft.Graph/Generated/Models/Drive.cs b/src/Microsoft.Graph/Generated/Models/Drive.cs index ba1f0f18dad..38588a32919 100644 --- a/src/Microsoft.Graph/Generated/Models/Drive.cs +++ b/src/Microsoft.Graph/Generated/Models/Drive.cs @@ -160,7 +160,7 @@ public SystemFacet System { } #endif /// - /// Instantiates a new Drive and sets the default values. + /// Instantiates a new drive and sets the default values. /// public Drive() : base() { OdataType = "#microsoft.graph.drive"; diff --git a/src/Microsoft.Graph/Generated/Models/EnterpriseCodeSigningCertificate.cs b/src/Microsoft.Graph/Generated/Models/EnterpriseCodeSigningCertificate.cs new file mode 100644 index 00000000000..037b9d2a70c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/EnterpriseCodeSigningCertificate.cs @@ -0,0 +1,133 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Models { + public class EnterpriseCodeSigningCertificate : Entity, IParsable { + /// The Windows Enterprise Code-Signing Certificate in the raw data format. Set to null once certificate has been uploaded and other properties have been populated. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public byte[]? Content { + get { return BackingStore?.Get("content"); } + set { BackingStore?.Set("content", value); } + } +#nullable restore +#else + public byte[] Content { + get { return BackingStore?.Get("content"); } + set { BackingStore?.Set("content", value); } + } +#endif + /// The cert expiration date and time (using ISO 8601 format, in UTC time). Uploading a valid cert file through the Intune admin console will automatically populate this value in the HTTP response. Supports: $filter, $select, $top, $OrderBy, $skip. $Search is not supported. + public DateTimeOffset? ExpirationDateTime { + get { return BackingStore?.Get("expirationDateTime"); } + set { BackingStore?.Set("expirationDateTime", value); } + } + /// The issuer value for the cert. This might contain information such as country (C), state or province (S), locality (L), common name of the cert (CN), organization (O), and organizational unit (OU). Uploading a valid cert file through the Intune admin console will automatically populate this value in the HTTP response. Supports: $filter, $select, $top, $OrderBy, $skip. $Search is not supported. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? Issuer { + get { return BackingStore?.Get("issuer"); } + set { BackingStore?.Set("issuer", value); } + } +#nullable restore +#else + public string Issuer { + get { return BackingStore?.Get("issuer"); } + set { BackingStore?.Set("issuer", value); } + } +#endif + /// The issuer name for the cert. This might contain information such as country (C), state or province (S), locality (L), common name of the cert (CN), organization (O), and organizational unit (OU). Uploading a valid cert file through the Intune admin console will automatically populate this value in the HTTP response. Supports: $filter, $select, $top, $OrderBy, $skip. $Search is not supported. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? IssuerName { + get { return BackingStore?.Get("issuerName"); } + set { BackingStore?.Set("issuerName", value); } + } +#nullable restore +#else + public string IssuerName { + get { return BackingStore?.Get("issuerName"); } + set { BackingStore?.Set("issuerName", value); } + } +#endif + /// The status property + public CertificateStatus? Status { + get { return BackingStore?.Get("status"); } + set { BackingStore?.Set("status", value); } + } + /// The subject value for the cert. This might contain information such as country (C), state or province (S), locality (L), common name of the cert (CN), organization (O), and organizational unit (OU). Uploading a valid cert file through the Intune admin console will automatically populate this value in the HTTP response. Supports: $filter, $select, $top, $OrderBy, $skip. $Search is not supported. +#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 subject name for the cert. This might contain information such as country (C), state or province (S), locality (L), common name of the cert (CN), organization (O), and organizational unit (OU). Uploading a valid cert file through the Intune admin console will automatically populate this value in the HTTP response. Supports: $filter, $select, $top, $OrderBy, $skip. $Search is not supported. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public string? SubjectName { + get { return BackingStore?.Get("subjectName"); } + set { BackingStore?.Set("subjectName", value); } + } +#nullable restore +#else + public string SubjectName { + get { return BackingStore?.Get("subjectName"); } + set { BackingStore?.Set("subjectName", value); } + } +#endif + /// The date time of CodeSigning Cert when it is uploaded (using ISO 8601 format, in UTC time). Uploading a valid cert file through the Intune admin console will automatically populate this value in the HTTP response. Supports: $filter, $select, $top, $OrderBy, $skip. $Search is not supported. + public DateTimeOffset? UploadDateTime { + get { return BackingStore?.Get("uploadDateTime"); } + set { BackingStore?.Set("uploadDateTime", value); } + } + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new EnterpriseCodeSigningCertificate CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new EnterpriseCodeSigningCertificate(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"content", n => { Content = n.GetByteArrayValue(); } }, + {"expirationDateTime", n => { ExpirationDateTime = n.GetDateTimeOffsetValue(); } }, + {"issuer", n => { Issuer = n.GetStringValue(); } }, + {"issuerName", n => { IssuerName = n.GetStringValue(); } }, + {"status", n => { Status = n.GetEnumValue(); } }, + {"subject", n => { Subject = n.GetStringValue(); } }, + {"subjectName", n => { SubjectName = n.GetStringValue(); } }, + {"uploadDateTime", n => { UploadDateTime = n.GetDateTimeOffsetValue(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteByteArrayValue("content", Content); + writer.WriteDateTimeOffsetValue("expirationDateTime", ExpirationDateTime); + writer.WriteStringValue("issuer", Issuer); + writer.WriteStringValue("issuerName", IssuerName); + writer.WriteEnumValue("status", Status); + writer.WriteStringValue("subject", Subject); + writer.WriteStringValue("subjectName", SubjectName); + writer.WriteDateTimeOffsetValue("uploadDateTime", UploadDateTime); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Entity.cs b/src/Microsoft.Graph/Generated/Models/Entity.cs index eb7311587f7..9aa1b0facb0 100644 --- a/src/Microsoft.Graph/Generated/Models/Entity.cs +++ b/src/Microsoft.Graph/Generated/Models/Entity.cs @@ -275,6 +275,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.endpoint" => new Endpoint(), "#microsoft.graph.enrollmentConfigurationAssignment" => new EnrollmentConfigurationAssignment(), "#microsoft.graph.enrollmentTroubleshootingEvent" => new EnrollmentTroubleshootingEvent(), + "#microsoft.graph.enterpriseCodeSigningCertificate" => new EnterpriseCodeSigningCertificate(), "#microsoft.graph.entitlementManagement" => new EntitlementManagement(), "#microsoft.graph.entitlementManagementSettings" => new EntitlementManagementSettings(), "#microsoft.graph.event" => new Event(), @@ -326,6 +327,7 @@ public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) { "#microsoft.graph.iosGeneralDeviceConfiguration" => new IosGeneralDeviceConfiguration(), "#microsoft.graph.iosiPadOSWebClip" => new IosiPadOSWebClip(), "#microsoft.graph.iosLobApp" => new IosLobApp(), + "#microsoft.graph.iosLobAppProvisioningConfigurationAssignment" => new IosLobAppProvisioningConfigurationAssignment(), "#microsoft.graph.iosManagedAppProtection" => new IosManagedAppProtection(), "#microsoft.graph.iosManagedAppRegistration" => new IosManagedAppRegistration(), "#microsoft.graph.iosMobileAppConfiguration" => new IosMobileAppConfiguration(), diff --git a/src/Microsoft.Graph/Generated/Models/EntityType.cs b/src/Microsoft.Graph/Generated/Models/EntityType.cs index 36f373f476c..d391a2a511a 100644 --- a/src/Microsoft.Graph/Generated/Models/EntityType.cs +++ b/src/Microsoft.Graph/Generated/Models/EntityType.cs @@ -10,5 +10,6 @@ public enum EntityType { Drive, UnknownFutureValue, ChatMessage, + Person, } } diff --git a/src/Microsoft.Graph/Generated/Models/Group.cs b/src/Microsoft.Graph/Generated/Models/Group.cs index 2e5b8242ce7..2932739d10d 100644 --- a/src/Microsoft.Graph/Generated/Models/Group.cs +++ b/src/Microsoft.Graph/Generated/Models/Group.cs @@ -772,7 +772,7 @@ public string Visibility { } #endif /// - /// Instantiates a new group and sets the default values. + /// Instantiates a new Group and sets the default values. /// public Group() : base() { OdataType = "#microsoft.graph.group"; diff --git a/src/Microsoft.Graph/Generated/Models/IosLobAppProvisioningConfigurationAssignment.cs b/src/Microsoft.Graph/Generated/Models/IosLobAppProvisioningConfigurationAssignment.cs new file mode 100644 index 00000000000..f04e006f86c --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/IosLobAppProvisioningConfigurationAssignment.cs @@ -0,0 +1,48 @@ +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Models { + public class IosLobAppProvisioningConfigurationAssignment : Entity, IParsable { + /// The target group assignment defined by the admin. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public DeviceAndAppManagementAssignmentTarget? Target { + get { return BackingStore?.Get("target"); } + set { BackingStore?.Set("target", value); } + } +#nullable restore +#else + public DeviceAndAppManagementAssignmentTarget Target { + get { return BackingStore?.Get("target"); } + set { BackingStore?.Set("target", value); } + } +#endif + /// + /// 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 IosLobAppProvisioningConfigurationAssignment CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new IosLobAppProvisioningConfigurationAssignment(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"target", n => { Target = n.GetObjectValue(DeviceAndAppManagementAssignmentTarget.CreateFromDiscriminatorValue); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteObjectValue("target", Target); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Models/LobbyBypassScope.cs b/src/Microsoft.Graph/Generated/Models/LobbyBypassScope.cs new file mode 100644 index 00000000000..e38a80f89d8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/LobbyBypassScope.cs @@ -0,0 +1,11 @@ +namespace Microsoft.Graph.Models { + public enum LobbyBypassScope { + Organizer, + Organization, + OrganizationAndFederated, + Everyone, + UnknownFutureValue, + Invited, + OrganizationExcludingGuests, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/LobbyBypassSettings.cs b/src/Microsoft.Graph/Generated/Models/LobbyBypassSettings.cs index 096038a2f22..c0ee9fc9efe 100644 --- a/src/Microsoft.Graph/Generated/Models/LobbyBypassSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/LobbyBypassSettings.cs @@ -32,6 +32,11 @@ public string OdataType { set { BackingStore?.Set("@odata.type", value); } } #endif + /// Specifies the type of participants that are automatically admitted into a meeting, bypassing the lobby. Optional. + public LobbyBypassScope? Scope { + get { return BackingStore?.Get("scope"); } + set { BackingStore?.Set("scope", value); } + } /// /// Instantiates a new lobbyBypassSettings and sets the default values. /// @@ -54,6 +59,7 @@ public IDictionary> GetFieldDeserializers() { return new Dictionary> { {"isDialInBypassEnabled", n => { IsDialInBypassEnabled = n.GetBoolValue(); } }, {"@odata.type", n => { OdataType = n.GetStringValue(); } }, + {"scope", n => { Scope = n.GetEnumValue(); } }, }; } /// @@ -64,6 +70,7 @@ public void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteBoolValue("isDialInBypassEnabled", IsDialInBypassEnabled); writer.WriteStringValue("@odata.type", OdataType); + writer.WriteEnumValue("scope", Scope); writer.WriteAdditionalData(AdditionalData); } } diff --git a/src/Microsoft.Graph/Generated/Models/MailboxSettings.cs b/src/Microsoft.Graph/Generated/Models/MailboxSettings.cs index e55db142c7b..f6b01303821 100644 --- a/src/Microsoft.Graph/Generated/Models/MailboxSettings.cs +++ b/src/Microsoft.Graph/Generated/Models/MailboxSettings.cs @@ -116,7 +116,7 @@ public string TimeZone { set { BackingStore?.Set("timeZone", value); } } #endif - /// The userPurpose property + /// The purpose of the mailbox. Differentiates a mailbox for a single user from a shared mailbox and equipment mailbox in Exchange Online. Possible values are: user, linked, shared, room, equipment, others, unknownFutureValue. Read-only. public Microsoft.Graph.Models.UserPurpose? UserPurpose { get { return BackingStore?.Get("userPurpose"); } set { BackingStore?.Set("userPurpose", value); } diff --git a/src/Microsoft.Graph/Generated/Models/ManagedApp.cs b/src/Microsoft.Graph/Generated/Models/ManagedApp.cs index c0770cc3df1..014657ca819 100644 --- a/src/Microsoft.Graph/Generated/Models/ManagedApp.cs +++ b/src/Microsoft.Graph/Generated/Models/ManagedApp.cs @@ -4,6 +4,9 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { + /// + /// Abstract class that contains properties and inherited properties for apps that you can manage with an Intune app protection policy. + /// public class ManagedApp : MobileApp, IParsable { /// A managed (MAM) application's availability. public ManagedAppAvailability? AppAvailability { @@ -25,7 +28,7 @@ public string Version { } #endif /// - /// Instantiates a new ManagedApp and sets the default values. + /// Instantiates a new managedApp and sets the default values. /// public ManagedApp() : base() { OdataType = "#microsoft.graph.managedApp"; diff --git a/src/Microsoft.Graph/Generated/Models/MeetingChatMode.cs b/src/Microsoft.Graph/Generated/Models/MeetingChatMode.cs new file mode 100644 index 00000000000..d2b899eb369 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/MeetingChatMode.cs @@ -0,0 +1,8 @@ +namespace Microsoft.Graph.Models { + public enum MeetingChatMode { + Enabled, + Disabled, + Limited, + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/MobileThreatDefenseConnector.cs b/src/Microsoft.Graph/Generated/Models/MobileThreatDefenseConnector.cs index 9abcf8c29ba..d7bfcf92557 100644 --- a/src/Microsoft.Graph/Generated/Models/MobileThreatDefenseConnector.cs +++ b/src/Microsoft.Graph/Generated/Models/MobileThreatDefenseConnector.cs @@ -5,7 +5,7 @@ using System.Linq; namespace Microsoft.Graph.Models { /// - /// Entity which represents a connection to Mobile threat defense partner. + /// Entity which represents a connection to Mobile Threat Defense partner. /// public class MobileThreatDefenseConnector : Entity, IParsable { /// When TRUE, indicates the data sync partner may collect metadata about installed applications from Intune for IOS devices. When FALSE, indicates the data sync partner may not collect metadata about installed applications from Intune for IOS devices. Default value is FALSE. diff --git a/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs b/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs index 667333611bf..5a2dc2b0a85 100644 --- a/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs +++ b/src/Microsoft.Graph/Generated/Models/OnlineMeeting.cs @@ -15,6 +15,16 @@ public bool? AllowAttendeeToEnableMic { get { return BackingStore?.Get("allowAttendeeToEnableMic"); } set { BackingStore?.Set("allowAttendeeToEnableMic", value); } } + /// Specifies who can be a presenter in a meeting. Possible values are listed in the following table. + public OnlineMeetingPresenters? AllowedPresenters { + get { return BackingStore?.Get("allowedPresenters"); } + set { BackingStore?.Set("allowedPresenters", value); } + } + /// Specifies the mode of meeting chat. + public MeetingChatMode? AllowMeetingChat { + get { return BackingStore?.Get("allowMeetingChat"); } + set { BackingStore?.Set("allowMeetingChat", value); } + } /// Indicates whether Teams reactions are enabled for the meeting. public bool? AllowTeamworkReactions { get { return BackingStore?.Get("allowTeamworkReactions"); } @@ -247,6 +257,8 @@ public string VideoTeleconferenceId { return new Dictionary>(base.GetFieldDeserializers()) { {"allowAttendeeToEnableCamera", n => { AllowAttendeeToEnableCamera = n.GetBoolValue(); } }, {"allowAttendeeToEnableMic", n => { AllowAttendeeToEnableMic = n.GetBoolValue(); } }, + {"allowedPresenters", n => { AllowedPresenters = n.GetEnumValue(); } }, + {"allowMeetingChat", n => { AllowMeetingChat = n.GetEnumValue(); } }, {"allowTeamworkReactions", n => { AllowTeamworkReactions = n.GetBoolValue(); } }, {"attendanceReports", n => { AttendanceReports = n.GetCollectionOfObjectValues(MeetingAttendanceReport.CreateFromDiscriminatorValue)?.ToList(); } }, {"attendeeReport", n => { AttendeeReport = n.GetByteArrayValue(); } }, @@ -278,6 +290,8 @@ public string VideoTeleconferenceId { base.Serialize(writer); writer.WriteBoolValue("allowAttendeeToEnableCamera", AllowAttendeeToEnableCamera); writer.WriteBoolValue("allowAttendeeToEnableMic", AllowAttendeeToEnableMic); + writer.WriteEnumValue("allowedPresenters", AllowedPresenters); + writer.WriteEnumValue("allowMeetingChat", AllowMeetingChat); writer.WriteBoolValue("allowTeamworkReactions", AllowTeamworkReactions); writer.WriteCollectionOfObjectValues("attendanceReports", AttendanceReports); writer.WriteByteArrayValue("attendeeReport", AttendeeReport); diff --git a/src/Microsoft.Graph/Generated/Models/OnlineMeetingPresenters.cs b/src/Microsoft.Graph/Generated/Models/OnlineMeetingPresenters.cs new file mode 100644 index 00000000000..eec6bdea268 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Models/OnlineMeetingPresenters.cs @@ -0,0 +1,9 @@ +namespace Microsoft.Graph.Models { + public enum OnlineMeetingPresenters { + Everyone, + Organization, + RoleIsPresenter, + Organizer, + UnknownFutureValue, + } +} diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSource.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSource.cs index 91c54730f81..a6a7a5409f1 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSource.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryNoncustodialDataSource.cs @@ -34,7 +34,7 @@ public EdiscoveryIndexOperation LastIndexOperation { } #endif /// - /// Instantiates a new EdiscoveryNoncustodialDataSource and sets the default values. + /// Instantiates a new ediscoveryNoncustodialDataSource and sets the default values. /// public EdiscoveryNoncustodialDataSource() : base() { OdataType = "#microsoft.graph.security.ediscoveryNoncustodialDataSource"; diff --git a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewSetQuery.cs b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewSetQuery.cs index 14e753c515f..605389b6ea5 100644 --- a/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewSetQuery.cs +++ b/src/Microsoft.Graph/Generated/Models/Security/EdiscoveryReviewSetQuery.cs @@ -6,7 +6,7 @@ namespace Microsoft.Graph.Models.Security { public class EdiscoveryReviewSetQuery : Search, IParsable { /// - /// Instantiates a new EdiscoveryReviewSetQuery and sets the default values. + /// Instantiates a new ediscoveryReviewSetQuery and sets the default values. /// public EdiscoveryReviewSetQuery() : base() { OdataType = "#microsoft.graph.security.ediscoveryReviewSetQuery"; diff --git a/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs b/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs index 6c47decaf37..4caafe54a6c 100644 --- a/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs +++ b/src/Microsoft.Graph/Generated/Models/ServicePrincipal.cs @@ -656,7 +656,7 @@ public Microsoft.Graph.Models.VerifiedPublisher VerifiedPublisher { } #endif /// - /// Instantiates a new servicePrincipal and sets the default values. + /// Instantiates a new ServicePrincipal and sets the default values. /// public ServicePrincipal() : base() { OdataType = "#microsoft.graph.servicePrincipal"; diff --git a/src/Microsoft.Graph/Generated/Models/TermsAndConditions.cs b/src/Microsoft.Graph/Generated/Models/TermsAndConditions.cs index b28d16d4664..43f3b9b9a7a 100644 --- a/src/Microsoft.Graph/Generated/Models/TermsAndConditions.cs +++ b/src/Microsoft.Graph/Generated/Models/TermsAndConditions.cs @@ -4,9 +4,6 @@ using System.IO; using System.Linq; namespace Microsoft.Graph.Models { - /// - /// A termsAndConditions entity represents the metadata and contents of a given Terms and Conditions (T&C) policy. T&C policies’ contents are presented to users upon their first attempt to enroll into Intune and subsequently upon edits where an administrator has required re-acceptance. They enable administrators to communicate the provisions to which a user must agree in order to have devices enrolled into Intune. - /// public class TermsAndConditions : Entity, IParsable { /// Administrator-supplied explanation of the terms and conditions, typically describing what it means to accept the terms and conditions set out in the T&C policy. This is shown to the user on prompts to accept the T&C policy. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER diff --git a/src/Microsoft.Graph/Generated/Models/User.cs b/src/Microsoft.Graph/Generated/Models/User.cs index e4e1ea5d385..4fa068019f2 100644 --- a/src/Microsoft.Graph/Generated/Models/User.cs +++ b/src/Microsoft.Graph/Generated/Models/User.cs @@ -450,7 +450,7 @@ public string EmployeeId { set { BackingStore?.Set("employeeId", value); } } #endif - /// The employeeLeaveDateTime property + /// The date and time when the user left or will leave the organization. To read this property, the calling app must be assigned the User-LifeCycleInfo.Read.All permission. To write this property, the calling app must be assigned the User.Read.All and User-LifeCycleInfo.ReadWrite.All permissions. To read this property in delegated scenarios, the admin needs one of the following Azure AD roles: Lifecycle Workflows Administrator, Global Reader, or Global Administrator. To write this property in delegated scenarios, the admin needs the Global Administrator role. Supports $filter (eq, ne, not , ge, le, in). For more information, see Configure the employeeLeaveDateTime property for a user. public DateTimeOffset? EmployeeLeaveDateTime { get { return BackingStore?.Get("employeeLeaveDateTime"); } set { BackingStore?.Set("employeeLeaveDateTime", value); } diff --git a/src/Microsoft.Graph/Generated/Organization/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..1097692e422 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Organization/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,166 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Organization.Delta { + /// + /// Provides operations to call the delta method. + /// + public class DeltaRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/organization/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/organization/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke function delta + /// + /// 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 GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke function delta + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new DeltaRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke function delta + /// + public class DeltaRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DeltaRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public DeltaRequestBuilderGetQueryParameters QueryParameters { get; set; } = new DeltaRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new deltaRequestBuilderGetRequestConfiguration and sets the default values. + /// + public DeltaRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Organization/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Organization/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..c79703b3cd1 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Organization/Delta/DeltaResponse.cs @@ -0,0 +1,49 @@ +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Organization.Delta { + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Organization/OrganizationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Organization/OrganizationRequestBuilder.cs index 6b2196a7e76..263e8bea111 100644 --- a/src/Microsoft.Graph/Generated/Organization/OrganizationRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Organization/OrganizationRequestBuilder.cs @@ -1,6 +1,7 @@ using Microsoft.Graph.Models; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Organization.Count; +using Microsoft.Graph.Organization.Delta; using Microsoft.Graph.Organization.GetAvailableExtensionProperties; using Microsoft.Graph.Organization.GetByIds; using Microsoft.Graph.Organization.Item; @@ -22,6 +23,10 @@ public class OrganizationRequestBuilder { public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to call the delta method. + public DeltaRequestBuilder Delta { get => + new DeltaRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the getAvailableExtensionProperties method. public GetAvailableExtensionPropertiesRequestBuilder GetAvailableExtensionProperties { get => new GetAvailableExtensionPropertiesRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..80016cab029 --- /dev/null +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,166 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.PermissionGrants.Delta { + /// + /// Provides operations to call the delta method. + /// + public class DeltaRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/permissionGrants/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/permissionGrants/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke function delta + /// + /// 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 GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke function delta + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new DeltaRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke function delta + /// + public class DeltaRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DeltaRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public DeltaRequestBuilderGetQueryParameters QueryParameters { get; set; } = new DeltaRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new deltaRequestBuilderGetRequestConfiguration and sets the default values. + /// + public DeltaRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..3ff325072bc --- /dev/null +++ b/src/Microsoft.Graph/Generated/PermissionGrants/Delta/DeltaResponse.cs @@ -0,0 +1,49 @@ +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.PermissionGrants.Delta { + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/PermissionGrants/PermissionGrantsRequestBuilder.cs b/src/Microsoft.Graph/Generated/PermissionGrants/PermissionGrantsRequestBuilder.cs index 62bd49154da..3f3c330ed88 100644 --- a/src/Microsoft.Graph/Generated/PermissionGrants/PermissionGrantsRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/PermissionGrants/PermissionGrantsRequestBuilder.cs @@ -1,5 +1,6 @@ using Microsoft.Graph.Models; using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Graph.PermissionGrants.Delta; using Microsoft.Graph.PermissionGrants.GetAvailableExtensionProperties; using Microsoft.Graph.PermissionGrants.GetByIds; using Microsoft.Graph.PermissionGrants.Item; @@ -17,6 +18,10 @@ namespace Microsoft.Graph.PermissionGrants { /// Provides operations to manage the collection of resourceSpecificPermissionGrant entities. /// public class PermissionGrantsRequestBuilder { + /// Provides operations to call the delta method. + public DeltaRequestBuilder Delta { get => + new DeltaRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the getAvailableExtensionProperties method. public GetAvailableExtensionPropertiesRequestBuilder GetAvailableExtensionProperties { get => new GetAvailableExtensionPropertiesRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs index d70b574fdd0..683daaf0236 100644 --- a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/AppliesToRequestBuilder.cs @@ -1,6 +1,7 @@ using Microsoft.Graph.Models; using Microsoft.Graph.Models.ODataErrors; using Microsoft.Graph.Policies.FeatureRolloutPolicies.Item.AppliesTo.Count; +using Microsoft.Graph.Policies.FeatureRolloutPolicies.Item.AppliesTo.Delta; using Microsoft.Graph.Policies.FeatureRolloutPolicies.Item.AppliesTo.GetAvailableExtensionProperties; using Microsoft.Graph.Policies.FeatureRolloutPolicies.Item.AppliesTo.GetByIds; using Microsoft.Graph.Policies.FeatureRolloutPolicies.Item.AppliesTo.Item; @@ -23,6 +24,10 @@ public class AppliesToRequestBuilder { public CountRequestBuilder Count { get => new CountRequestBuilder(PathParameters, RequestAdapter); } + /// Provides operations to call the delta method. + public DeltaRequestBuilder Delta { get => + new DeltaRequestBuilder(PathParameters, RequestAdapter); + } /// Provides operations to call the getAvailableExtensionProperties method. public GetAvailableExtensionPropertiesRequestBuilder GetAvailableExtensionProperties { get => new GetAvailableExtensionPropertiesRequestBuilder(PathParameters, RequestAdapter); diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Delta/DeltaRequestBuilder.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Delta/DeltaRequestBuilder.cs new file mode 100644 index 00000000000..b0de603d8c8 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Delta/DeltaRequestBuilder.cs @@ -0,0 +1,166 @@ +using Microsoft.Graph.Models.ODataErrors; +using Microsoft.Kiota.Abstractions; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +namespace Microsoft.Graph.Policies.FeatureRolloutPolicies.Item.AppliesTo.Delta { + /// + /// Provides operations to call the delta method. + /// + public class DeltaRequestBuilder { + /// Path parameters for the request + private Dictionary PathParameters { get; set; } + /// The request adapter to use to execute the requests. + private IRequestAdapter RequestAdapter { get; set; } + /// Url template to use to build the URL for the current request builder + private string UrlTemplate { get; set; } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// Path parameters for the request + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) { + _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(pathParameters); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Instantiates a new DeltaRequestBuilder and sets the default values. + /// + /// The raw URL to use for the request builder. + /// The request adapter to use to execute the requests. + public DeltaRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { + if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl)); + _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter)); + UrlTemplate = "{+baseurl}/policies/featureRolloutPolicies/{featureRolloutPolicy%2Did}/appliesTo/delta(){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}"; + var urlTplParams = new Dictionary(); + if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl); + PathParameters = urlTplParams; + RequestAdapter = requestAdapter; + } + /// + /// Invoke function delta + /// + /// 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 GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) { +#nullable restore +#else + public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) { +#endif + var requestInfo = ToGetRequestInformation(requestConfiguration); + var errorMapping = new Dictionary> { + {"4XX", ODataError.CreateFromDiscriminatorValue}, + {"5XX", ODataError.CreateFromDiscriminatorValue}, + }; + return await RequestAdapter.SendAsync(requestInfo, DeltaResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); + } + /// + /// Invoke function delta + /// + /// Configuration for the request such as headers, query parameters, and middleware options. +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) { +#nullable restore +#else + public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) { +#endif + var requestInfo = new RequestInformation { + HttpMethod = Method.GET, + UrlTemplate = UrlTemplate, + PathParameters = PathParameters, + }; + requestInfo.Headers.Add("Accept", "application/json"); + if (requestConfiguration != null) { + var requestConfig = new DeltaRequestBuilderGetRequestConfiguration(); + requestConfiguration.Invoke(requestConfig); + requestInfo.AddQueryParameters(requestConfig.QueryParameters); + requestInfo.AddRequestOptions(requestConfig.Options); + requestInfo.AddHeaders(requestConfig.Headers); + } + return requestInfo; + } + /// + /// Invoke function delta + /// + public class DeltaRequestBuilderGetQueryParameters { + /// Include count of items + [QueryParameter("%24count")] + public bool? Count { get; set; } + /// Filter items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24filter")] + public string? Filter { get; set; } +#nullable restore +#else + [QueryParameter("%24filter")] + public string Filter { get; set; } +#endif + /// Order items by property values +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24orderby")] + public string[]? Orderby { get; set; } +#nullable restore +#else + [QueryParameter("%24orderby")] + public string[] Orderby { get; set; } +#endif + /// Search items by search phrases +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24search")] + public string? Search { get; set; } +#nullable restore +#else + [QueryParameter("%24search")] + public string Search { get; set; } +#endif + /// Select properties to be returned +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + [QueryParameter("%24select")] + public string[]? Select { get; set; } +#nullable restore +#else + [QueryParameter("%24select")] + public string[] Select { get; set; } +#endif + /// Skip the first n items + [QueryParameter("%24skip")] + public int? Skip { get; set; } + /// Show only the first n items + [QueryParameter("%24top")] + public int? Top { get; set; } + } + /// + /// Configuration for the request such as headers, query parameters, and middleware options. + /// + public class DeltaRequestBuilderGetRequestConfiguration { + /// Request headers + public RequestHeaders Headers { get; set; } + /// Request options + public IList Options { get; set; } + /// Request query parameters + public DeltaRequestBuilderGetQueryParameters QueryParameters { get; set; } = new DeltaRequestBuilderGetQueryParameters(); + /// + /// Instantiates a new deltaRequestBuilderGetRequestConfiguration and sets the default values. + /// + public DeltaRequestBuilderGetRequestConfiguration() { + Options = new List(); + Headers = new RequestHeaders(); + } + } + } +} diff --git a/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Delta/DeltaResponse.cs b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Delta/DeltaResponse.cs new file mode 100644 index 00000000000..11fc69d6579 --- /dev/null +++ b/src/Microsoft.Graph/Generated/Policies/FeatureRolloutPolicies/Item/AppliesTo/Delta/DeltaResponse.cs @@ -0,0 +1,49 @@ +using Microsoft.Graph.Models; +using Microsoft.Kiota.Abstractions.Serialization; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +namespace Microsoft.Graph.Policies.FeatureRolloutPolicies.Item.AppliesTo.Delta { + public class DeltaResponse : BaseDeltaFunctionResponse, IParsable { + /// The value property +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER +#nullable enable + public List? Value { + get { return BackingStore?.Get?>("value"); } + set { BackingStore?.Set("value", value); } + } +#nullable restore +#else + public List Value { + get { return BackingStore?.Get>("value"); } + set { BackingStore?.Set("value", value); } + } +#endif + /// + /// Creates a new instance of the appropriate class based on discriminator value + /// + /// The parse node to use to read the discriminator value and create the object + public static new DeltaResponse CreateFromDiscriminatorValue(IParseNode parseNode) { + _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); + return new DeltaResponse(); + } + /// + /// The deserialization information for the current model + /// + public new IDictionary> GetFieldDeserializers() { + return new Dictionary>(base.GetFieldDeserializers()) { + {"value", n => { Value = n.GetCollectionOfObjectValues(DirectoryObject.CreateFromDiscriminatorValue)?.ToList(); } }, + }; + } + /// + /// Serializes information the current object + /// + /// Serialization writer to use to serialize this model + public new void Serialize(ISerializationWriter writer) { + _ = writer ?? throw new ArgumentNullException(nameof(writer)); + base.Serialize(writer); + writer.WriteCollectionOfObjectValues("value", Value); + } + } +} diff --git a/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index 3b7819d330f..d28a23dbcbb 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 @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 @@ -132,7 +132,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/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs index 8a216e23d56..1a72f915592 100644 --- a/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Teams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 @@ -132,7 +132,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/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Teamwork/DeletedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index 852650d9df2..41d007b70a9 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 @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 @@ -132,7 +132,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/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Chats/Item/Messages/MessagesRequestBuilder.cs index 7056be0ce1e..8480d25d41c 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 @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 @@ -132,7 +132,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/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/Channels/Item/Messages/MessagesRequestBuilder.cs index fef891f1b2e..5e56d1947e3 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 @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 @@ -132,7 +132,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/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/JoinedTeams/Item/PrimaryChannel/Messages/MessagesRequestBuilder.cs index d1f966a191e..b3fc6044faf 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 @@ -84,8 +84,8 @@ public async Task GetAsync(Action(requestInfo, ChatMessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// 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 @@ -132,7 +132,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/Messages/Item/Value/ContentRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs index e4dd3788b7b..952a7862f7e 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 @@ -47,7 +47,7 @@ public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// /// 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 64422ac9f2e..b1d69bb8fa4 100644 --- a/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/Item/Messages/MessagesRequestBuilder.cs @@ -64,8 +64,8 @@ public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Get the messages in the signed-in user's mailbox (including the Deleted Items and Clutter folders). Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. Use `$top` to customize the page size, within the range of 1 and 1000. To improve the operation response time, use `$select` to specify the exact properties you need; see example 1 below. Fine-tune the values for `$select` and `$top`, especially when you must use a larger page size, as returning a page with hundreds of messages each with a full response payload may trigger the gateway timeout (HTTP 504). To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request. Do not try to extract the `$skip` value from the `@odata.nextLink` URL to manipulate responses. This API uses the `$skip` value to keep count of all the items it has gone through in the user's mailbox to return a page of message-type items. It's therefore possible that even in the initial response, the `$skip` value is larger than the page size. For more information, see Paging Microsoft Graph data in your app. Currently, this operation returns message bodies in only HTML format. There are two scenarios where an app can get messages in another user's mail folder: - /// Find more info here + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// Find more info here /// /// 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, MessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. See known limitations of open extensions for more information. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// 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 @@ -106,7 +106,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Get the messages in the signed-in user's mailbox (including the Deleted Items and Clutter folders). Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. Use `$top` to customize the page size, within the range of 1 and 1000. To improve the operation response time, use `$select` to specify the exact properties you need; see example 1 below. Fine-tune the values for `$select` and `$top`, especially when you must use a larger page size, as returning a page with hundreds of messages each with a full response payload may trigger the gateway timeout (HTTP 504). To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request. Do not try to extract the `$skip` value from the `@odata.nextLink` URL to manipulate responses. This API uses the `$skip` value to keep count of all the items it has gone through in the user's mailbox to return a page of message-type items. It's therefore possible that even in the initial response, the `$skip` value is larger than the page size. For more information, see Paging Microsoft Graph data in your app. Currently, this operation returns message bodies in only HTML format. There are two scenarios where an app can get messages in another user's mail folder: + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. /// /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -132,7 +132,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. See known limitations of open extensions for more information. 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. @@ -160,7 +160,7 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.Messag return requestInfo; } /// - /// Get the messages in the signed-in user's mailbox (including the Deleted Items and Clutter folders). Depending on the page size and mailbox data, getting messages from a mailbox can incur multiple requests. The default page size is 10 messages. Use `$top` to customize the page size, within the range of 1 and 1000. To improve the operation response time, use `$select` to specify the exact properties you need; see example 1 below. Fine-tune the values for `$select` and `$top`, especially when you must use a larger page size, as returning a page with hundreds of messages each with a full response payload may trigger the gateway timeout (HTTP 504). To get the next page of messages, simply apply the entire URL returned in `@odata.nextLink` to the next get-messages request. This URL includes any query parameters you may have specified in the initial request. Do not try to extract the `$skip` value from the `@odata.nextLink` URL to manipulate responses. This API uses the `$skip` value to keep count of all the items it has gone through in the user's mailbox to return a page of message-type items. It's therefore possible that even in the initial response, the `$skip` value is larger than the page size. For more information, see Paging Microsoft Graph data in your app. Currently, this operation returns message bodies in only HTML format. There are two scenarios where an app can get messages in another user's mail folder: + /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. /// public class MessagesRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs b/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs index 70258d9c047..8533d7250db 100644 --- a/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs +++ b/src/Microsoft.Graph/Generated/Users/UsersRequestBuilder.cs @@ -79,8 +79,8 @@ public UsersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { RequestAdapter = requestAdapter; } /// - /// Retrieve a list of user objects. - /// 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. @@ -121,7 +121,7 @@ public async Task GetAsync(Action(requestInfo, Microsoft.Graph.Models.User.CreateFromDiscriminatorValue, errorMapping, cancellationToken); } /// - /// Retrieve a list of user objects. + /// 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 @@ -175,7 +175,7 @@ public RequestInformation ToPostRequestInformation(Microsoft.Graph.Models.User b return requestInfo; } /// - /// Retrieve a list of user objects. + /// Retrieve the properties and relationships of user object. /// public class UsersRequestBuilderGetQueryParameters { /// Include count of items diff --git a/src/Microsoft.Graph/Generated/kiota-lock.json b/src/Microsoft.Graph/Generated/kiota-lock.json index 04ac799d14b..5487f73a7e2 100644 --- a/src/Microsoft.Graph/Generated/kiota-lock.json +++ b/src/Microsoft.Graph/Generated/kiota-lock.json @@ -1,5 +1,5 @@ { - "descriptionHash": "78AA9F94D2DFCD5360E57A55F43188FD0D93EE7CA05D4991D7E8827C21273FB0039479A8493895678BDFF4595E9725B5F6FDD53F2DC74D8C3045B17F5704F69A", + "descriptionHash": "93A8BD6BB19D91979901D5B26E370C041B1EC3CED2BCCE0407F76AB2E0AC86B306564402C61DC4DD8CD4D1B1958A9D4970C95CB4A76CF31BBFC6CF8AC23B9FC6", "descriptionLocation": "/mnt/vss/_work/1/s/msgraph-metadata/clean_v10_openapi/openapi.yaml", "lockFileVersion": "1.0.0", "kiotaVersion": "0.11.1-preview",