diff --git a/CHANGELOG.md b/CHANGELOG.md
index a01edeb3f56..014de41f9af 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,14 @@ and this project does NOT adhere to [Semantic Versioning](https://semver.org/spe
## [Unreleased]
+## [5.23.0] - 2023-03-21
+
+### Added
+
+- Allows checking for status codes without parsing request bodies in batch requests (https://github.com/microsoftgraph/msgraph-sdk-dotnet-core/pull/626)
+- Updates kiota abstraction library dependencies to fix serialization errors.
+- Latest metadata updates from 21st March 2023
+
## [5.22.0] - 2023-03-14
### Added
diff --git a/src/Microsoft.Graph/Enums/GraphErrorCode.cs b/src/Microsoft.Graph/Enums/GraphErrorCode.cs
index 205ba9b62df..1ba64469300 100644
--- a/src/Microsoft.Graph/Enums/GraphErrorCode.cs
+++ b/src/Microsoft.Graph/Enums/GraphErrorCode.cs
@@ -2,7 +2,7 @@
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
-namespace Microsoft.Graph
+namespace Microsoft.Graph.Beta
{
///
/// Graph error codes
diff --git a/src/Microsoft.Graph/Extensions/PlannerAssignment.cs b/src/Microsoft.Graph/Extensions/PlannerAssignment.cs
new file mode 100644
index 00000000000..964f8be4984
--- /dev/null
+++ b/src/Microsoft.Graph/Extensions/PlannerAssignment.cs
@@ -0,0 +1,85 @@
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+using Microsoft.Kiota.Abstractions.Serialization;
+using Microsoft.Kiota.Abstractions.Store;
+using System;
+using System.Collections.Generic;
+
+namespace Microsoft.Graph.Beta.Models;
+
+public class PlannerAssignment: IAdditionalDataHolder, IBackedModel, IParsable
+{
+ /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
+ public IDictionary AdditionalData {
+ get { return BackingStore?.Get>("additionalData"); }
+ set { BackingStore?.Set("additionalData", value); }
+ }
+ /// Stores model information.
+ public IBackingStore BackingStore { get; private set; }
+ /// The OdataType property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? OdataType {
+ get { return BackingStore?.Get("@odata.type"); }
+ set { BackingStore?.Set("@odata.type", value); }
+ }
+#nullable restore
+#else
+ public string OdataType {
+ get { return BackingStore?.Get("@odata.type"); }
+ set { BackingStore?.Set("@odata.type", value); }
+ }
+#endif
+ /// The OdataType property
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public string? OrderHint {
+ get { return BackingStore?.Get("orderHint"); }
+ set { BackingStore?.Set("orderHint", value); }
+ }
+#nullable restore
+#else
+ public string OrderHint {
+ get { return BackingStore?.Get("orderHint"); }
+ set { BackingStore?.Set("orderHint", value); }
+ }
+#endif
+ ///
+ /// Instantiates a new auditActivityInitiator and sets the default values.
+ ///
+ public PlannerAssignment() {
+ BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore();
+ AdditionalData = new Dictionary();
+ OdataType = "#microsoft.graph.plannerAssignment";
+ OrderHint = "!";
+ }
+ ///
+ /// 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 PlannerAssignment CreateFromDiscriminatorValue(IParseNode parseNode) {
+ _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
+ return new PlannerAssignment();
+ }
+ ///
+ /// The deserialization information for the current model
+ ///
+ public IDictionary> GetFieldDeserializers() {
+ return new Dictionary> {
+ {"@odata.type", n => { OdataType = n.GetStringValue(); } },
+ {"orderHint", n => { OrderHint = n.GetStringValue(); } },
+ };
+ }
+ ///
+ /// Serializes information the current object
+ ///
+ /// Serialization writer to use to serialize this model
+ public void Serialize(ISerializationWriter writer) {
+ _ = writer ?? throw new ArgumentNullException(nameof(writer));
+ writer.WriteStringValue("@odata.type", OdataType);
+ writer.WriteStringValue("orderHint", OrderHint);
+ writer.WriteAdditionalData(AdditionalData);
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.cs b/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.cs
index 6d1596b461c..aca3274c7fe 100644
--- a/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/App/Calls/Item/Participants/Invite/InviteRequestBuilder.cs
@@ -47,8 +47,8 @@ public InviteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
RequestAdapter = requestAdapter;
}
///
- /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
- /// Find more info here
+ /// Invite participants to the active call. For more information about how to handle operations, see commsOperation.
+ /// Find more info here
///
/// The request body
/// Cancellation token to use when cancelling requests
@@ -69,7 +69,7 @@ public async Task PostAsync(InvitePostRequestBody b
return await RequestAdapter.SendAsync(requestInfo, InviteParticipantsOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
+ /// Invite participants to the active call. For more information about how to handle operations, see commsOperation.
///
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs
index 00614da8a5b..289c0aa795a 100644
--- a/src/Microsoft.Graph/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/App/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs
@@ -52,8 +52,8 @@ public RegistrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
RequestAdapter = requestAdapter;
}
///
- /// Disable and delete the externalMeetingRegistration of an onlineMeeting.
- /// Find more info here
+ /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer.
+ /// Find more info here
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -114,7 +114,7 @@ public async Task PatchAsync(MeetingRegistration body, Acti
return await RequestAdapter.SendAsync(requestInfo, MeetingRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Disable and delete the externalMeetingRegistration of an onlineMeeting.
+ /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer.
///
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
diff --git a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs
index d1e1527b4ea..2ab378c6c87 100644
--- a/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Applications/Item/TokenLifetimePolicies/Ref/RefRequestBuilder.cs
@@ -67,8 +67,7 @@ public async Task GetAsync(Action(requestInfo, StringCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Assign a tokenLifetimePolicy to an application or servicePrincipal.
- /// Find more info here
+ /// Create new navigation property ref to tokenLifetimePolicies for applications
///
/// The request body
/// Cancellation token to use when cancelling requests
@@ -115,7 +114,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Assign a tokenLifetimePolicy to an application or servicePrincipal.
+ /// Create new navigation property ref to tokenLifetimePolicies for applications
///
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Chats/Item/Messages/MessagesRequestBuilder.cs
index dc79ee15261..8d3fa6f2513 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 cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating 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 cannot create a new chat; you must use the list chats method to retrieve the ID of an existing chat before creating 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/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs
index 5f419c197c4..fc5eda4ba3d 100644
--- a/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Communications/Calls/Item/Participants/Invite/InviteRequestBuilder.cs
@@ -47,8 +47,8 @@ public InviteRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
RequestAdapter = requestAdapter;
}
///
- /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
- /// Find more info here
+ /// Invite participants to the active call. For more information about how to handle operations, see commsOperation.
+ /// Find more info here
///
/// The request body
/// Cancellation token to use when cancelling requests
@@ -69,7 +69,7 @@ public async Task PostAsync(InvitePostRequestBody b
return await RequestAdapter.SendAsync(requestInfo, InviteParticipantsOperation.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Delete a specific participant in a call. In some situations, it is appropriate for an application to remove a participant from an active call. This action can be done before or after the participant answers the call. When an active caller is removed, they are immediately dropped from the call with no pre- or post-removal notification. When an invited participant is removed, any outstanding add participant request is canceled.
+ /// Invite participants to the active call. For more information about how to handle operations, see commsOperation.
///
/// The request body
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs
index d3aa5518da2..d536ec86c6d 100644
--- a/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Communications/OnlineMeetings/Item/Registration/RegistrationRequestBuilder.cs
@@ -52,8 +52,8 @@ public RegistrationRequestBuilder(string rawUrl, IRequestAdapter requestAdapter)
RequestAdapter = requestAdapter;
}
///
- /// Disable and delete the externalMeetingRegistration of an onlineMeeting.
- /// Find more info here
+ /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer.
+ /// Find more info here
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -114,7 +114,7 @@ public async Task PatchAsync(MeetingRegistration body, Acti
return await RequestAdapter.SendAsync(requestInfo, MeetingRegistration.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Disable and delete the externalMeetingRegistration of an onlineMeeting.
+ /// Disable and delete the meetingRegistration of an onlineMeeting on behalf of the organizer.
///
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs
new file mode 100644
index 00000000000..8e1455ebe21
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs
@@ -0,0 +1,137 @@
+using Microsoft.Graph.Beta.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.Beta.Contacts.Item.MemberOf.GraphAdministrativeUnit.Count {
+ ///
+ /// Provides operations to count the resources in the collection.
+ ///
+ public class CountRequestBuilder {
+ /// 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 CountRequestBuilder and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.administrativeUnit/$count{?%24search,%24filter}";
+ var urlTplParams = new Dictionary(pathParameters);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Instantiates a new CountRequestBuilder and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.administrativeUnit/$count{?%24search,%24filter}";
+ var urlTplParams = new Dictionary();
+ if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ /// 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.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken);
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_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", "text/plain");
+ if (requestConfiguration != null) {
+ var requestConfig = new CountRequestBuilderGetRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddQueryParameters(requestConfig.QueryParameters);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ public class CountRequestBuilderGetQueryParameters {
+ /// Filter items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24filter")]
+ public string? Filter { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24filter")]
+ public string Filter { get; set; }
+#endif
+ /// Search items by search phrases
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24search")]
+ public string? Search { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24search")]
+ public string Search { get; set; }
+#endif
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class CountRequestBuilderGetRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ /// Request query parameters
+ public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters();
+ ///
+ /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values.
+ ///
+ public CountRequestBuilderGetRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
new file mode 100644
index 00000000000..c7a5c6d02d3
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
@@ -0,0 +1,182 @@
+using Microsoft.Graph.Beta.Contacts.Item.MemberOf.GraphAdministrativeUnit.Count;
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Graph.Beta.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.Beta.Contacts.Item.MemberOf.GraphAdministrativeUnit {
+ ///
+ /// Casts the previous resource to administrativeUnit.
+ ///
+ public class GraphAdministrativeUnitRequestBuilder {
+ /// Provides operations to count the resources in the collection.
+ public CountRequestBuilder Count { get =>
+ new CountRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// 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 GraphAdministrativeUnitRequestBuilder and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
+ var urlTplParams = new Dictionary(pathParameters);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public GraphAdministrativeUnitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/contacts/{orgContact%2Did}/memberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
+ var urlTplParams = new Dictionary();
+ if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
+ ///
+ /// 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, AdministrativeUnitCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ }
+ ///
+ /// Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_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 GraphAdministrativeUnitRequestBuilderGetRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddQueryParameters(requestConfig.QueryParameters);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
+ ///
+ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters {
+ /// Include count of items
+ [QueryParameter("%24count")]
+ public bool? Count { get; set; }
+ /// Expand related entities
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24expand")]
+ public string[]? Expand { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24expand")]
+ public string[] Expand { get; set; }
+#endif
+ /// Filter items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24filter")]
+ public string? Filter { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24filter")]
+ public string Filter { get; set; }
+#endif
+ /// Order items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24orderby")]
+ public string[]? Orderby { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24orderby")]
+ public string[] Orderby { get; set; }
+#endif
+ /// Search items by search phrases
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24search")]
+ public string? Search { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24search")]
+ public string Search { get; set; }
+#endif
+ /// Select properties to be returned
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24select")]
+ public string[]? Select { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24select")]
+ public string[] Select { get; set; }
+#endif
+ /// Skip the first n items
+ [QueryParameter("%24skip")]
+ public int? Skip { get; set; }
+ /// Show only the first n items
+ [QueryParameter("%24top")]
+ public int? Top { get; set; }
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ /// Request query parameters
+ public GraphAdministrativeUnitRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GraphAdministrativeUnitRequestBuilderGetQueryParameters();
+ ///
+ /// Instantiates a new graphAdministrativeUnitRequestBuilderGetRequestConfiguration and sets the default values.
+ ///
+ public GraphAdministrativeUnitRequestBuilderGetRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs
index cdb45767022..0aaa289536f 100644
--- a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs
@@ -1,3 +1,4 @@
+using Microsoft.Graph.Beta.Contacts.Item.MemberOf.Item.GraphAdministrativeUnit;
using Microsoft.Graph.Beta.Contacts.Item.MemberOf.Item.GraphGroup;
using Microsoft.Graph.Beta.Models;
using Microsoft.Graph.Beta.Models.ODataErrors;
@@ -14,6 +15,10 @@ namespace Microsoft.Graph.Beta.Contacts.Item.MemberOf.Item {
/// Provides operations to manage the memberOf property of the microsoft.graph.orgContact entity.
///
public class DirectoryObjectItemRequestBuilder {
+ /// Casts the previous resource to administrativeUnit.
+ public GraphAdministrativeUnitRequestBuilder GraphAdministrativeUnit { get =>
+ new GraphAdministrativeUnitRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Casts the previous resource to group.
public GraphGroupRequestBuilder GraphGroup { get =>
new GraphGroupRequestBuilder(PathParameters, RequestAdapter);
diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
new file mode 100644
index 00000000000..a21a6c6ebb0
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
@@ -0,0 +1,138 @@
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Graph.Beta.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.Beta.Contacts.Item.MemberOf.Item.GraphAdministrativeUnit {
+ ///
+ /// Casts the previous resource to administrativeUnit.
+ ///
+ public class GraphAdministrativeUnitRequestBuilder {
+ /// 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 GraphAdministrativeUnitRequestBuilder and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/contacts/{orgContact%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}";
+ var urlTplParams = new Dictionary(pathParameters);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public GraphAdministrativeUnitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/contacts/{orgContact%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}";
+ var urlTplParams = new Dictionary();
+ if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
+ ///
+ /// 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, Microsoft.Graph.Beta.Models.AdministrativeUnit.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ }
+ ///
+ /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_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 GraphAdministrativeUnitRequestBuilderGetRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddQueryParameters(requestConfig.QueryParameters);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
+ ///
+ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters {
+ /// Expand related entities
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24expand")]
+ public string[]? Expand { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24expand")]
+ public string[] Expand { get; set; }
+#endif
+ /// Select properties to be returned
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24select")]
+ public string[]? Select { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24select")]
+ public string[] Select { get; set; }
+#endif
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ /// Request query parameters
+ public GraphAdministrativeUnitRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GraphAdministrativeUnitRequestBuilderGetQueryParameters();
+ ///
+ /// Instantiates a new graphAdministrativeUnitRequestBuilderGetRequestConfiguration and sets the default values.
+ ///
+ public GraphAdministrativeUnitRequestBuilderGetRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/MemberOfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/MemberOfRequestBuilder.cs
index 4063e422272..e335fcf5eda 100644
--- a/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/MemberOfRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Contacts/Item/MemberOf/MemberOfRequestBuilder.cs
@@ -1,4 +1,5 @@
using Microsoft.Graph.Beta.Contacts.Item.MemberOf.Count;
+using Microsoft.Graph.Beta.Contacts.Item.MemberOf.GraphAdministrativeUnit;
using Microsoft.Graph.Beta.Contacts.Item.MemberOf.GraphGroup;
using Microsoft.Graph.Beta.Contacts.Item.MemberOf.Item;
using Microsoft.Graph.Beta.Models;
@@ -20,6 +21,10 @@ public class MemberOfRequestBuilder {
public CountRequestBuilder Count { get =>
new CountRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Casts the previous resource to administrativeUnit.
+ public GraphAdministrativeUnitRequestBuilder GraphAdministrativeUnit { get =>
+ new GraphAdministrativeUnitRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Casts the previous resource to group.
public GraphGroupRequestBuilder GraphGroup { get =>
new GraphGroupRequestBuilder(PathParameters, RequestAdapter);
diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs
new file mode 100644
index 00000000000..ac1b262f80c
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs
@@ -0,0 +1,137 @@
+using Microsoft.Graph.Beta.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.Beta.Contacts.Item.TransitiveMemberOf.GraphAdministrativeUnit.Count {
+ ///
+ /// Provides operations to count the resources in the collection.
+ ///
+ public class CountRequestBuilder {
+ /// 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 CountRequestBuilder and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.administrativeUnit/$count{?%24search,%24filter}";
+ var urlTplParams = new Dictionary(pathParameters);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Instantiates a new CountRequestBuilder and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.administrativeUnit/$count{?%24search,%24filter}";
+ var urlTplParams = new Dictionary();
+ if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ /// 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.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken);
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_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", "text/plain");
+ if (requestConfiguration != null) {
+ var requestConfig = new CountRequestBuilderGetRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddQueryParameters(requestConfig.QueryParameters);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ public class CountRequestBuilderGetQueryParameters {
+ /// Filter items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24filter")]
+ public string? Filter { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24filter")]
+ public string Filter { get; set; }
+#endif
+ /// Search items by search phrases
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24search")]
+ public string? Search { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24search")]
+ public string Search { get; set; }
+#endif
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class CountRequestBuilderGetRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ /// Request query parameters
+ public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters();
+ ///
+ /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values.
+ ///
+ public CountRequestBuilderGetRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
new file mode 100644
index 00000000000..f0b66376f17
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
@@ -0,0 +1,182 @@
+using Microsoft.Graph.Beta.Contacts.Item.TransitiveMemberOf.GraphAdministrativeUnit.Count;
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Graph.Beta.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.Beta.Contacts.Item.TransitiveMemberOf.GraphAdministrativeUnit {
+ ///
+ /// Casts the previous resource to administrativeUnit.
+ ///
+ public class GraphAdministrativeUnitRequestBuilder {
+ /// Provides operations to count the resources in the collection.
+ public CountRequestBuilder Count { get =>
+ new CountRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// 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 GraphAdministrativeUnitRequestBuilder and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
+ var urlTplParams = new Dictionary(pathParameters);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public GraphAdministrativeUnitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
+ var urlTplParams = new Dictionary();
+ if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
+ ///
+ /// 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, AdministrativeUnitCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ }
+ ///
+ /// Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_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 GraphAdministrativeUnitRequestBuilderGetRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddQueryParameters(requestConfig.QueryParameters);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
+ ///
+ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters {
+ /// Include count of items
+ [QueryParameter("%24count")]
+ public bool? Count { get; set; }
+ /// Expand related entities
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24expand")]
+ public string[]? Expand { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24expand")]
+ public string[] Expand { get; set; }
+#endif
+ /// Filter items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24filter")]
+ public string? Filter { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24filter")]
+ public string Filter { get; set; }
+#endif
+ /// Order items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24orderby")]
+ public string[]? Orderby { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24orderby")]
+ public string[] Orderby { get; set; }
+#endif
+ /// Search items by search phrases
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24search")]
+ public string? Search { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24search")]
+ public string Search { get; set; }
+#endif
+ /// Select properties to be returned
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24select")]
+ public string[]? Select { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24select")]
+ public string[] Select { get; set; }
+#endif
+ /// Skip the first n items
+ [QueryParameter("%24skip")]
+ public int? Skip { get; set; }
+ /// Show only the first n items
+ [QueryParameter("%24top")]
+ public int? Top { get; set; }
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ /// Request query parameters
+ public GraphAdministrativeUnitRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GraphAdministrativeUnitRequestBuilderGetQueryParameters();
+ ///
+ /// Instantiates a new graphAdministrativeUnitRequestBuilderGetRequestConfiguration and sets the default values.
+ ///
+ public GraphAdministrativeUnitRequestBuilderGetRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs
index 4a3230be027..e31c3d59bcb 100644
--- a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs
@@ -1,3 +1,4 @@
+using Microsoft.Graph.Beta.Contacts.Item.TransitiveMemberOf.Item.GraphAdministrativeUnit;
using Microsoft.Graph.Beta.Contacts.Item.TransitiveMemberOf.Item.GraphGroup;
using Microsoft.Graph.Beta.Models;
using Microsoft.Graph.Beta.Models.ODataErrors;
@@ -14,6 +15,10 @@ namespace Microsoft.Graph.Beta.Contacts.Item.TransitiveMemberOf.Item {
/// Provides operations to manage the transitiveMemberOf property of the microsoft.graph.orgContact entity.
///
public class DirectoryObjectItemRequestBuilder {
+ /// Casts the previous resource to administrativeUnit.
+ public GraphAdministrativeUnitRequestBuilder GraphAdministrativeUnit { get =>
+ new GraphAdministrativeUnitRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Casts the previous resource to group.
public GraphGroupRequestBuilder GraphGroup { get =>
new GraphGroupRequestBuilder(PathParameters, RequestAdapter);
diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
new file mode 100644
index 00000000000..bd0c0be4ed3
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
@@ -0,0 +1,138 @@
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Graph.Beta.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.Beta.Contacts.Item.TransitiveMemberOf.Item.GraphAdministrativeUnit {
+ ///
+ /// Casts the previous resource to administrativeUnit.
+ ///
+ public class GraphAdministrativeUnitRequestBuilder {
+ /// 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 GraphAdministrativeUnitRequestBuilder and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}";
+ var urlTplParams = new Dictionary(pathParameters);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public GraphAdministrativeUnitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/contacts/{orgContact%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}";
+ var urlTplParams = new Dictionary();
+ if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
+ ///
+ /// 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, Microsoft.Graph.Beta.Models.AdministrativeUnit.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ }
+ ///
+ /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_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 GraphAdministrativeUnitRequestBuilderGetRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddQueryParameters(requestConfig.QueryParameters);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
+ ///
+ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters {
+ /// Expand related entities
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24expand")]
+ public string[]? Expand { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24expand")]
+ public string[] Expand { get; set; }
+#endif
+ /// Select properties to be returned
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24select")]
+ public string[]? Select { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24select")]
+ public string[] Select { get; set; }
+#endif
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ /// Request query parameters
+ public GraphAdministrativeUnitRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GraphAdministrativeUnitRequestBuilderGetQueryParameters();
+ ///
+ /// Instantiates a new graphAdministrativeUnitRequestBuilderGetRequestConfiguration and sets the default values.
+ ///
+ public GraphAdministrativeUnitRequestBuilderGetRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs
index 80fb0ad943e..bfbfe6a8961 100644
--- a/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Contacts/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs
@@ -1,4 +1,5 @@
using Microsoft.Graph.Beta.Contacts.Item.TransitiveMemberOf.Count;
+using Microsoft.Graph.Beta.Contacts.Item.TransitiveMemberOf.GraphAdministrativeUnit;
using Microsoft.Graph.Beta.Contacts.Item.TransitiveMemberOf.GraphGroup;
using Microsoft.Graph.Beta.Contacts.Item.TransitiveMemberOf.Item;
using Microsoft.Graph.Beta.Models;
@@ -20,6 +21,10 @@ public class TransitiveMemberOfRequestBuilder {
public CountRequestBuilder Count { get =>
new CountRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Casts the previous resource to administrativeUnit.
+ public GraphAdministrativeUnitRequestBuilder GraphAdministrativeUnit { get =>
+ new GraphAdministrativeUnitRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Casts the previous resource to group.
public GraphGroupRequestBuilder GraphGroup { get =>
new GraphGroupRequestBuilder(PathParameters, RequestAdapter);
diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/CompliancePolicies/Item/Settings/Item/SettingDefinitions/Item/DeviceManagementConfigurationSettingDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/CompliancePolicies/Item/Settings/Item/SettingDefinitions/Item/DeviceManagementConfigurationSettingDefinitionItemRequestBuilder.cs
index bd97a2e0268..1e36755468c 100644
--- a/src/Microsoft.Graph/Generated/DeviceManagement/CompliancePolicies/Item/Settings/Item/SettingDefinitions/Item/DeviceManagementConfigurationSettingDefinitionItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/CompliancePolicies/Item/Settings/Item/SettingDefinitions/Item/DeviceManagementConfigurationSettingDefinitionItemRequestBuilder.cs
@@ -47,7 +47,7 @@ public DeviceManagementConfigurationSettingDefinitionItemRequestBuilder(string r
RequestAdapter = requestAdapter;
}
///
- /// List of related Setting Definitions. This property is read-only.
+ /// List of related Setting Definitions
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -66,7 +66,7 @@ public async Task GetAsync(Actio
return await RequestAdapter.SendAsync(requestInfo, DeviceManagementConfigurationSettingDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// List of related Setting Definitions. This property is read-only.
+ /// List of related Setting Definitions
///
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -92,7 +92,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// List of related Setting Definitions. This property is read-only.
+ /// List of related Setting Definitions
///
public class DeviceManagementConfigurationSettingDefinitionItemRequestBuilderGetQueryParameters {
/// Expand related entities
diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/CompliancePolicies/Item/Settings/Item/SettingDefinitions/SettingDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/CompliancePolicies/Item/Settings/Item/SettingDefinitions/SettingDefinitionsRequestBuilder.cs
index bebc226fb96..b62caea1329 100644
--- a/src/Microsoft.Graph/Generated/DeviceManagement/CompliancePolicies/Item/Settings/Item/SettingDefinitions/SettingDefinitionsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/CompliancePolicies/Item/Settings/Item/SettingDefinitions/SettingDefinitionsRequestBuilder.cs
@@ -59,7 +59,7 @@ public SettingDefinitionsRequestBuilder(string rawUrl, IRequestAdapter requestAd
RequestAdapter = requestAdapter;
}
///
- /// List of related Setting Definitions. This property is read-only.
+ /// List of related Setting Definitions
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -78,7 +78,7 @@ public async Task(requestInfo, DeviceManagementConfigurationSettingDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// List of related Setting Definitions. This property is read-only.
+ /// List of related Setting Definitions
///
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -104,7 +104,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// List of related Setting Definitions. This property is read-only.
+ /// List of related Setting Definitions
///
public class SettingDefinitionsRequestBuilderGetQueryParameters {
/// Include count of items
diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ConfigurationPolicies/Item/Settings/Item/SettingDefinitions/Item/DeviceManagementConfigurationSettingDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ConfigurationPolicies/Item/Settings/Item/SettingDefinitions/Item/DeviceManagementConfigurationSettingDefinitionItemRequestBuilder.cs
index 9da4ea4f281..a362906c8c7 100644
--- a/src/Microsoft.Graph/Generated/DeviceManagement/ConfigurationPolicies/Item/Settings/Item/SettingDefinitions/Item/DeviceManagementConfigurationSettingDefinitionItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/ConfigurationPolicies/Item/Settings/Item/SettingDefinitions/Item/DeviceManagementConfigurationSettingDefinitionItemRequestBuilder.cs
@@ -47,7 +47,7 @@ public DeviceManagementConfigurationSettingDefinitionItemRequestBuilder(string r
RequestAdapter = requestAdapter;
}
///
- /// List of related Setting Definitions. This property is read-only.
+ /// List of related Setting Definitions
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -66,7 +66,7 @@ public async Task GetAsync(Actio
return await RequestAdapter.SendAsync(requestInfo, DeviceManagementConfigurationSettingDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// List of related Setting Definitions. This property is read-only.
+ /// List of related Setting Definitions
///
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -92,7 +92,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// List of related Setting Definitions. This property is read-only.
+ /// List of related Setting Definitions
///
public class DeviceManagementConfigurationSettingDefinitionItemRequestBuilderGetQueryParameters {
/// Expand related entities
diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ConfigurationPolicies/Item/Settings/Item/SettingDefinitions/SettingDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ConfigurationPolicies/Item/Settings/Item/SettingDefinitions/SettingDefinitionsRequestBuilder.cs
index 836e709d8c0..2727b29de93 100644
--- a/src/Microsoft.Graph/Generated/DeviceManagement/ConfigurationPolicies/Item/Settings/Item/SettingDefinitions/SettingDefinitionsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/ConfigurationPolicies/Item/Settings/Item/SettingDefinitions/SettingDefinitionsRequestBuilder.cs
@@ -59,7 +59,7 @@ public SettingDefinitionsRequestBuilder(string rawUrl, IRequestAdapter requestAd
RequestAdapter = requestAdapter;
}
///
- /// List of related Setting Definitions. This property is read-only.
+ /// List of related Setting Definitions
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -78,7 +78,7 @@ public async Task(requestInfo, DeviceManagementConfigurationSettingDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// List of related Setting Definitions. This property is read-only.
+ /// List of related Setting Definitions
///
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -104,7 +104,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// List of related Setting Definitions. This property is read-only.
+ /// List of related Setting Definitions
///
public class SettingDefinitionsRequestBuilderGetQueryParameters {
/// Include count of items
diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ReusablePolicySettings/Item/ReferencingConfigurationPolicies/Item/Settings/Item/SettingDefinitions/Item/DeviceManagementConfigurationSettingDefinitionItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ReusablePolicySettings/Item/ReferencingConfigurationPolicies/Item/Settings/Item/SettingDefinitions/Item/DeviceManagementConfigurationSettingDefinitionItemRequestBuilder.cs
index 6ad55992e57..5bc5e01aea2 100644
--- a/src/Microsoft.Graph/Generated/DeviceManagement/ReusablePolicySettings/Item/ReferencingConfigurationPolicies/Item/Settings/Item/SettingDefinitions/Item/DeviceManagementConfigurationSettingDefinitionItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/ReusablePolicySettings/Item/ReferencingConfigurationPolicies/Item/Settings/Item/SettingDefinitions/Item/DeviceManagementConfigurationSettingDefinitionItemRequestBuilder.cs
@@ -47,7 +47,7 @@ public DeviceManagementConfigurationSettingDefinitionItemRequestBuilder(string r
RequestAdapter = requestAdapter;
}
///
- /// List of related Setting Definitions. This property is read-only.
+ /// List of related Setting Definitions
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -66,7 +66,7 @@ public async Task GetAsync(Actio
return await RequestAdapter.SendAsync(requestInfo, DeviceManagementConfigurationSettingDefinition.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// List of related Setting Definitions. This property is read-only.
+ /// List of related Setting Definitions
///
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -92,7 +92,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// List of related Setting Definitions. This property is read-only.
+ /// List of related Setting Definitions
///
public class DeviceManagementConfigurationSettingDefinitionItemRequestBuilderGetQueryParameters {
/// Expand related entities
diff --git a/src/Microsoft.Graph/Generated/DeviceManagement/ReusablePolicySettings/Item/ReferencingConfigurationPolicies/Item/Settings/Item/SettingDefinitions/SettingDefinitionsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DeviceManagement/ReusablePolicySettings/Item/ReferencingConfigurationPolicies/Item/Settings/Item/SettingDefinitions/SettingDefinitionsRequestBuilder.cs
index c62393e4038..f0d352cd52c 100644
--- a/src/Microsoft.Graph/Generated/DeviceManagement/ReusablePolicySettings/Item/ReferencingConfigurationPolicies/Item/Settings/Item/SettingDefinitions/SettingDefinitionsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DeviceManagement/ReusablePolicySettings/Item/ReferencingConfigurationPolicies/Item/Settings/Item/SettingDefinitions/SettingDefinitionsRequestBuilder.cs
@@ -59,7 +59,7 @@ public SettingDefinitionsRequestBuilder(string rawUrl, IRequestAdapter requestAd
RequestAdapter = requestAdapter;
}
///
- /// List of related Setting Definitions. This property is read-only.
+ /// List of related Setting Definitions
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -78,7 +78,7 @@ public async Task(requestInfo, DeviceManagementConfigurationSettingDefinitionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// List of related Setting Definitions. This property is read-only.
+ /// List of related Setting Definitions
///
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
@@ -104,7 +104,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// List of related Setting Definitions. This property is read-only.
+ /// List of related Setting Definitions
///
public class SettingDefinitionsRequestBuilderGetQueryParameters {
/// Include count of items
diff --git a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs
new file mode 100644
index 00000000000..2e5735789fb
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs
@@ -0,0 +1,137 @@
+using Microsoft.Graph.Beta.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.Beta.Devices.Item.MemberOf.GraphAdministrativeUnit.Count {
+ ///
+ /// Provides operations to count the resources in the collection.
+ ///
+ public class CountRequestBuilder {
+ /// 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 CountRequestBuilder and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/devices/{device%2Did}/memberOf/graph.administrativeUnit/$count{?%24search,%24filter}";
+ var urlTplParams = new Dictionary(pathParameters);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Instantiates a new CountRequestBuilder and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/devices/{device%2Did}/memberOf/graph.administrativeUnit/$count{?%24search,%24filter}";
+ var urlTplParams = new Dictionary();
+ if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ /// 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.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken);
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_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", "text/plain");
+ if (requestConfiguration != null) {
+ var requestConfig = new CountRequestBuilderGetRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddQueryParameters(requestConfig.QueryParameters);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ public class CountRequestBuilderGetQueryParameters {
+ /// Filter items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24filter")]
+ public string? Filter { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24filter")]
+ public string Filter { get; set; }
+#endif
+ /// Search items by search phrases
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24search")]
+ public string? Search { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24search")]
+ public string Search { get; set; }
+#endif
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class CountRequestBuilderGetRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ /// Request query parameters
+ public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters();
+ ///
+ /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values.
+ ///
+ public CountRequestBuilderGetRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
new file mode 100644
index 00000000000..dfc18fea99e
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
@@ -0,0 +1,182 @@
+using Microsoft.Graph.Beta.Devices.Item.MemberOf.GraphAdministrativeUnit.Count;
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Graph.Beta.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.Beta.Devices.Item.MemberOf.GraphAdministrativeUnit {
+ ///
+ /// Casts the previous resource to administrativeUnit.
+ ///
+ public class GraphAdministrativeUnitRequestBuilder {
+ /// Provides operations to count the resources in the collection.
+ public CountRequestBuilder Count { get =>
+ new CountRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// 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 GraphAdministrativeUnitRequestBuilder and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/devices/{device%2Did}/memberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
+ var urlTplParams = new Dictionary(pathParameters);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public GraphAdministrativeUnitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/devices/{device%2Did}/memberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
+ var urlTplParams = new Dictionary();
+ if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
+ ///
+ /// 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, AdministrativeUnitCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ }
+ ///
+ /// Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_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 GraphAdministrativeUnitRequestBuilderGetRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddQueryParameters(requestConfig.QueryParameters);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
+ ///
+ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters {
+ /// Include count of items
+ [QueryParameter("%24count")]
+ public bool? Count { get; set; }
+ /// Expand related entities
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24expand")]
+ public string[]? Expand { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24expand")]
+ public string[] Expand { get; set; }
+#endif
+ /// Filter items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24filter")]
+ public string? Filter { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24filter")]
+ public string Filter { get; set; }
+#endif
+ /// Order items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24orderby")]
+ public string[]? Orderby { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24orderby")]
+ public string[] Orderby { get; set; }
+#endif
+ /// Search items by search phrases
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24search")]
+ public string? Search { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24search")]
+ public string Search { get; set; }
+#endif
+ /// Select properties to be returned
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24select")]
+ public string[]? Select { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24select")]
+ public string[] Select { get; set; }
+#endif
+ /// Skip the first n items
+ [QueryParameter("%24skip")]
+ public int? Skip { get; set; }
+ /// Show only the first n items
+ [QueryParameter("%24top")]
+ public int? Top { get; set; }
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ /// Request query parameters
+ public GraphAdministrativeUnitRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GraphAdministrativeUnitRequestBuilderGetQueryParameters();
+ ///
+ /// Instantiates a new graphAdministrativeUnitRequestBuilderGetRequestConfiguration and sets the default values.
+ ///
+ public GraphAdministrativeUnitRequestBuilderGetRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs
index 262d49aebb6..7c6b86cb692 100644
--- a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Item/DirectoryObjectItemRequestBuilder.cs
@@ -1,3 +1,4 @@
+using Microsoft.Graph.Beta.Devices.Item.MemberOf.Item.GraphAdministrativeUnit;
using Microsoft.Graph.Beta.Devices.Item.MemberOf.Item.GraphGroup;
using Microsoft.Graph.Beta.Models;
using Microsoft.Graph.Beta.Models.ODataErrors;
@@ -14,6 +15,10 @@ namespace Microsoft.Graph.Beta.Devices.Item.MemberOf.Item {
/// Provides operations to manage the memberOf property of the microsoft.graph.device entity.
///
public class DirectoryObjectItemRequestBuilder {
+ /// Casts the previous resource to administrativeUnit.
+ public GraphAdministrativeUnitRequestBuilder GraphAdministrativeUnit { get =>
+ new GraphAdministrativeUnitRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Casts the previous resource to group.
public GraphGroupRequestBuilder GraphGroup { get =>
new GraphGroupRequestBuilder(PathParameters, RequestAdapter);
diff --git a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
new file mode 100644
index 00000000000..433287ac7c4
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
@@ -0,0 +1,138 @@
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Graph.Beta.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.Beta.Devices.Item.MemberOf.Item.GraphAdministrativeUnit {
+ ///
+ /// Casts the previous resource to administrativeUnit.
+ ///
+ public class GraphAdministrativeUnitRequestBuilder {
+ /// 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 GraphAdministrativeUnitRequestBuilder and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/devices/{device%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}";
+ var urlTplParams = new Dictionary(pathParameters);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public GraphAdministrativeUnitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/devices/{device%2Did}/memberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}";
+ var urlTplParams = new Dictionary();
+ if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
+ ///
+ /// 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, Microsoft.Graph.Beta.Models.AdministrativeUnit.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ }
+ ///
+ /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_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 GraphAdministrativeUnitRequestBuilderGetRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddQueryParameters(requestConfig.QueryParameters);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
+ ///
+ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters {
+ /// Expand related entities
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24expand")]
+ public string[]? Expand { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24expand")]
+ public string[] Expand { get; set; }
+#endif
+ /// Select properties to be returned
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24select")]
+ public string[]? Select { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24select")]
+ public string[] Select { get; set; }
+#endif
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ /// Request query parameters
+ public GraphAdministrativeUnitRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GraphAdministrativeUnitRequestBuilderGetQueryParameters();
+ ///
+ /// Instantiates a new graphAdministrativeUnitRequestBuilderGetRequestConfiguration and sets the default values.
+ ///
+ public GraphAdministrativeUnitRequestBuilderGetRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/MemberOfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/MemberOfRequestBuilder.cs
index 9350e05f8b5..61f59bfd6b1 100644
--- a/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/MemberOfRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Devices/Item/MemberOf/MemberOfRequestBuilder.cs
@@ -1,4 +1,5 @@
using Microsoft.Graph.Beta.Devices.Item.MemberOf.Count;
+using Microsoft.Graph.Beta.Devices.Item.MemberOf.GraphAdministrativeUnit;
using Microsoft.Graph.Beta.Devices.Item.MemberOf.GraphGroup;
using Microsoft.Graph.Beta.Devices.Item.MemberOf.Item;
using Microsoft.Graph.Beta.Models;
@@ -20,6 +21,10 @@ public class MemberOfRequestBuilder {
public CountRequestBuilder Count { get =>
new CountRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Casts the previous resource to administrativeUnit.
+ public GraphAdministrativeUnitRequestBuilder GraphAdministrativeUnit { get =>
+ new GraphAdministrativeUnitRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Casts the previous resource to group.
public GraphGroupRequestBuilder GraphGroup { get =>
new GraphGroupRequestBuilder(PathParameters, RequestAdapter);
diff --git a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs
new file mode 100644
index 00000000000..a144751ecfc
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/Count/CountRequestBuilder.cs
@@ -0,0 +1,137 @@
+using Microsoft.Graph.Beta.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.Beta.Devices.Item.TransitiveMemberOf.GraphAdministrativeUnit.Count {
+ ///
+ /// Provides operations to count the resources in the collection.
+ ///
+ public class CountRequestBuilder {
+ /// 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 CountRequestBuilder and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/graph.administrativeUnit/$count{?%24search,%24filter}";
+ var urlTplParams = new Dictionary(pathParameters);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Instantiates a new CountRequestBuilder and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/graph.administrativeUnit/$count{?%24search,%24filter}";
+ var urlTplParams = new Dictionary();
+ if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ /// 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.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken);
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_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", "text/plain");
+ if (requestConfiguration != null) {
+ var requestConfig = new CountRequestBuilderGetRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddQueryParameters(requestConfig.QueryParameters);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ public class CountRequestBuilderGetQueryParameters {
+ /// Filter items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24filter")]
+ public string? Filter { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24filter")]
+ public string Filter { get; set; }
+#endif
+ /// Search items by search phrases
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24search")]
+ public string? Search { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24search")]
+ public string Search { get; set; }
+#endif
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class CountRequestBuilderGetRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ /// Request query parameters
+ public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters();
+ ///
+ /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values.
+ ///
+ public CountRequestBuilderGetRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
new file mode 100644
index 00000000000..f277986c84d
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
@@ -0,0 +1,182 @@
+using Microsoft.Graph.Beta.Devices.Item.TransitiveMemberOf.GraphAdministrativeUnit.Count;
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Graph.Beta.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.Beta.Devices.Item.TransitiveMemberOf.GraphAdministrativeUnit {
+ ///
+ /// Casts the previous resource to administrativeUnit.
+ ///
+ public class GraphAdministrativeUnitRequestBuilder {
+ /// Provides operations to count the resources in the collection.
+ public CountRequestBuilder Count { get =>
+ new CountRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// 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 GraphAdministrativeUnitRequestBuilder and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
+ var urlTplParams = new Dictionary(pathParameters);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public GraphAdministrativeUnitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
+ var urlTplParams = new Dictionary();
+ if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
+ ///
+ /// 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, AdministrativeUnitCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ }
+ ///
+ /// Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_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 GraphAdministrativeUnitRequestBuilderGetRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddQueryParameters(requestConfig.QueryParameters);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
+ ///
+ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters {
+ /// Include count of items
+ [QueryParameter("%24count")]
+ public bool? Count { get; set; }
+ /// Expand related entities
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24expand")]
+ public string[]? Expand { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24expand")]
+ public string[] Expand { get; set; }
+#endif
+ /// Filter items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24filter")]
+ public string? Filter { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24filter")]
+ public string Filter { get; set; }
+#endif
+ /// Order items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24orderby")]
+ public string[]? Orderby { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24orderby")]
+ public string[] Orderby { get; set; }
+#endif
+ /// Search items by search phrases
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24search")]
+ public string? Search { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24search")]
+ public string Search { get; set; }
+#endif
+ /// Select properties to be returned
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24select")]
+ public string[]? Select { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24select")]
+ public string[] Select { get; set; }
+#endif
+ /// Skip the first n items
+ [QueryParameter("%24skip")]
+ public int? Skip { get; set; }
+ /// Show only the first n items
+ [QueryParameter("%24top")]
+ public int? Top { get; set; }
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ /// Request query parameters
+ public GraphAdministrativeUnitRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GraphAdministrativeUnitRequestBuilderGetQueryParameters();
+ ///
+ /// Instantiates a new graphAdministrativeUnitRequestBuilderGetRequestConfiguration and sets the default values.
+ ///
+ public GraphAdministrativeUnitRequestBuilderGetRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs
index 8b5477f5ef9..3ac20cdb78d 100644
--- a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Item/DirectoryObjectItemRequestBuilder.cs
@@ -1,3 +1,4 @@
+using Microsoft.Graph.Beta.Devices.Item.TransitiveMemberOf.Item.GraphAdministrativeUnit;
using Microsoft.Graph.Beta.Devices.Item.TransitiveMemberOf.Item.GraphGroup;
using Microsoft.Graph.Beta.Models;
using Microsoft.Graph.Beta.Models.ODataErrors;
@@ -14,6 +15,10 @@ namespace Microsoft.Graph.Beta.Devices.Item.TransitiveMemberOf.Item {
/// Provides operations to manage the transitiveMemberOf property of the microsoft.graph.device entity.
///
public class DirectoryObjectItemRequestBuilder {
+ /// Casts the previous resource to administrativeUnit.
+ public GraphAdministrativeUnitRequestBuilder GraphAdministrativeUnit { get =>
+ new GraphAdministrativeUnitRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Casts the previous resource to group.
public GraphGroupRequestBuilder GraphGroup { get =>
new GraphGroupRequestBuilder(PathParameters, RequestAdapter);
diff --git a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
new file mode 100644
index 00000000000..3579e06dafa
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
@@ -0,0 +1,138 @@
+using Microsoft.Graph.Beta.Models;
+using Microsoft.Graph.Beta.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.Beta.Devices.Item.TransitiveMemberOf.Item.GraphAdministrativeUnit {
+ ///
+ /// Casts the previous resource to administrativeUnit.
+ ///
+ public class GraphAdministrativeUnitRequestBuilder {
+ /// 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 GraphAdministrativeUnitRequestBuilder and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}";
+ var urlTplParams = new Dictionary(pathParameters);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public GraphAdministrativeUnitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/devices/{device%2Did}/transitiveMemberOf/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}";
+ var urlTplParams = new Dictionary();
+ if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
+ ///
+ /// 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, Microsoft.Graph.Beta.Models.AdministrativeUnit.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ }
+ ///
+ /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_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 GraphAdministrativeUnitRequestBuilderGetRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddQueryParameters(requestConfig.QueryParameters);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
+ ///
+ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters {
+ /// Expand related entities
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24expand")]
+ public string[]? Expand { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24expand")]
+ public string[] Expand { get; set; }
+#endif
+ /// Select properties to be returned
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24select")]
+ public string[]? Select { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24select")]
+ public string[] Select { get; set; }
+#endif
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ /// Request query parameters
+ public GraphAdministrativeUnitRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GraphAdministrativeUnitRequestBuilderGetQueryParameters();
+ ///
+ /// Instantiates a new graphAdministrativeUnitRequestBuilderGetRequestConfiguration and sets the default values.
+ ///
+ public GraphAdministrativeUnitRequestBuilderGetRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs
index c7c946302ea..1e540d1f69e 100644
--- a/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Devices/Item/TransitiveMemberOf/TransitiveMemberOfRequestBuilder.cs
@@ -1,4 +1,5 @@
using Microsoft.Graph.Beta.Devices.Item.TransitiveMemberOf.Count;
+using Microsoft.Graph.Beta.Devices.Item.TransitiveMemberOf.GraphAdministrativeUnit;
using Microsoft.Graph.Beta.Devices.Item.TransitiveMemberOf.GraphGroup;
using Microsoft.Graph.Beta.Devices.Item.TransitiveMemberOf.Item;
using Microsoft.Graph.Beta.Models;
@@ -20,6 +21,10 @@ public class TransitiveMemberOfRequestBuilder {
public CountRequestBuilder Count { get =>
new CountRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Casts the previous resource to administrativeUnit.
+ public GraphAdministrativeUnitRequestBuilder GraphAdministrativeUnit { get =>
+ new GraphAdministrativeUnitRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Casts the previous resource to group.
public GraphGroupRequestBuilder GraphGroup { get =>
new GraphGroupRequestBuilder(PathParameters, RequestAdapter);
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs
index c51a0f72539..08b076e1c69 100644
--- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Tables/Item/Rows/RowsRequestBuilder.cs
@@ -66,7 +66,7 @@ public RowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
}
///
/// Retrieve a list of tablerow objects.
- /// Find more info here
+ /// Find more info here
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs
index ba8c278d10f..53c4023e0cf 100644
--- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/ChartsRequestBuilder.cs
@@ -67,7 +67,7 @@ public ChartsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
}
///
/// Retrieve a list of chart objects.
- /// Find more info here
+ /// Find more info here
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Charts/Item/Series/SeriesRequestBuilder.cs
index 33540a1f872..6c5c2eceb49 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/Rows/RowsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs
index 5338c15a009..8d5b8b182be 100644
--- a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/Item/Tables/Item/Rows/RowsRequestBuilder.cs
@@ -66,7 +66,7 @@ public RowsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
}
///
/// Retrieve a list of tablerow objects.
- /// Find more info here
+ /// Find more info here
///
/// Cancellation token to use when cancelling requests
/// Configuration for the request such as headers, query parameters, and middleware options.
diff --git a/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs b/src/Microsoft.Graph/Generated/Drives/Item/Items/Item/Workbook/Worksheets/WorksheetsRequestBuilder.cs
index b5242c99352..bf20b5c0f55 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/External/ExternalRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/ExternalRequestBuilder.cs
index 72ab61340da..18db4b96573 100644
--- a/src/Microsoft.Graph/Generated/External/ExternalRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/External/ExternalRequestBuilder.cs
@@ -1,4 +1,5 @@
using Microsoft.Graph.Beta.External.Connections;
+using Microsoft.Graph.Beta.External.IndustryData;
using Microsoft.Graph.Beta.Models.ExternalConnectors;
using Microsoft.Graph.Beta.Models.ODataErrors;
using Microsoft.Kiota.Abstractions;
@@ -18,6 +19,10 @@ public class ExternalRequestBuilder {
public ConnectionsRequestBuilder Connections { get =>
new ConnectionsRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Provides operations to manage the industryData property of the microsoft.graph.externalConnectors.external entity.
+ public IndustryDataRequestBuilder IndustryData { get =>
+ new IndustryDataRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Path parameters for the request
private Dictionary PathParameters { get; set; }
/// The request adapter to use to execute the requests.
diff --git a/src/Microsoft.Graph/Generated/External/IndustryData/DataConnectors/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/IndustryData/DataConnectors/Count/CountRequestBuilder.cs
new file mode 100644
index 00000000000..c19a9219df8
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/External/IndustryData/DataConnectors/Count/CountRequestBuilder.cs
@@ -0,0 +1,137 @@
+using Microsoft.Graph.Beta.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.Beta.External.IndustryData.DataConnectors.Count {
+ ///
+ /// Provides operations to count the resources in the collection.
+ ///
+ public class CountRequestBuilder {
+ /// 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 CountRequestBuilder and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/external/industryData/dataConnectors/$count{?%24search,%24filter}";
+ var urlTplParams = new Dictionary(pathParameters);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Instantiates a new CountRequestBuilder and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/external/industryData/dataConnectors/$count{?%24search,%24filter}";
+ var urlTplParams = new Dictionary();
+ if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ /// 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.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken);
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_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", "text/plain");
+ if (requestConfiguration != null) {
+ var requestConfig = new CountRequestBuilderGetRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddQueryParameters(requestConfig.QueryParameters);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Get the number of the resource
+ ///
+ public class CountRequestBuilderGetQueryParameters {
+ /// Filter items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24filter")]
+ public string? Filter { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24filter")]
+ public string Filter { get; set; }
+#endif
+ /// Search items by search phrases
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24search")]
+ public string? Search { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24search")]
+ public string Search { get; set; }
+#endif
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class CountRequestBuilderGetRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ /// Request query parameters
+ public CountRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CountRequestBuilderGetQueryParameters();
+ ///
+ /// Instantiates a new CountRequestBuilderGetRequestConfiguration and sets the default values.
+ ///
+ public CountRequestBuilderGetRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/External/IndustryData/DataConnectors/DataConnectorsRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/IndustryData/DataConnectors/DataConnectorsRequestBuilder.cs
new file mode 100644
index 00000000000..a90a0b14b32
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/External/IndustryData/DataConnectors/DataConnectorsRequestBuilder.cs
@@ -0,0 +1,256 @@
+using Microsoft.Graph.Beta.External.IndustryData.DataConnectors.Count;
+using Microsoft.Graph.Beta.External.IndustryData.DataConnectors.Item;
+using Microsoft.Graph.Beta.Models.IndustryData;
+using Microsoft.Graph.Beta.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.Beta.External.IndustryData.DataConnectors {
+ ///
+ /// Provides operations to manage the dataConnectors property of the microsoft.graph.industryData.industryDataRoot entity.
+ ///
+ public class DataConnectorsRequestBuilder {
+ /// Provides operations to count the resources in the collection.
+ public CountRequestBuilder Count { get =>
+ new CountRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// 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; }
+ /// Provides operations to manage the dataConnectors property of the microsoft.graph.industryData.industryDataRoot entity.
+ public IndustryDataConnectorItemRequestBuilder this[string position] { get {
+ var urlTplParams = new Dictionary(PathParameters);
+ if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("industryDataConnector%2Did", position);
+ return new IndustryDataConnectorItemRequestBuilder(urlTplParams, RequestAdapter);
+ } }
+ ///
+ /// Instantiates a new DataConnectorsRequestBuilder and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public DataConnectorsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/external/industryData/dataConnectors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
+ var urlTplParams = new Dictionary(pathParameters);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Instantiates a new DataConnectorsRequestBuilder and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public DataConnectorsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/external/industryData/dataConnectors{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}";
+ var urlTplParams = new Dictionary();
+ if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Get a list of the azureDataLakeConnector objects and their properties.
+ /// Find more info here
+ ///
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task GetAsync(Action? requestConfiguration = default, CancellationToken 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, IndustryDataConnectorCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ }
+ ///
+ /// Create a new industryDataConnector object.
+ /// Find more info here
+ ///
+ /// The request body
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task PostAsync(IndustryDataConnector body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
+#nullable restore
+#else
+ public async Task PostAsync(IndustryDataConnector body, Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPostRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary> {
+ {"4XX", ODataError.CreateFromDiscriminatorValue},
+ {"5XX", ODataError.CreateFromDiscriminatorValue},
+ };
+ return await RequestAdapter.SendAsync(requestInfo, IndustryDataConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ }
+ ///
+ /// Get a list of the azureDataLakeConnector objects and their properties.
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_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 DataConnectorsRequestBuilderGetRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddQueryParameters(requestConfig.QueryParameters);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Create a new industryDataConnector object.
+ ///
+ /// The request body
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPostRequestInformation(IndustryDataConnector body, Action? requestConfiguration = default) {
+#nullable restore
+#else
+ public RequestInformation ToPostRequestInformation(IndustryDataConnector body, Action requestConfiguration = default) {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = new RequestInformation {
+ HttpMethod = Method.POST,
+ UrlTemplate = UrlTemplate,
+ PathParameters = PathParameters,
+ };
+ requestInfo.Headers.Add("Accept", "application/json");
+ requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
+ if (requestConfiguration != null) {
+ var requestConfig = new DataConnectorsRequestBuilderPostRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Get a list of the azureDataLakeConnector objects and their properties.
+ ///
+ public class DataConnectorsRequestBuilderGetQueryParameters {
+ /// Include count of items
+ [QueryParameter("%24count")]
+ public bool? Count { get; set; }
+ /// Expand related entities
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24expand")]
+ public string[]? Expand { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24expand")]
+ public string[] Expand { get; set; }
+#endif
+ /// Filter items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24filter")]
+ public string? Filter { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24filter")]
+ public string Filter { get; set; }
+#endif
+ /// Order items by property values
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24orderby")]
+ public string[]? Orderby { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24orderby")]
+ public string[] Orderby { get; set; }
+#endif
+ /// Search items by search phrases
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24search")]
+ public string? Search { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24search")]
+ public string Search { get; set; }
+#endif
+ /// Select properties to be returned
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ [QueryParameter("%24select")]
+ public string[]? Select { get; set; }
+#nullable restore
+#else
+ [QueryParameter("%24select")]
+ public string[] Select { get; set; }
+#endif
+ /// Skip the first n items
+ [QueryParameter("%24skip")]
+ public int? Skip { get; set; }
+ /// Show only the first n items
+ [QueryParameter("%24top")]
+ public int? Top { get; set; }
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class DataConnectorsRequestBuilderGetRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ /// Request query parameters
+ public DataConnectorsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new DataConnectorsRequestBuilderGetQueryParameters();
+ ///
+ /// Instantiates a new dataConnectorsRequestBuilderGetRequestConfiguration and sets the default values.
+ ///
+ public DataConnectorsRequestBuilderGetRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+ ///
+ public class DataConnectorsRequestBuilderPostRequestConfiguration {
+ /// Request headers
+ public RequestHeaders Headers { get; set; }
+ /// Request options
+ public IList Options { get; set; }
+ ///
+ /// Instantiates a new dataConnectorsRequestBuilderPostRequestConfiguration and sets the default values.
+ ///
+ public DataConnectorsRequestBuilderPostRequestConfiguration() {
+ Options = new List();
+ Headers = new RequestHeaders();
+ }
+ }
+ }
+}
diff --git a/src/Microsoft.Graph/Generated/External/IndustryData/DataConnectors/Item/IndustryDataConnectorItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/External/IndustryData/DataConnectors/Item/IndustryDataConnectorItemRequestBuilder.cs
new file mode 100644
index 00000000000..7116ee00e1c
--- /dev/null
+++ b/src/Microsoft.Graph/Generated/External/IndustryData/DataConnectors/Item/IndustryDataConnectorItemRequestBuilder.cs
@@ -0,0 +1,272 @@
+using Microsoft.Graph.Beta.External.IndustryData.DataConnectors.Item.IndustryDataValidate;
+using Microsoft.Graph.Beta.External.IndustryData.DataConnectors.Item.SourceSystem;
+using Microsoft.Graph.Beta.Models.IndustryData;
+using Microsoft.Graph.Beta.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.Beta.External.IndustryData.DataConnectors.Item {
+ ///
+ /// Provides operations to manage the dataConnectors property of the microsoft.graph.industryData.industryDataRoot entity.
+ ///
+ public class IndustryDataConnectorItemRequestBuilder {
+ /// Provides operations to call the validate method.
+ public IndustryDataValidateRequestBuilder IndustryDataValidate { get =>
+ new IndustryDataValidateRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Path parameters for the request
+ private Dictionary PathParameters { get; set; }
+ /// The request adapter to use to execute the requests.
+ private IRequestAdapter RequestAdapter { get; set; }
+ /// Provides operations to manage the sourceSystem property of the microsoft.graph.industryData.industryDataConnector entity.
+ public SourceSystemRequestBuilder SourceSystem { get =>
+ new SourceSystemRequestBuilder(PathParameters, RequestAdapter);
+ }
+ /// Url template to use to build the URL for the current request builder
+ private string UrlTemplate { get; set; }
+ ///
+ /// Instantiates a new IndustryDataConnectorItemRequestBuilder and sets the default values.
+ ///
+ /// Path parameters for the request
+ /// The request adapter to use to execute the requests.
+ public IndustryDataConnectorItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) {
+ _ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/external/industryData/dataConnectors/{industryDataConnector%2Did}{?%24select,%24expand}";
+ var urlTplParams = new Dictionary(pathParameters);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Instantiates a new IndustryDataConnectorItemRequestBuilder and sets the default values.
+ ///
+ /// The raw URL to use for the request builder.
+ /// The request adapter to use to execute the requests.
+ public IndustryDataConnectorItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
+ if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
+ _ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
+ UrlTemplate = "{+baseurl}/external/industryData/dataConnectors/{industryDataConnector%2Did}{?%24select,%24expand}";
+ var urlTplParams = new Dictionary();
+ if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
+ PathParameters = urlTplParams;
+ RequestAdapter = requestAdapter;
+ }
+ ///
+ /// Delete navigation property dataConnectors for external
+ ///
+ /// Cancellation token to use when cancelling requests
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public async Task DeleteAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
+#nullable restore
+#else
+ public async Task DeleteAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+#endif
+ var requestInfo = ToDeleteRequestInformation(requestConfiguration);
+ var errorMapping = new Dictionary> {
+ {"4XX", ODataError.CreateFromDiscriminatorValue},
+ {"5XX", ODataError.CreateFromDiscriminatorValue},
+ };
+ await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken);
+ }
+ ///
+ /// Set of connectors for importing data from source systems.
+ ///
+ /// 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, IndustryDataConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ }
+ ///
+ /// Update the navigation property dataConnectors in external
+ ///
+ /// The request body
+ /// 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 PatchAsync(IndustryDataConnector body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
+#nullable restore
+#else
+ public async Task PatchAsync(IndustryDataConnector body, Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+#endif
+ _ = body ?? throw new ArgumentNullException(nameof(body));
+ var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
+ var errorMapping = new Dictionary> {
+ {"4XX", ODataError.CreateFromDiscriminatorValue},
+ {"5XX", ODataError.CreateFromDiscriminatorValue},
+ };
+ return await RequestAdapter.SendAsync(requestInfo, IndustryDataConnector.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ }
+ ///
+ /// Delete navigation property dataConnectors for external
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToDeleteRequestInformation(Action? requestConfiguration = default) {
+#nullable restore
+#else
+ public RequestInformation ToDeleteRequestInformation(Action requestConfiguration = default) {
+#endif
+ var requestInfo = new RequestInformation {
+ HttpMethod = Method.DELETE,
+ UrlTemplate = UrlTemplate,
+ PathParameters = PathParameters,
+ };
+ if (requestConfiguration != null) {
+ var requestConfig = new IndustryDataConnectorItemRequestBuilderDeleteRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Set of connectors for importing data from source systems.
+ ///
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_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 IndustryDataConnectorItemRequestBuilderGetRequestConfiguration();
+ requestConfiguration.Invoke(requestConfig);
+ requestInfo.AddQueryParameters(requestConfig.QueryParameters);
+ requestInfo.AddRequestOptions(requestConfig.Options);
+ requestInfo.AddHeaders(requestConfig.Headers);
+ }
+ return requestInfo;
+ }
+ ///
+ /// Update the navigation property dataConnectors in external
+ ///
+ /// The request body
+ /// Configuration for the request such as headers, query parameters, and middleware options.
+#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
+#nullable enable
+ public RequestInformation ToPatchRequestInformation(IndustryDataConnector body, Action? requestConfiguration = default) {
+#nullable restore
+#else
+ public RequestInformation ToPatchRequestInformation(IndustryDataConnector body, Action