diff --git a/CHANGELOG.md b/CHANGELOG.md
index a6fc1cdb8c1..47a72f4de3d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,12 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v
## [Unreleased]
+## [5.10.0] - 2023-05-10
+
+- Latest metadata updates from 9th May 2023
+- Fixes invalid paths for singleValueExtendedProperties and multiValueExtendedProperties nav properties (https://github.com/microsoftgraph/msgraph-metadata/issues/246)
+- Fixes invalid paths for catalogs/accessPackages nav properties (https://github.com/microsoftgraph/msgraph-metadata/issues/338)
+
## [5.9.0] - 2023-05-03
- Latest metadata updates from 2nd May 2023
diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/DeletedItemsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/DeletedItemsRequestBuilder.cs
index 1f5cb5dd0b7..fbcd319a1da 100644
--- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/DeletedItemsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/DeletedItemsRequestBuilder.cs
@@ -2,8 +2,11 @@
using Microsoft.Graph.DirectoryNamespace.DeletedItems.Delta;
using Microsoft.Graph.DirectoryNamespace.DeletedItems.GetAvailableExtensionProperties;
using Microsoft.Graph.DirectoryNamespace.DeletedItems.GetByIds;
+using Microsoft.Graph.DirectoryNamespace.DeletedItems.GraphAdministrativeUnit;
using Microsoft.Graph.DirectoryNamespace.DeletedItems.GraphApplication;
+using Microsoft.Graph.DirectoryNamespace.DeletedItems.GraphDevice;
using Microsoft.Graph.DirectoryNamespace.DeletedItems.GraphGroup;
+using Microsoft.Graph.DirectoryNamespace.DeletedItems.GraphServicePrincipal;
using Microsoft.Graph.DirectoryNamespace.DeletedItems.GraphUser;
using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item;
using Microsoft.Graph.DirectoryNamespace.DeletedItems.ValidateProperties;
@@ -38,14 +41,26 @@ public class DeletedItemsRequestBuilder : BaseRequestBuilder {
public GetByIdsRequestBuilder GetByIds { get =>
new GetByIdsRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Casts the previous resource to administrativeUnit.
+ public GraphAdministrativeUnitRequestBuilder GraphAdministrativeUnit { get =>
+ new GraphAdministrativeUnitRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Casts the previous resource to application.
public GraphApplicationRequestBuilder GraphApplication { get =>
new GraphApplicationRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Casts the previous resource to device.
+ public GraphDeviceRequestBuilder GraphDevice { get =>
+ new GraphDeviceRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Casts the previous resource to group.
public GraphGroupRequestBuilder GraphGroup { get =>
new GraphGroupRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Casts the previous resource to servicePrincipal.
+ public GraphServicePrincipalRequestBuilder GraphServicePrincipal { get =>
+ new GraphServicePrincipalRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Casts the previous resource to user.
public GraphUserRequestBuilder GraphUser { get =>
new GraphUserRequestBuilder(PathParameters, RequestAdapter);
diff --git a/src/Microsoft.Graph/Generated/Me/Events/Item/MultiValueExtendedProperties/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/Count/CountRequestBuilder.cs
similarity index 94%
rename from src/Microsoft.Graph/Generated/Me/Events/Item/MultiValueExtendedProperties/Count/CountRequestBuilder.cs
rename to src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/Count/CountRequestBuilder.cs
index cea33735f7a..55034a0f443 100644
--- a/src/Microsoft.Graph/Generated/Me/Events/Item/MultiValueExtendedProperties/Count/CountRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/Count/CountRequestBuilder.cs
@@ -7,7 +7,7 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace Microsoft.Graph.Me.Events.Item.MultiValueExtendedProperties.Count {
+namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.GraphAdministrativeUnit.Count {
///
/// Provides operations to count the resources in the collection.
///
@@ -17,14 +17,14 @@ public class CountRequestBuilder : BaseRequestBuilder {
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
- public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/multiValueExtendedProperties/$count{?%24search,%24filter}", pathParameters) {
+ public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/graph.administrativeUnit/$count{?%24search,%24filter}", pathParameters) {
}
///
/// 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) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/multiValueExtendedProperties/$count{?%24search,%24filter}", rawUrl) {
+ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/graph.administrativeUnit/$count{?%24search,%24filter}", rawUrl) {
}
///
/// Get the number of the resource
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
similarity index 58%
rename from src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.cs
rename to src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
index 5a5035b9d74..cd3e9bf18fb 100644
--- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/IncompatibleGroups/IncompatibleGroupsRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
@@ -1,6 +1,4 @@
-using Microsoft.Graph.IdentityGovernance.EntitlementManagement.Catalogs.Item.AccessPackages.Item.IncompatibleGroups.Count;
-using Microsoft.Graph.IdentityGovernance.EntitlementManagement.Catalogs.Item.AccessPackages.Item.IncompatibleGroups.Item;
-using Microsoft.Graph.IdentityGovernance.EntitlementManagement.Catalogs.Item.AccessPackages.Item.IncompatibleGroups.Ref;
+using Microsoft.Graph.DirectoryNamespace.DeletedItems.GraphAdministrativeUnit.Count;
using Microsoft.Graph.Models.ODataErrors;
using Microsoft.Graph.Models;
using Microsoft.Kiota.Abstractions.Serialization;
@@ -11,68 +9,58 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.Catalogs.Item.AccessPackages.Item.IncompatibleGroups {
+namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.GraphAdministrativeUnit {
///
- /// Provides operations to manage the incompatibleGroups property of the microsoft.graph.accessPackage entity.
+ /// Casts the previous resource to administrativeUnit.
///
- public class IncompatibleGroupsRequestBuilder : BaseRequestBuilder {
+ public class GraphAdministrativeUnitRequestBuilder : BaseRequestBuilder {
/// Provides operations to count the resources in the collection.
public CountRequestBuilder Count { get =>
new CountRequestBuilder(PathParameters, RequestAdapter);
}
- /// Provides operations to manage the collection of identityGovernance entities.
- public RefRequestBuilder Ref { get =>
- new RefRequestBuilder(PathParameters, RequestAdapter);
- }
- /// Gets an item from the Microsoft.Graph.identityGovernance.entitlementManagement.catalogs.item.accessPackages.item.incompatibleGroups.item collection
- public GroupItemRequestBuilder this[string position] { get {
- var urlTplParams = new Dictionary(PathParameters);
- if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("group%2Did", position);
- return new GroupItemRequestBuilder(urlTplParams, RequestAdapter);
- } }
///
- /// Instantiates a new IncompatibleGroupsRequestBuilder and sets the default values.
+ /// Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
- public IncompatibleGroupsRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/accessPackages/{accessPackage%2Did}/incompatibleGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) {
+ public GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) {
}
///
- /// Instantiates a new IncompatibleGroupsRequestBuilder and sets the default values.
+ /// 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 IncompatibleGroupsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/accessPackages/{accessPackage%2Did}/incompatibleGroups{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) {
+ public GraphAdministrativeUnitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) {
}
///
- /// The groups whose members are ineligible to be assigned this access package.
+ /// 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) {
+ public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
#nullable restore
#else
- public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+ public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) {
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
{"5XX", ODataError.CreateFromDiscriminatorValue},
};
- return await RequestAdapter.SendAsync(requestInfo, GroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ return await RequestAdapter.SendAsync(requestInfo, AdministrativeUnitCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// The groups whose members are ineligible to be assigned this access package.
+ /// 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) {
+ public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) {
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) {
+ public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) {
#endif
var requestInfo = new RequestInformation {
HttpMethod = Method.GET,
@@ -81,7 +69,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// The groups whose members are ineligible to be assigned this access package.
+ /// Get the items of type microsoft.graph.administrativeUnit in the microsoft.graph.directoryObject collection
///
- public class IncompatibleGroupsRequestBuilderGetQueryParameters {
+ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters {
/// Include count of items
[QueryParameter("%24count")]
public bool? Count { get; set; }
@@ -156,17 +144,17 @@ public class IncompatibleGroupsRequestBuilderGetQueryParameters {
///
/// Configuration for the request such as headers, query parameters, and middleware options.
///
- public class IncompatibleGroupsRequestBuilderGetRequestConfiguration {
+ public class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration {
/// Request headers
public RequestHeaders Headers { get; set; }
/// Request options
public IList Options { get; set; }
/// Request query parameters
- public IncompatibleGroupsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new IncompatibleGroupsRequestBuilderGetQueryParameters();
+ public GraphAdministrativeUnitRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GraphAdministrativeUnitRequestBuilderGetQueryParameters();
///
- /// Instantiates a new incompatibleGroupsRequestBuilderGetRequestConfiguration and sets the default values.
+ /// Instantiates a new graphAdministrativeUnitRequestBuilderGetRequestConfiguration and sets the default values.
///
- public IncompatibleGroupsRequestBuilderGetRequestConfiguration() {
+ public GraphAdministrativeUnitRequestBuilderGetRequestConfiguration() {
Options = new List();
Headers = new RequestHeaders();
}
diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/MultiValueExtendedProperties/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphDevice/Count/CountRequestBuilder.cs
similarity index 94%
rename from src/Microsoft.Graph/Generated/Me/Calendar/MultiValueExtendedProperties/Count/CountRequestBuilder.cs
rename to src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphDevice/Count/CountRequestBuilder.cs
index 66d9a27acbc..70ffdbe358d 100644
--- a/src/Microsoft.Graph/Generated/Me/Calendar/MultiValueExtendedProperties/Count/CountRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphDevice/Count/CountRequestBuilder.cs
@@ -7,7 +7,7 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace Microsoft.Graph.Me.Calendar.MultiValueExtendedProperties.Count {
+namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.GraphDevice.Count {
///
/// Provides operations to count the resources in the collection.
///
@@ -17,14 +17,14 @@ public class CountRequestBuilder : BaseRequestBuilder {
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
- public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/multiValueExtendedProperties/$count{?%24search,%24filter}", pathParameters) {
+ public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/graph.device/$count{?%24search,%24filter}", pathParameters) {
}
///
/// 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) : base(requestAdapter, "{+baseurl}/me/calendar/multiValueExtendedProperties/$count{?%24search,%24filter}", rawUrl) {
+ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/graph.device/$count{?%24search,%24filter}", rawUrl) {
}
///
/// Get the number of the resource
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphDevice/GraphDeviceRequestBuilder.cs
similarity index 61%
rename from src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs
rename to src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphDevice/GraphDeviceRequestBuilder.cs
index eb2caa54917..4d9698177cd 100644
--- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/FilterByCurrentUserWithOn/FilterByCurrentUserWithOnRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphDevice/GraphDeviceRequestBuilder.cs
@@ -1,4 +1,6 @@
+using Microsoft.Graph.DirectoryNamespace.DeletedItems.GraphDevice.Count;
using Microsoft.Graph.Models.ODataErrors;
+using Microsoft.Graph.Models;
using Microsoft.Kiota.Abstractions.Serialization;
using Microsoft.Kiota.Abstractions;
using System.Collections.Generic;
@@ -7,56 +9,58 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.Catalogs.Item.AccessPackages.FilterByCurrentUserWithOn {
+namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.GraphDevice {
///
- /// Provides operations to call the filterByCurrentUser method.
+ /// Casts the previous resource to device.
///
- public class FilterByCurrentUserWithOnRequestBuilder : BaseRequestBuilder {
+ public class GraphDeviceRequestBuilder : BaseRequestBuilder {
+ /// Provides operations to count the resources in the collection.
+ public CountRequestBuilder Count { get =>
+ new CountRequestBuilder(PathParameters, RequestAdapter);
+ }
///
- /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values.
+ /// Instantiates a new GraphDeviceRequestBuilder and sets the default values.
///
- /// Usage: on='{on}'
/// Path parameters for the request
/// The request adapter to use to execute the requests.
- public FilterByCurrentUserWithOnRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter, string on = "") : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/accessPackages/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", pathParameters) {
- if (!string.IsNullOrWhiteSpace(on)) PathParameters.Add("on", on);
+ public GraphDeviceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/graph.device{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) {
}
///
- /// Instantiates a new FilterByCurrentUserWithOnRequestBuilder and sets the default values.
+ /// Instantiates a new GraphDeviceRequestBuilder and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
- public FilterByCurrentUserWithOnRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/accessPackages/filterByCurrentUser(on='{on}'){?%24top,%24skip,%24search,%24filter,%24count,%24select,%24orderby}", rawUrl) {
+ public GraphDeviceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/graph.device{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) {
}
///
- /// Invoke function filterByCurrentUser
+ /// Get the items of type microsoft.graph.device 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) {
+ public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
#nullable restore
#else
- public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+ public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) {
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
{"5XX", ODataError.CreateFromDiscriminatorValue},
};
- return await RequestAdapter.SendAsync(requestInfo, FilterByCurrentUserWithOnResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ return await RequestAdapter.SendAsync(requestInfo, DeviceCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Invoke function filterByCurrentUser
+ /// Get the items of type microsoft.graph.device 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) {
+ public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) {
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) {
+ public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) {
#endif
var requestInfo = new RequestInformation {
HttpMethod = Method.GET,
@@ -65,7 +69,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Invoke function filterByCurrentUser
+ /// Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection
///
- public class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters {
+ public class GraphDeviceRequestBuilderGetQueryParameters {
/// 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
@@ -130,17 +144,17 @@ public class FilterByCurrentUserWithOnRequestBuilderGetQueryParameters {
///
/// Configuration for the request such as headers, query parameters, and middleware options.
///
- public class FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration {
+ public class GraphDeviceRequestBuilderGetRequestConfiguration {
/// Request headers
public RequestHeaders Headers { get; set; }
/// Request options
public IList Options { get; set; }
/// Request query parameters
- public FilterByCurrentUserWithOnRequestBuilderGetQueryParameters QueryParameters { get; set; } = new FilterByCurrentUserWithOnRequestBuilderGetQueryParameters();
+ public GraphDeviceRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GraphDeviceRequestBuilderGetQueryParameters();
///
- /// Instantiates a new filterByCurrentUserWithOnRequestBuilderGetRequestConfiguration and sets the default values.
+ /// Instantiates a new graphDeviceRequestBuilderGetRequestConfiguration and sets the default values.
///
- public FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration() {
+ public GraphDeviceRequestBuilderGetRequestConfiguration() {
Options = new List();
Headers = new RequestHeaders();
}
diff --git a/src/Microsoft.Graph/Generated/Me/Calendar/SingleValueExtendedProperties/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphServicePrincipal/Count/CountRequestBuilder.cs
similarity index 94%
rename from src/Microsoft.Graph/Generated/Me/Calendar/SingleValueExtendedProperties/Count/CountRequestBuilder.cs
rename to src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphServicePrincipal/Count/CountRequestBuilder.cs
index 71eece0844b..c268e5ce2c5 100644
--- a/src/Microsoft.Graph/Generated/Me/Calendar/SingleValueExtendedProperties/Count/CountRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphServicePrincipal/Count/CountRequestBuilder.cs
@@ -7,7 +7,7 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace Microsoft.Graph.Me.Calendar.SingleValueExtendedProperties.Count {
+namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.GraphServicePrincipal.Count {
///
/// Provides operations to count the resources in the collection.
///
@@ -17,14 +17,14 @@ public class CountRequestBuilder : BaseRequestBuilder {
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
- public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/singleValueExtendedProperties/$count{?%24search,%24filter}", pathParameters) {
+ public CountRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/graph.servicePrincipal/$count{?%24search,%24filter}", pathParameters) {
}
///
/// 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) : base(requestAdapter, "{+baseurl}/me/calendar/singleValueExtendedProperties/$count{?%24search,%24filter}", rawUrl) {
+ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/graph.servicePrincipal/$count{?%24search,%24filter}", rawUrl) {
}
///
/// Get the number of the resource
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs
similarity index 57%
rename from src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.cs
rename to src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs
index e60fc82d91c..3e2b3f10a69 100644
--- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AccessPackagesIncompatibleWith/AccessPackagesIncompatibleWithRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs
@@ -1,5 +1,4 @@
-using Microsoft.Graph.IdentityGovernance.EntitlementManagement.Catalogs.Item.AccessPackages.Item.AccessPackagesIncompatibleWith.Count;
-using Microsoft.Graph.IdentityGovernance.EntitlementManagement.Catalogs.Item.AccessPackages.Item.AccessPackagesIncompatibleWith.Item;
+using Microsoft.Graph.DirectoryNamespace.DeletedItems.GraphServicePrincipal.Count;
using Microsoft.Graph.Models.ODataErrors;
using Microsoft.Graph.Models;
using Microsoft.Kiota.Abstractions.Serialization;
@@ -10,64 +9,58 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.Catalogs.Item.AccessPackages.Item.AccessPackagesIncompatibleWith {
+namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.GraphServicePrincipal {
///
- /// Provides operations to manage the accessPackagesIncompatibleWith property of the microsoft.graph.accessPackage entity.
+ /// Casts the previous resource to servicePrincipal.
///
- public class AccessPackagesIncompatibleWithRequestBuilder : BaseRequestBuilder {
+ public class GraphServicePrincipalRequestBuilder : BaseRequestBuilder {
/// Provides operations to count the resources in the collection.
public CountRequestBuilder Count { get =>
new CountRequestBuilder(PathParameters, RequestAdapter);
}
- /// Provides operations to manage the accessPackagesIncompatibleWith property of the microsoft.graph.accessPackage entity.
- public Microsoft.Graph.IdentityGovernance.EntitlementManagement.Catalogs.Item.AccessPackages.Item.AccessPackagesIncompatibleWith.Item.AccessPackageItemRequestBuilder this[string position] { get {
- var urlTplParams = new Dictionary(PathParameters);
- if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("accessPackage%2Did1", position);
- return new Microsoft.Graph.IdentityGovernance.EntitlementManagement.Catalogs.Item.AccessPackages.Item.AccessPackagesIncompatibleWith.Item.AccessPackageItemRequestBuilder(urlTplParams, RequestAdapter);
- } }
///
- /// Instantiates a new AccessPackagesIncompatibleWithRequestBuilder and sets the default values.
+ /// Instantiates a new GraphServicePrincipalRequestBuilder and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
- public AccessPackagesIncompatibleWithRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/accessPackages/{accessPackage%2Did}/accessPackagesIncompatibleWith{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) {
+ public GraphServicePrincipalRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/graph.servicePrincipal{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) {
}
///
- /// Instantiates a new AccessPackagesIncompatibleWithRequestBuilder and sets the default values.
+ /// Instantiates a new GraphServicePrincipalRequestBuilder and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
- public AccessPackagesIncompatibleWithRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/accessPackages/{accessPackage%2Did}/accessPackagesIncompatibleWith{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) {
+ public GraphServicePrincipalRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/graph.servicePrincipal{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) {
}
///
- /// The access packages that are incompatible with this package. Read-only.
+ /// Get the items of type microsoft.graph.servicePrincipal 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) {
+ public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
#nullable restore
#else
- public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+ public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) {
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
{"5XX", ODataError.CreateFromDiscriminatorValue},
};
- return await RequestAdapter.SendAsync(requestInfo, AccessPackageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ return await RequestAdapter.SendAsync(requestInfo, ServicePrincipalCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// The access packages that are incompatible with this package. Read-only.
+ /// Get the items of type microsoft.graph.servicePrincipal 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) {
+ public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) {
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) {
+ public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) {
#endif
var requestInfo = new RequestInformation {
HttpMethod = Method.GET,
@@ -76,7 +69,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// The access packages that are incompatible with this package. Read-only.
+ /// Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection
///
- public class AccessPackagesIncompatibleWithRequestBuilderGetQueryParameters {
+ public class GraphServicePrincipalRequestBuilderGetQueryParameters {
/// Include count of items
[QueryParameter("%24count")]
public bool? Count { get; set; }
@@ -151,17 +144,17 @@ public class AccessPackagesIncompatibleWithRequestBuilderGetQueryParameters {
///
/// Configuration for the request such as headers, query parameters, and middleware options.
///
- public class AccessPackagesIncompatibleWithRequestBuilderGetRequestConfiguration {
+ public class GraphServicePrincipalRequestBuilderGetRequestConfiguration {
/// Request headers
public RequestHeaders Headers { get; set; }
/// Request options
public IList Options { get; set; }
/// Request query parameters
- public AccessPackagesIncompatibleWithRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AccessPackagesIncompatibleWithRequestBuilderGetQueryParameters();
+ public GraphServicePrincipalRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GraphServicePrincipalRequestBuilderGetQueryParameters();
///
- /// Instantiates a new accessPackagesIncompatibleWithRequestBuilderGetRequestConfiguration and sets the default values.
+ /// Instantiates a new graphServicePrincipalRequestBuilderGetRequestConfiguration and sets the default values.
///
- public AccessPackagesIncompatibleWithRequestBuilderGetRequestConfiguration() {
+ public GraphServicePrincipalRequestBuilderGetRequestConfiguration() {
Options = new List();
Headers = new RequestHeaders();
}
diff --git a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/DirectoryObjectItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/DirectoryObjectItemRequestBuilder.cs
index 7f656169e82..c657f479bb4 100644
--- a/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/DirectoryObjectItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/DirectoryObjectItemRequestBuilder.cs
@@ -2,8 +2,11 @@
using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.CheckMemberObjects;
using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GetMemberGroups;
using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GetMemberObjects;
+using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GraphAdministrativeUnit;
using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GraphApplication;
+using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GraphDevice;
using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GraphGroup;
+using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GraphServicePrincipal;
using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GraphUser;
using Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.Restore;
using Microsoft.Graph.Models.ODataErrors;
@@ -37,14 +40,26 @@ public class DirectoryObjectItemRequestBuilder : BaseRequestBuilder {
public GetMemberObjectsRequestBuilder GetMemberObjects { get =>
new GetMemberObjectsRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Casts the previous resource to administrativeUnit.
+ public GraphAdministrativeUnitRequestBuilder GraphAdministrativeUnit { get =>
+ new GraphAdministrativeUnitRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Casts the previous resource to application.
public GraphApplicationRequestBuilder GraphApplication { get =>
new GraphApplicationRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Casts the previous resource to device.
+ public GraphDeviceRequestBuilder GraphDevice { get =>
+ new GraphDeviceRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Casts the previous resource to group.
public GraphGroupRequestBuilder GraphGroup { get =>
new GraphGroupRequestBuilder(PathParameters, RequestAdapter);
}
+ /// Casts the previous resource to servicePrincipal.
+ public GraphServicePrincipalRequestBuilder GraphServicePrincipal { get =>
+ new GraphServicePrincipalRequestBuilder(PathParameters, RequestAdapter);
+ }
/// Casts the previous resource to user.
public GraphUserRequestBuilder GraphUser { get =>
new GraphUserRequestBuilder(PathParameters, RequestAdapter);
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
similarity index 59%
rename from src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.cs
rename to src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
index c99d218c841..c11e8f36d19 100644
--- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AssignmentPolicies/Item/AccessPackage/AccessPackageRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphAdministrativeUnit/GraphAdministrativeUnitRequestBuilder.cs
@@ -8,54 +8,54 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.Catalogs.Item.AccessPackages.Item.AssignmentPolicies.Item.AccessPackage {
+namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GraphAdministrativeUnit {
///
- /// Provides operations to manage the accessPackage property of the microsoft.graph.accessPackageAssignmentPolicy entity.
+ /// Casts the previous resource to administrativeUnit.
///
- public class AccessPackageRequestBuilder : BaseRequestBuilder {
+ public class GraphAdministrativeUnitRequestBuilder : BaseRequestBuilder {
///
- /// Instantiates a new AccessPackageRequestBuilder and sets the default values.
+ /// Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
- public AccessPackageRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/accessPackage{?%24select,%24expand}", pathParameters) {
+ public GraphAdministrativeUnitRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}", pathParameters) {
}
///
- /// Instantiates a new AccessPackageRequestBuilder and sets the default values.
+ /// 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 AccessPackageRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/accessPackage{?%24select,%24expand}", rawUrl) {
+ public GraphAdministrativeUnitRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.administrativeUnit{?%24select,%24expand}", rawUrl) {
}
///
- /// Access package containing this policy. Read-only.
+ /// 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) {
+ public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
#nullable restore
#else
- public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+ public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) {
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
{"5XX", ODataError.CreateFromDiscriminatorValue},
};
- return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.AccessPackage.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.AdministrativeUnit.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Access package containing this policy. Read-only.
+ /// 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) {
+ public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) {
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) {
+ public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) {
#endif
var requestInfo = new RequestInformation {
HttpMethod = Method.GET,
@@ -64,7 +64,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Access package containing this policy. Read-only.
+ /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.administrativeUnit
///
- public class AccessPackageRequestBuilderGetQueryParameters {
+ public class GraphAdministrativeUnitRequestBuilderGetQueryParameters {
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -100,17 +100,17 @@ public class AccessPackageRequestBuilderGetQueryParameters {
///
/// Configuration for the request such as headers, query parameters, and middleware options.
///
- public class AccessPackageRequestBuilderGetRequestConfiguration {
+ public class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration {
/// Request headers
public RequestHeaders Headers { get; set; }
/// Request options
public IList Options { get; set; }
/// Request query parameters
- public AccessPackageRequestBuilderGetQueryParameters QueryParameters { get; set; } = new AccessPackageRequestBuilderGetQueryParameters();
+ public GraphAdministrativeUnitRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GraphAdministrativeUnitRequestBuilderGetQueryParameters();
///
- /// Instantiates a new accessPackageRequestBuilderGetRequestConfiguration and sets the default values.
+ /// Instantiates a new graphAdministrativeUnitRequestBuilderGetRequestConfiguration and sets the default values.
///
- public AccessPackageRequestBuilderGetRequestConfiguration() {
+ public GraphAdministrativeUnitRequestBuilderGetRequestConfiguration() {
Options = new List();
Headers = new RequestHeaders();
}
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/Catalog/CatalogRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphDevice/GraphDeviceRequestBuilder.cs
similarity index 61%
rename from src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/Catalog/CatalogRequestBuilder.cs
rename to src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphDevice/GraphDeviceRequestBuilder.cs
index bd464c346fe..c8490164b1f 100644
--- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/Catalog/CatalogRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphDevice/GraphDeviceRequestBuilder.cs
@@ -8,54 +8,54 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.Catalogs.Item.AccessPackages.Item.Catalog {
+namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GraphDevice {
///
- /// Provides operations to manage the catalog property of the microsoft.graph.accessPackage entity.
+ /// Casts the previous resource to device.
///
- public class CatalogRequestBuilder : BaseRequestBuilder {
+ public class GraphDeviceRequestBuilder : BaseRequestBuilder {
///
- /// Instantiates a new CatalogRequestBuilder and sets the default values.
+ /// Instantiates a new GraphDeviceRequestBuilder and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
- public CatalogRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/accessPackages/{accessPackage%2Did}/catalog{?%24select,%24expand}", pathParameters) {
+ public GraphDeviceRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.device{?%24select,%24expand}", pathParameters) {
}
///
- /// Instantiates a new CatalogRequestBuilder and sets the default values.
+ /// Instantiates a new GraphDeviceRequestBuilder and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
- public CatalogRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/accessPackages/{accessPackage%2Did}/catalog{?%24select,%24expand}", rawUrl) {
+ public GraphDeviceRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.device{?%24select,%24expand}", rawUrl) {
}
///
- /// Get catalog from identityGovernance
+ /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.device
///
/// 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) {
+ public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
#nullable restore
#else
- public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+ public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) {
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
{"5XX", ODataError.CreateFromDiscriminatorValue},
};
- return await RequestAdapter.SendAsync(requestInfo, AccessPackageCatalog.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ return await RequestAdapter.SendAsync(requestInfo, Microsoft.Graph.Models.Device.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Get catalog from identityGovernance
+ /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.device
///
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) {
+ public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) {
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) {
+ public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) {
#endif
var requestInfo = new RequestInformation {
HttpMethod = Method.GET,
@@ -64,7 +64,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Get catalog from identityGovernance
+ /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.device
///
- public class CatalogRequestBuilderGetQueryParameters {
+ public class GraphDeviceRequestBuilderGetQueryParameters {
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -100,17 +100,17 @@ public class CatalogRequestBuilderGetQueryParameters {
///
/// Configuration for the request such as headers, query parameters, and middleware options.
///
- public class CatalogRequestBuilderGetRequestConfiguration {
+ public class GraphDeviceRequestBuilderGetRequestConfiguration {
/// Request headers
public RequestHeaders Headers { get; set; }
/// Request options
public IList Options { get; set; }
/// Request query parameters
- public CatalogRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CatalogRequestBuilderGetQueryParameters();
+ public GraphDeviceRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GraphDeviceRequestBuilderGetQueryParameters();
///
- /// Instantiates a new catalogRequestBuilderGetRequestConfiguration and sets the default values.
+ /// Instantiates a new graphDeviceRequestBuilderGetRequestConfiguration and sets the default values.
///
- public CatalogRequestBuilderGetRequestConfiguration() {
+ public GraphDeviceRequestBuilderGetRequestConfiguration() {
Options = new List();
Headers = new RequestHeaders();
}
diff --git a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AssignmentPolicies/Item/Catalog/CatalogRequestBuilder.cs b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs
similarity index 59%
rename from src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AssignmentPolicies/Item/Catalog/CatalogRequestBuilder.cs
rename to src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs
index d5d24090cea..ac15aa62b59 100644
--- a/src/Microsoft.Graph/Generated/IdentityGovernance/EntitlementManagement/Catalogs/Item/AccessPackages/Item/AssignmentPolicies/Item/Catalog/CatalogRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/DirectoryNamespace/DeletedItems/Item/GraphServicePrincipal/GraphServicePrincipalRequestBuilder.cs
@@ -8,54 +8,54 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace Microsoft.Graph.IdentityGovernance.EntitlementManagement.Catalogs.Item.AccessPackages.Item.AssignmentPolicies.Item.Catalog {
+namespace Microsoft.Graph.DirectoryNamespace.DeletedItems.Item.GraphServicePrincipal {
///
- /// Provides operations to manage the catalog property of the microsoft.graph.accessPackageAssignmentPolicy entity.
+ /// Casts the previous resource to servicePrincipal.
///
- public class CatalogRequestBuilder : BaseRequestBuilder {
+ public class GraphServicePrincipalRequestBuilder : BaseRequestBuilder {
///
- /// Instantiates a new CatalogRequestBuilder and sets the default values.
+ /// Instantiates a new GraphServicePrincipalRequestBuilder and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
- public CatalogRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/catalog{?%24select,%24expand}", pathParameters) {
+ public GraphServicePrincipalRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.servicePrincipal{?%24select,%24expand}", pathParameters) {
}
///
- /// Instantiates a new CatalogRequestBuilder and sets the default values.
+ /// Instantiates a new GraphServicePrincipalRequestBuilder and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
- public CatalogRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalog%2Did}/accessPackages/{accessPackage%2Did}/assignmentPolicies/{accessPackageAssignmentPolicy%2Did}/catalog{?%24select,%24expand}", rawUrl) {
+ public GraphServicePrincipalRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/{directoryObject%2Did}/graph.servicePrincipal{?%24select,%24expand}", rawUrl) {
}
///
- /// Catalog of the access package containing this policy. Read-only.
+ /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal
///
/// 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) {
+ public async Task GetAsync(Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
#nullable restore
#else
- public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) {
+ public async Task GetAsync(Action requestConfiguration = default, CancellationToken cancellationToken = default) {
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
{"5XX", ODataError.CreateFromDiscriminatorValue},
};
- return await RequestAdapter.SendAsync(requestInfo, AccessPackageCatalog.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
+ return await RequestAdapter.SendAsync(requestInfo, ServicePrincipal.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
///
- /// Catalog of the access package containing this policy. Read-only.
+ /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal
///
/// Configuration for the request such as headers, query parameters, and middleware options.
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
- public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) {
+ public RequestInformation ToGetRequestInformation(Action? requestConfiguration = default) {
#nullable restore
#else
- public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) {
+ public RequestInformation ToGetRequestInformation(Action requestConfiguration = default) {
#endif
var requestInfo = new RequestInformation {
HttpMethod = Method.GET,
@@ -64,7 +64,7 @@ public RequestInformation ToGetRequestInformation(Action
- /// Catalog of the access package containing this policy. Read-only.
+ /// Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal
///
- public class CatalogRequestBuilderGetQueryParameters {
+ public class GraphServicePrincipalRequestBuilderGetQueryParameters {
/// Expand related entities
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
@@ -100,17 +100,17 @@ public class CatalogRequestBuilderGetQueryParameters {
///
/// Configuration for the request such as headers, query parameters, and middleware options.
///
- public class CatalogRequestBuilderGetRequestConfiguration {
+ public class GraphServicePrincipalRequestBuilderGetRequestConfiguration {
/// Request headers
public RequestHeaders Headers { get; set; }
/// Request options
public IList Options { get; set; }
/// Request query parameters
- public CatalogRequestBuilderGetQueryParameters QueryParameters { get; set; } = new CatalogRequestBuilderGetQueryParameters();
+ public GraphServicePrincipalRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GraphServicePrincipalRequestBuilderGetQueryParameters();
///
- /// Instantiates a new catalogRequestBuilderGetRequestConfiguration and sets the default values.
+ /// Instantiates a new graphServicePrincipalRequestBuilderGetRequestConfiguration and sets the default values.
///
- public CatalogRequestBuilderGetRequestConfiguration() {
+ public GraphServicePrincipalRequestBuilderGetRequestConfiguration() {
Options = new List();
Headers = new RequestHeaders();
}
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarRequestBuilder.cs
index a3c505a738e..f760dd7eb50 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarRequestBuilder.cs
@@ -3,8 +3,6 @@
using Microsoft.Graph.Groups.Item.Calendar.CalendarView;
using Microsoft.Graph.Groups.Item.Calendar.Events;
using Microsoft.Graph.Groups.Item.Calendar.GetSchedule;
-using Microsoft.Graph.Groups.Item.Calendar.MultiValueExtendedProperties;
-using Microsoft.Graph.Groups.Item.Calendar.SingleValueExtendedProperties;
using Microsoft.Graph.Models.ODataErrors;
using Microsoft.Graph.Models;
using Microsoft.Kiota.Abstractions.Serialization;
@@ -36,14 +34,6 @@ public class CalendarRequestBuilder : BaseRequestBuilder {
public GetScheduleRequestBuilder GetSchedule { get =>
new GetScheduleRequestBuilder(PathParameters, RequestAdapter);
}
- /// Provides operations to manage the multiValueExtendedProperties property of the microsoft.graph.calendar entity.
- public MultiValueExtendedPropertiesRequestBuilder MultiValueExtendedProperties { get =>
- new MultiValueExtendedPropertiesRequestBuilder(PathParameters, RequestAdapter);
- }
- /// Provides operations to manage the singleValueExtendedProperties property of the microsoft.graph.calendar entity.
- public SingleValueExtendedPropertiesRequestBuilder SingleValueExtendedProperties { get =>
- new SingleValueExtendedPropertiesRequestBuilder(PathParameters, RequestAdapter);
- }
///
/// Provides operations to call the allowedCalendarSharingRoles method.
///
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/EventItemRequestBuilder.cs
index 58b450439c8..491b1ea874d 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/EventItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/EventItemRequestBuilder.cs
@@ -7,8 +7,6 @@
using Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Extensions;
using Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Forward;
using Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Instances;
-using Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.MultiValueExtendedProperties;
-using Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.SingleValueExtendedProperties;
using Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.SnoozeReminder;
using Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.TentativelyAccept;
using Microsoft.Graph.Models.ODataErrors;
@@ -62,14 +60,6 @@ public class EventItemRequestBuilder : BaseRequestBuilder {
public InstancesRequestBuilder Instances { get =>
new InstancesRequestBuilder(PathParameters, RequestAdapter);
}
- /// Provides operations to manage the multiValueExtendedProperties property of the microsoft.graph.event entity.
- public MultiValueExtendedPropertiesRequestBuilder MultiValueExtendedProperties { get =>
- new MultiValueExtendedPropertiesRequestBuilder(PathParameters, RequestAdapter);
- }
- /// Provides operations to manage the singleValueExtendedProperties property of the microsoft.graph.event entity.
- public SingleValueExtendedPropertiesRequestBuilder SingleValueExtendedProperties { get =>
- new SingleValueExtendedPropertiesRequestBuilder(PathParameters, RequestAdapter);
- }
/// Provides operations to call the snoozeReminder method.
public SnoozeReminderRequestBuilder SnoozeReminder { get =>
new SnoozeReminderRequestBuilder(PathParameters, RequestAdapter);
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs
index f40c9b45462..be6a545712a 100644
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs
+++ b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/EventItemRequestBuilder.cs
@@ -6,8 +6,6 @@
using Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Instances.Item.DismissReminder;
using Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Extensions;
using Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Instances.Item.Forward;
-using Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Instances.Item.MultiValueExtendedProperties;
-using Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Instances.Item.SingleValueExtendedProperties;
using Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Instances.Item.SnoozeReminder;
using Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Instances.Item.TentativelyAccept;
using Microsoft.Graph.Models.ODataErrors;
@@ -57,14 +55,6 @@ public class EventItemRequestBuilder : BaseRequestBuilder {
public ForwardRequestBuilder Forward { get =>
new ForwardRequestBuilder(PathParameters, RequestAdapter);
}
- /// Provides operations to manage the multiValueExtendedProperties property of the microsoft.graph.event entity.
- public MultiValueExtendedPropertiesRequestBuilder MultiValueExtendedProperties { get =>
- new MultiValueExtendedPropertiesRequestBuilder(PathParameters, RequestAdapter);
- }
- /// Provides operations to manage the singleValueExtendedProperties property of the microsoft.graph.event entity.
- public SingleValueExtendedPropertiesRequestBuilder SingleValueExtendedProperties { get =>
- new SingleValueExtendedPropertiesRequestBuilder(PathParameters, RequestAdapter);
- }
/// Provides operations to call the snoozeReminder method.
public SnoozeReminderRequestBuilder SnoozeReminder { get =>
new SnoozeReminderRequestBuilder(PathParameters, RequestAdapter);
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/MultiValueExtendedProperties/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/MultiValueExtendedProperties/Count/CountRequestBuilder.cs
deleted file mode 100644
index ec98dc86567..00000000000
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/MultiValueExtendedProperties/Count/CountRequestBuilder.cs
+++ /dev/null
@@ -1,118 +0,0 @@
-using Microsoft.Graph.Models.ODataErrors;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Instances.Item.MultiValueExtendedProperties.Count {
- ///
- /// Provides operations to count the resources in the collection.
- ///
- public class CountRequestBuilder : BaseRequestBuilder {
- ///
- /// 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) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/multiValueExtendedProperties/$count{?%24search,%24filter}", pathParameters) {
- }
- ///
- /// 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) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/multiValueExtendedProperties/$count{?%24search,%24filter}", rawUrl) {
- }
- ///
- /// 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/Groups/Item/Calendar/CalendarView/Item/Instances/Item/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyItemRequestBuilder.cs
deleted file mode 100644
index cbc7c44d23d..00000000000
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyItemRequestBuilder.cs
+++ /dev/null
@@ -1,243 +0,0 @@
-using Microsoft.Graph.Models.ODataErrors;
-using Microsoft.Graph.Models;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Instances.Item.MultiValueExtendedProperties.Item {
- ///
- /// Provides operations to manage the multiValueExtendedProperties property of the microsoft.graph.event entity.
- ///
- public class MultiValueLegacyExtendedPropertyItemRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new MultiValueLegacyExtendedPropertyItemRequestBuilder and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public MultiValueLegacyExtendedPropertyItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty%2Did}{?%24select,%24expand}", pathParameters) {
- }
- ///
- /// Instantiates a new MultiValueLegacyExtendedPropertyItemRequestBuilder and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public MultiValueLegacyExtendedPropertyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty%2Did}{?%24select,%24expand}", rawUrl) {
- }
- ///
- /// Delete navigation property multiValueExtendedProperties for groups
- ///
- /// 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);
- }
- ///
- /// The collection of multi-value extended properties defined for the event. Read-only. Nullable.
- ///
- /// 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, MultiValueLegacyExtendedProperty.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
- }
- ///
- /// Update the navigation property multiValueExtendedProperties in groups
- ///
- /// 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(MultiValueLegacyExtendedProperty body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
-#nullable restore
-#else
- public async Task PatchAsync(MultiValueLegacyExtendedProperty 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, MultiValueLegacyExtendedProperty.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
- }
- ///
- /// Delete navigation property multiValueExtendedProperties for groups
- ///
- /// Configuration 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 MultiValueLegacyExtendedPropertyItemRequestBuilderDeleteRequestConfiguration();
- requestConfiguration.Invoke(requestConfig);
- requestInfo.AddRequestOptions(requestConfig.Options);
- requestInfo.AddHeaders(requestConfig.Headers);
- }
- return requestInfo;
- }
- ///
- /// The collection of multi-value extended properties defined for the event. Read-only. Nullable.
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_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 MultiValueLegacyExtendedPropertyItemRequestBuilderGetRequestConfiguration();
- requestConfiguration.Invoke(requestConfig);
- requestInfo.AddQueryParameters(requestConfig.QueryParameters);
- requestInfo.AddRequestOptions(requestConfig.Options);
- requestInfo.AddHeaders(requestConfig.Headers);
- }
- return requestInfo;
- }
- ///
- /// Update the navigation property multiValueExtendedProperties in groups
- ///
- /// 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(MultiValueLegacyExtendedProperty body, Action? requestConfiguration = default) {
-#nullable restore
-#else
- public RequestInformation ToPatchRequestInformation(MultiValueLegacyExtendedProperty body, Action requestConfiguration = default) {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = new RequestInformation {
- HttpMethod = Method.PATCH,
- UrlTemplate = UrlTemplate,
- PathParameters = PathParameters,
- };
- requestInfo.Headers.Add("Accept", "application/json");
- requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
- if (requestConfiguration != null) {
- var requestConfig = new MultiValueLegacyExtendedPropertyItemRequestBuilderPatchRequestConfiguration();
- requestConfiguration.Invoke(requestConfig);
- requestInfo.AddRequestOptions(requestConfig.Options);
- requestInfo.AddHeaders(requestConfig.Headers);
- }
- return requestInfo;
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- public class MultiValueLegacyExtendedPropertyItemRequestBuilderDeleteRequestConfiguration {
- /// Request headers
- public RequestHeaders Headers { get; set; }
- /// Request options
- public IList Options { get; set; }
- ///
- /// Instantiates a new MultiValueLegacyExtendedPropertyItemRequestBuilderDeleteRequestConfiguration and sets the default values.
- ///
- public MultiValueLegacyExtendedPropertyItemRequestBuilderDeleteRequestConfiguration() {
- Options = new List();
- Headers = new RequestHeaders();
- }
- }
- ///
- /// The collection of multi-value extended properties defined for the event. Read-only. Nullable.
- ///
- public class MultiValueLegacyExtendedPropertyItemRequestBuilderGetQueryParameters {
- /// 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 MultiValueLegacyExtendedPropertyItemRequestBuilderGetRequestConfiguration {
- /// Request headers
- public RequestHeaders Headers { get; set; }
- /// Request options
- public IList Options { get; set; }
- /// Request query parameters
- public MultiValueLegacyExtendedPropertyItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MultiValueLegacyExtendedPropertyItemRequestBuilderGetQueryParameters();
- ///
- /// Instantiates a new MultiValueLegacyExtendedPropertyItemRequestBuilderGetRequestConfiguration and sets the default values.
- ///
- public MultiValueLegacyExtendedPropertyItemRequestBuilderGetRequestConfiguration() {
- Options = new List();
- Headers = new RequestHeaders();
- }
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- public class MultiValueLegacyExtendedPropertyItemRequestBuilderPatchRequestConfiguration {
- /// Request headers
- public RequestHeaders Headers { get; set; }
- /// Request options
- public IList Options { get; set; }
- ///
- /// Instantiates a new MultiValueLegacyExtendedPropertyItemRequestBuilderPatchRequestConfiguration and sets the default values.
- ///
- public MultiValueLegacyExtendedPropertyItemRequestBuilderPatchRequestConfiguration() {
- Options = new List();
- Headers = new RequestHeaders();
- }
- }
- }
-}
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs
deleted file mode 100644
index c745cd8d463..00000000000
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs
+++ /dev/null
@@ -1,235 +0,0 @@
-using Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Instances.Item.MultiValueExtendedProperties.Count;
-using Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Instances.Item.MultiValueExtendedProperties.Item;
-using Microsoft.Graph.Models.ODataErrors;
-using Microsoft.Graph.Models;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Instances.Item.MultiValueExtendedProperties {
- ///
- /// Provides operations to manage the multiValueExtendedProperties property of the microsoft.graph.event entity.
- ///
- public class MultiValueExtendedPropertiesRequestBuilder : BaseRequestBuilder {
- /// Provides operations to count the resources in the collection.
- public CountRequestBuilder Count { get =>
- new CountRequestBuilder(PathParameters, RequestAdapter);
- }
- /// Provides operations to manage the multiValueExtendedProperties property of the microsoft.graph.event entity.
- public MultiValueLegacyExtendedPropertyItemRequestBuilder this[string position] { get {
- var urlTplParams = new Dictionary(PathParameters);
- if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("multiValueLegacyExtendedProperty%2Did", position);
- return new MultiValueLegacyExtendedPropertyItemRequestBuilder(urlTplParams, RequestAdapter);
- } }
- ///
- /// Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public MultiValueExtendedPropertiesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/multiValueExtendedProperties{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) {
- }
- ///
- /// Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public MultiValueExtendedPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/multiValueExtendedProperties{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) {
- }
- ///
- /// The collection of multi-value extended properties defined for the event. Read-only. Nullable.
- ///
- /// 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, MultiValueLegacyExtendedPropertyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
- }
- ///
- /// Create new navigation property to multiValueExtendedProperties for groups
- ///
- /// 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(MultiValueLegacyExtendedProperty body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
-#nullable restore
-#else
- public async Task PostAsync(MultiValueLegacyExtendedProperty 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, MultiValueLegacyExtendedProperty.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
- }
- ///
- /// The collection of multi-value extended properties defined for the event. Read-only. Nullable.
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_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 MultiValueExtendedPropertiesRequestBuilderGetRequestConfiguration();
- requestConfiguration.Invoke(requestConfig);
- requestInfo.AddQueryParameters(requestConfig.QueryParameters);
- requestInfo.AddRequestOptions(requestConfig.Options);
- requestInfo.AddHeaders(requestConfig.Headers);
- }
- return requestInfo;
- }
- ///
- /// Create new navigation property to multiValueExtendedProperties for groups
- ///
- /// 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(MultiValueLegacyExtendedProperty body, Action? requestConfiguration = default) {
-#nullable restore
-#else
- public RequestInformation ToPostRequestInformation(MultiValueLegacyExtendedProperty 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 MultiValueExtendedPropertiesRequestBuilderPostRequestConfiguration();
- requestConfiguration.Invoke(requestConfig);
- requestInfo.AddRequestOptions(requestConfig.Options);
- requestInfo.AddHeaders(requestConfig.Headers);
- }
- return requestInfo;
- }
- ///
- /// The collection of multi-value extended properties defined for the event. Read-only. Nullable.
- ///
- public class MultiValueExtendedPropertiesRequestBuilderGetQueryParameters {
- /// 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 MultiValueExtendedPropertiesRequestBuilderGetRequestConfiguration {
- /// Request headers
- public RequestHeaders Headers { get; set; }
- /// Request options
- public IList Options { get; set; }
- /// Request query parameters
- public MultiValueExtendedPropertiesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MultiValueExtendedPropertiesRequestBuilderGetQueryParameters();
- ///
- /// Instantiates a new multiValueExtendedPropertiesRequestBuilderGetRequestConfiguration and sets the default values.
- ///
- public MultiValueExtendedPropertiesRequestBuilderGetRequestConfiguration() {
- Options = new List();
- Headers = new RequestHeaders();
- }
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- public class MultiValueExtendedPropertiesRequestBuilderPostRequestConfiguration {
- /// Request headers
- public RequestHeaders Headers { get; set; }
- /// Request options
- public IList Options { get; set; }
- ///
- /// Instantiates a new multiValueExtendedPropertiesRequestBuilderPostRequestConfiguration and sets the default values.
- ///
- public MultiValueExtendedPropertiesRequestBuilderPostRequestConfiguration() {
- Options = new List();
- Headers = new RequestHeaders();
- }
- }
- }
-}
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SingleValueExtendedProperties/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SingleValueExtendedProperties/Count/CountRequestBuilder.cs
deleted file mode 100644
index ca4684e6aba..00000000000
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SingleValueExtendedProperties/Count/CountRequestBuilder.cs
+++ /dev/null
@@ -1,118 +0,0 @@
-using Microsoft.Graph.Models.ODataErrors;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Instances.Item.SingleValueExtendedProperties.Count {
- ///
- /// Provides operations to count the resources in the collection.
- ///
- public class CountRequestBuilder : BaseRequestBuilder {
- ///
- /// 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) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/singleValueExtendedProperties/$count{?%24search,%24filter}", pathParameters) {
- }
- ///
- /// 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) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/singleValueExtendedProperties/$count{?%24search,%24filter}", rawUrl) {
- }
- ///
- /// 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/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyItemRequestBuilder.cs
deleted file mode 100644
index 12b9c2f512b..00000000000
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SingleValueExtendedProperties/Item/SingleValueLegacyExtendedPropertyItemRequestBuilder.cs
+++ /dev/null
@@ -1,243 +0,0 @@
-using Microsoft.Graph.Models.ODataErrors;
-using Microsoft.Graph.Models;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Instances.Item.SingleValueExtendedProperties.Item {
- ///
- /// Provides operations to manage the singleValueExtendedProperties property of the microsoft.graph.event entity.
- ///
- public class SingleValueLegacyExtendedPropertyItemRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new SingleValueLegacyExtendedPropertyItemRequestBuilder and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public SingleValueLegacyExtendedPropertyItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/singleValueExtendedProperties/{singleValueLegacyExtendedProperty%2Did}{?%24select,%24expand}", pathParameters) {
- }
- ///
- /// Instantiates a new SingleValueLegacyExtendedPropertyItemRequestBuilder and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public SingleValueLegacyExtendedPropertyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/singleValueExtendedProperties/{singleValueLegacyExtendedProperty%2Did}{?%24select,%24expand}", rawUrl) {
- }
- ///
- /// Delete navigation property singleValueExtendedProperties for groups
- ///
- /// 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);
- }
- ///
- /// The collection of single-value extended properties defined for the event. Read-only. Nullable.
- ///
- /// 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, SingleValueLegacyExtendedProperty.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
- }
- ///
- /// Update the navigation property singleValueExtendedProperties in groups
- ///
- /// 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(SingleValueLegacyExtendedProperty body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
-#nullable restore
-#else
- public async Task PatchAsync(SingleValueLegacyExtendedProperty 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, SingleValueLegacyExtendedProperty.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
- }
- ///
- /// Delete navigation property singleValueExtendedProperties for groups
- ///
- /// Configuration 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 SingleValueLegacyExtendedPropertyItemRequestBuilderDeleteRequestConfiguration();
- requestConfiguration.Invoke(requestConfig);
- requestInfo.AddRequestOptions(requestConfig.Options);
- requestInfo.AddHeaders(requestConfig.Headers);
- }
- return requestInfo;
- }
- ///
- /// The collection of single-value extended properties defined for the event. Read-only. Nullable.
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_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 SingleValueLegacyExtendedPropertyItemRequestBuilderGetRequestConfiguration();
- requestConfiguration.Invoke(requestConfig);
- requestInfo.AddQueryParameters(requestConfig.QueryParameters);
- requestInfo.AddRequestOptions(requestConfig.Options);
- requestInfo.AddHeaders(requestConfig.Headers);
- }
- return requestInfo;
- }
- ///
- /// Update the navigation property singleValueExtendedProperties in groups
- ///
- /// 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(SingleValueLegacyExtendedProperty body, Action? requestConfiguration = default) {
-#nullable restore
-#else
- public RequestInformation ToPatchRequestInformation(SingleValueLegacyExtendedProperty body, Action requestConfiguration = default) {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = new RequestInformation {
- HttpMethod = Method.PATCH,
- UrlTemplate = UrlTemplate,
- PathParameters = PathParameters,
- };
- requestInfo.Headers.Add("Accept", "application/json");
- requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
- if (requestConfiguration != null) {
- var requestConfig = new SingleValueLegacyExtendedPropertyItemRequestBuilderPatchRequestConfiguration();
- requestConfiguration.Invoke(requestConfig);
- requestInfo.AddRequestOptions(requestConfig.Options);
- requestInfo.AddHeaders(requestConfig.Headers);
- }
- return requestInfo;
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- public class SingleValueLegacyExtendedPropertyItemRequestBuilderDeleteRequestConfiguration {
- /// Request headers
- public RequestHeaders Headers { get; set; }
- /// Request options
- public IList Options { get; set; }
- ///
- /// Instantiates a new SingleValueLegacyExtendedPropertyItemRequestBuilderDeleteRequestConfiguration and sets the default values.
- ///
- public SingleValueLegacyExtendedPropertyItemRequestBuilderDeleteRequestConfiguration() {
- Options = new List();
- Headers = new RequestHeaders();
- }
- }
- ///
- /// The collection of single-value extended properties defined for the event. Read-only. Nullable.
- ///
- public class SingleValueLegacyExtendedPropertyItemRequestBuilderGetQueryParameters {
- /// 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 SingleValueLegacyExtendedPropertyItemRequestBuilderGetRequestConfiguration {
- /// Request headers
- public RequestHeaders Headers { get; set; }
- /// Request options
- public IList Options { get; set; }
- /// Request query parameters
- public SingleValueLegacyExtendedPropertyItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new SingleValueLegacyExtendedPropertyItemRequestBuilderGetQueryParameters();
- ///
- /// Instantiates a new SingleValueLegacyExtendedPropertyItemRequestBuilderGetRequestConfiguration and sets the default values.
- ///
- public SingleValueLegacyExtendedPropertyItemRequestBuilderGetRequestConfiguration() {
- Options = new List();
- Headers = new RequestHeaders();
- }
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- public class SingleValueLegacyExtendedPropertyItemRequestBuilderPatchRequestConfiguration {
- /// Request headers
- public RequestHeaders Headers { get; set; }
- /// Request options
- public IList Options { get; set; }
- ///
- /// Instantiates a new SingleValueLegacyExtendedPropertyItemRequestBuilderPatchRequestConfiguration and sets the default values.
- ///
- public SingleValueLegacyExtendedPropertyItemRequestBuilderPatchRequestConfiguration() {
- Options = new List();
- Headers = new RequestHeaders();
- }
- }
- }
-}
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs
deleted file mode 100644
index 258710a3ba0..00000000000
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/Instances/Item/SingleValueExtendedProperties/SingleValueExtendedPropertiesRequestBuilder.cs
+++ /dev/null
@@ -1,235 +0,0 @@
-using Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Instances.Item.SingleValueExtendedProperties.Count;
-using Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Instances.Item.SingleValueExtendedProperties.Item;
-using Microsoft.Graph.Models.ODataErrors;
-using Microsoft.Graph.Models;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.Instances.Item.SingleValueExtendedProperties {
- ///
- /// Provides operations to manage the singleValueExtendedProperties property of the microsoft.graph.event entity.
- ///
- public class SingleValueExtendedPropertiesRequestBuilder : BaseRequestBuilder {
- /// Provides operations to count the resources in the collection.
- public CountRequestBuilder Count { get =>
- new CountRequestBuilder(PathParameters, RequestAdapter);
- }
- /// Provides operations to manage the singleValueExtendedProperties property of the microsoft.graph.event entity.
- public SingleValueLegacyExtendedPropertyItemRequestBuilder this[string position] { get {
- var urlTplParams = new Dictionary(PathParameters);
- if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("singleValueLegacyExtendedProperty%2Did", position);
- return new SingleValueLegacyExtendedPropertyItemRequestBuilder(urlTplParams, RequestAdapter);
- } }
- ///
- /// Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public SingleValueExtendedPropertiesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/singleValueExtendedProperties{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) {
- }
- ///
- /// Instantiates a new SingleValueExtendedPropertiesRequestBuilder and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public SingleValueExtendedPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/instances/{event%2Did1}/singleValueExtendedProperties{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) {
- }
- ///
- /// The collection of single-value extended properties defined for the event. Read-only. Nullable.
- ///
- /// 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, SingleValueLegacyExtendedPropertyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
- }
- ///
- /// Create new navigation property to singleValueExtendedProperties for groups
- ///
- /// 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(SingleValueLegacyExtendedProperty body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
-#nullable restore
-#else
- public async Task PostAsync(SingleValueLegacyExtendedProperty 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, SingleValueLegacyExtendedProperty.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
- }
- ///
- /// The collection of single-value extended properties defined for the event. Read-only. Nullable.
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_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 SingleValueExtendedPropertiesRequestBuilderGetRequestConfiguration();
- requestConfiguration.Invoke(requestConfig);
- requestInfo.AddQueryParameters(requestConfig.QueryParameters);
- requestInfo.AddRequestOptions(requestConfig.Options);
- requestInfo.AddHeaders(requestConfig.Headers);
- }
- return requestInfo;
- }
- ///
- /// Create new navigation property to singleValueExtendedProperties for groups
- ///
- /// 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(SingleValueLegacyExtendedProperty body, Action? requestConfiguration = default) {
-#nullable restore
-#else
- public RequestInformation ToPostRequestInformation(SingleValueLegacyExtendedProperty 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 SingleValueExtendedPropertiesRequestBuilderPostRequestConfiguration();
- requestConfiguration.Invoke(requestConfig);
- requestInfo.AddRequestOptions(requestConfig.Options);
- requestInfo.AddHeaders(requestConfig.Headers);
- }
- return requestInfo;
- }
- ///
- /// The collection of single-value extended properties defined for the event. Read-only. Nullable.
- ///
- public class SingleValueExtendedPropertiesRequestBuilderGetQueryParameters {
- /// 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 SingleValueExtendedPropertiesRequestBuilderGetRequestConfiguration {
- /// Request headers
- public RequestHeaders Headers { get; set; }
- /// Request options
- public IList Options { get; set; }
- /// Request query parameters
- public SingleValueExtendedPropertiesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new SingleValueExtendedPropertiesRequestBuilderGetQueryParameters();
- ///
- /// Instantiates a new singleValueExtendedPropertiesRequestBuilderGetRequestConfiguration and sets the default values.
- ///
- public SingleValueExtendedPropertiesRequestBuilderGetRequestConfiguration() {
- Options = new List();
- Headers = new RequestHeaders();
- }
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- public class SingleValueExtendedPropertiesRequestBuilderPostRequestConfiguration {
- /// Request headers
- public RequestHeaders Headers { get; set; }
- /// Request options
- public IList Options { get; set; }
- ///
- /// Instantiates a new singleValueExtendedPropertiesRequestBuilderPostRequestConfiguration and sets the default values.
- ///
- public SingleValueExtendedPropertiesRequestBuilderPostRequestConfiguration() {
- Options = new List();
- Headers = new RequestHeaders();
- }
- }
- }
-}
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/MultiValueExtendedProperties/Count/CountRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/MultiValueExtendedProperties/Count/CountRequestBuilder.cs
deleted file mode 100644
index 467c625a4b0..00000000000
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/MultiValueExtendedProperties/Count/CountRequestBuilder.cs
+++ /dev/null
@@ -1,118 +0,0 @@
-using Microsoft.Graph.Models.ODataErrors;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.MultiValueExtendedProperties.Count {
- ///
- /// Provides operations to count the resources in the collection.
- ///
- public class CountRequestBuilder : BaseRequestBuilder {
- ///
- /// 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) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/multiValueExtendedProperties/$count{?%24search,%24filter}", pathParameters) {
- }
- ///
- /// 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) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/multiValueExtendedProperties/$count{?%24search,%24filter}", rawUrl) {
- }
- ///
- /// 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/Groups/Item/Calendar/CalendarView/Item/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyItemRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyItemRequestBuilder.cs
deleted file mode 100644
index 3d4a2f3e5bc..00000000000
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/MultiValueExtendedProperties/Item/MultiValueLegacyExtendedPropertyItemRequestBuilder.cs
+++ /dev/null
@@ -1,243 +0,0 @@
-using Microsoft.Graph.Models.ODataErrors;
-using Microsoft.Graph.Models;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.MultiValueExtendedProperties.Item {
- ///
- /// Provides operations to manage the multiValueExtendedProperties property of the microsoft.graph.event entity.
- ///
- public class MultiValueLegacyExtendedPropertyItemRequestBuilder : BaseRequestBuilder {
- ///
- /// Instantiates a new MultiValueLegacyExtendedPropertyItemRequestBuilder and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public MultiValueLegacyExtendedPropertyItemRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty%2Did}{?%24select,%24expand}", pathParameters) {
- }
- ///
- /// Instantiates a new MultiValueLegacyExtendedPropertyItemRequestBuilder and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public MultiValueLegacyExtendedPropertyItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/multiValueExtendedProperties/{multiValueLegacyExtendedProperty%2Did}{?%24select,%24expand}", rawUrl) {
- }
- ///
- /// Delete navigation property multiValueExtendedProperties for groups
- ///
- /// 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);
- }
- ///
- /// The collection of multi-value extended properties defined for the event. Read-only. Nullable.
- ///
- /// 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, MultiValueLegacyExtendedProperty.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
- }
- ///
- /// Update the navigation property multiValueExtendedProperties in groups
- ///
- /// 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(MultiValueLegacyExtendedProperty body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
-#nullable restore
-#else
- public async Task PatchAsync(MultiValueLegacyExtendedProperty 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, MultiValueLegacyExtendedProperty.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
- }
- ///
- /// Delete navigation property multiValueExtendedProperties for groups
- ///
- /// Configuration 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 MultiValueLegacyExtendedPropertyItemRequestBuilderDeleteRequestConfiguration();
- requestConfiguration.Invoke(requestConfig);
- requestInfo.AddRequestOptions(requestConfig.Options);
- requestInfo.AddHeaders(requestConfig.Headers);
- }
- return requestInfo;
- }
- ///
- /// The collection of multi-value extended properties defined for the event. Read-only. Nullable.
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_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 MultiValueLegacyExtendedPropertyItemRequestBuilderGetRequestConfiguration();
- requestConfiguration.Invoke(requestConfig);
- requestInfo.AddQueryParameters(requestConfig.QueryParameters);
- requestInfo.AddRequestOptions(requestConfig.Options);
- requestInfo.AddHeaders(requestConfig.Headers);
- }
- return requestInfo;
- }
- ///
- /// Update the navigation property multiValueExtendedProperties in groups
- ///
- /// 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(MultiValueLegacyExtendedProperty body, Action? requestConfiguration = default) {
-#nullable restore
-#else
- public RequestInformation ToPatchRequestInformation(MultiValueLegacyExtendedProperty body, Action requestConfiguration = default) {
-#endif
- _ = body ?? throw new ArgumentNullException(nameof(body));
- var requestInfo = new RequestInformation {
- HttpMethod = Method.PATCH,
- UrlTemplate = UrlTemplate,
- PathParameters = PathParameters,
- };
- requestInfo.Headers.Add("Accept", "application/json");
- requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body);
- if (requestConfiguration != null) {
- var requestConfig = new MultiValueLegacyExtendedPropertyItemRequestBuilderPatchRequestConfiguration();
- requestConfiguration.Invoke(requestConfig);
- requestInfo.AddRequestOptions(requestConfig.Options);
- requestInfo.AddHeaders(requestConfig.Headers);
- }
- return requestInfo;
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- public class MultiValueLegacyExtendedPropertyItemRequestBuilderDeleteRequestConfiguration {
- /// Request headers
- public RequestHeaders Headers { get; set; }
- /// Request options
- public IList Options { get; set; }
- ///
- /// Instantiates a new MultiValueLegacyExtendedPropertyItemRequestBuilderDeleteRequestConfiguration and sets the default values.
- ///
- public MultiValueLegacyExtendedPropertyItemRequestBuilderDeleteRequestConfiguration() {
- Options = new List();
- Headers = new RequestHeaders();
- }
- }
- ///
- /// The collection of multi-value extended properties defined for the event. Read-only. Nullable.
- ///
- public class MultiValueLegacyExtendedPropertyItemRequestBuilderGetQueryParameters {
- /// 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 MultiValueLegacyExtendedPropertyItemRequestBuilderGetRequestConfiguration {
- /// Request headers
- public RequestHeaders Headers { get; set; }
- /// Request options
- public IList Options { get; set; }
- /// Request query parameters
- public MultiValueLegacyExtendedPropertyItemRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MultiValueLegacyExtendedPropertyItemRequestBuilderGetQueryParameters();
- ///
- /// Instantiates a new MultiValueLegacyExtendedPropertyItemRequestBuilderGetRequestConfiguration and sets the default values.
- ///
- public MultiValueLegacyExtendedPropertyItemRequestBuilderGetRequestConfiguration() {
- Options = new List();
- Headers = new RequestHeaders();
- }
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- public class MultiValueLegacyExtendedPropertyItemRequestBuilderPatchRequestConfiguration {
- /// Request headers
- public RequestHeaders Headers { get; set; }
- /// Request options
- public IList Options { get; set; }
- ///
- /// Instantiates a new MultiValueLegacyExtendedPropertyItemRequestBuilderPatchRequestConfiguration and sets the default values.
- ///
- public MultiValueLegacyExtendedPropertyItemRequestBuilderPatchRequestConfiguration() {
- Options = new List();
- Headers = new RequestHeaders();
- }
- }
- }
-}
diff --git a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs b/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs
deleted file mode 100644
index 5f47d7dae62..00000000000
--- a/src/Microsoft.Graph/Generated/Groups/Item/Calendar/CalendarView/Item/MultiValueExtendedProperties/MultiValueExtendedPropertiesRequestBuilder.cs
+++ /dev/null
@@ -1,235 +0,0 @@
-using Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.MultiValueExtendedProperties.Count;
-using Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.MultiValueExtendedProperties.Item;
-using Microsoft.Graph.Models.ODataErrors;
-using Microsoft.Graph.Models;
-using Microsoft.Kiota.Abstractions.Serialization;
-using Microsoft.Kiota.Abstractions;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Threading.Tasks;
-using System.Threading;
-using System;
-namespace Microsoft.Graph.Groups.Item.Calendar.CalendarView.Item.MultiValueExtendedProperties {
- ///
- /// Provides operations to manage the multiValueExtendedProperties property of the microsoft.graph.event entity.
- ///
- public class MultiValueExtendedPropertiesRequestBuilder : BaseRequestBuilder {
- /// Provides operations to count the resources in the collection.
- public CountRequestBuilder Count { get =>
- new CountRequestBuilder(PathParameters, RequestAdapter);
- }
- /// Provides operations to manage the multiValueExtendedProperties property of the microsoft.graph.event entity.
- public MultiValueLegacyExtendedPropertyItemRequestBuilder this[string position] { get {
- var urlTplParams = new Dictionary(PathParameters);
- if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("multiValueLegacyExtendedProperty%2Did", position);
- return new MultiValueLegacyExtendedPropertyItemRequestBuilder(urlTplParams, RequestAdapter);
- } }
- ///
- /// Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values.
- ///
- /// Path parameters for the request
- /// The request adapter to use to execute the requests.
- public MultiValueExtendedPropertiesRequestBuilder(Dictionary pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/multiValueExtendedProperties{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) {
- }
- ///
- /// Instantiates a new MultiValueExtendedPropertiesRequestBuilder and sets the default values.
- ///
- /// The raw URL to use for the request builder.
- /// The request adapter to use to execute the requests.
- public MultiValueExtendedPropertiesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/groups/{group%2Did}/calendar/calendarView/{event%2Did}/multiValueExtendedProperties{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", rawUrl) {
- }
- ///
- /// The collection of multi-value extended properties defined for the event. Read-only. Nullable.
- ///
- /// 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, MultiValueLegacyExtendedPropertyCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
- }
- ///
- /// Create new navigation property to multiValueExtendedProperties for groups
- ///
- /// 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(MultiValueLegacyExtendedProperty body, Action? requestConfiguration = default, CancellationToken cancellationToken = default) {
-#nullable restore
-#else
- public async Task PostAsync(MultiValueLegacyExtendedProperty 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, MultiValueLegacyExtendedProperty.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
- }
- ///
- /// The collection of multi-value extended properties defined for the event. Read-only. Nullable.
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
-#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_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 MultiValueExtendedPropertiesRequestBuilderGetRequestConfiguration();
- requestConfiguration.Invoke(requestConfig);
- requestInfo.AddQueryParameters(requestConfig.QueryParameters);
- requestInfo.AddRequestOptions(requestConfig.Options);
- requestInfo.AddHeaders(requestConfig.Headers);
- }
- return requestInfo;
- }
- ///
- /// Create new navigation property to multiValueExtendedProperties for groups
- ///
- /// 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(MultiValueLegacyExtendedProperty body, Action? requestConfiguration = default) {
-#nullable restore
-#else
- public RequestInformation ToPostRequestInformation(MultiValueLegacyExtendedProperty 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 MultiValueExtendedPropertiesRequestBuilderPostRequestConfiguration();
- requestConfiguration.Invoke(requestConfig);
- requestInfo.AddRequestOptions(requestConfig.Options);
- requestInfo.AddHeaders(requestConfig.Headers);
- }
- return requestInfo;
- }
- ///
- /// The collection of multi-value extended properties defined for the event. Read-only. Nullable.
- ///
- public class MultiValueExtendedPropertiesRequestBuilderGetQueryParameters {
- /// 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 MultiValueExtendedPropertiesRequestBuilderGetRequestConfiguration {
- /// Request headers
- public RequestHeaders Headers { get; set; }
- /// Request options
- public IList Options { get; set; }
- /// Request query parameters
- public MultiValueExtendedPropertiesRequestBuilderGetQueryParameters QueryParameters { get; set; } = new MultiValueExtendedPropertiesRequestBuilderGetQueryParameters();
- ///
- /// Instantiates a new multiValueExtendedPropertiesRequestBuilderGetRequestConfiguration and sets the default values.
- ///
- public MultiValueExtendedPropertiesRequestBuilderGetRequestConfiguration() {
- Options = new List();
- Headers = new RequestHeaders();
- }
- }
- ///
- /// Configuration for the request such as headers, query parameters, and middleware options.
- ///
- public class MultiValueExtendedPropertiesRequestBuilderPostRequestConfiguration {
- /// Request headers
- public RequestHeaders Headers { get; set; }
- /// Request options
- public IList Options { get; set; }
- ///