Skip to content

Commit

Permalink
Merge pull request #1885 from microsoftgraph/kiota/v1.0/pipelinebuild…
Browse files Browse the repository at this point in the history
…/114201

Generated  models and request builders
  • Loading branch information
andrueastman authored May 10, 2023
2 parents c6e315c + 3abea18 commit 81f0fc5
Show file tree
Hide file tree
Showing 564 changed files with 968 additions and 88,234 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -38,14 +41,26 @@ public class DeletedItemsRequestBuilder : BaseRequestBuilder {
public GetByIdsRequestBuilder GetByIds { get =>
new GetByIdsRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Casts the previous resource to administrativeUnit.</summary>
public GraphAdministrativeUnitRequestBuilder GraphAdministrativeUnit { get =>
new GraphAdministrativeUnitRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Casts the previous resource to application.</summary>
public GraphApplicationRequestBuilder GraphApplication { get =>
new GraphApplicationRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Casts the previous resource to device.</summary>
public GraphDeviceRequestBuilder GraphDevice { get =>
new GraphDeviceRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Casts the previous resource to group.</summary>
public GraphGroupRequestBuilder GraphGroup { get =>
new GraphGroupRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Casts the previous resource to servicePrincipal.</summary>
public GraphServicePrincipalRequestBuilder GraphServicePrincipal { get =>
new GraphServicePrincipalRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Casts the previous resource to user.</summary>
public GraphUserRequestBuilder GraphUser { get =>
new GraphUserRequestBuilder(PathParameters, RequestAdapter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/// <summary>
/// Provides operations to count the resources in the collection.
/// </summary>
Expand All @@ -17,14 +17,14 @@ public class CountRequestBuilder : BaseRequestBuilder {
/// </summary>
/// <param name="pathParameters">Path parameters for the request</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public CountRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/events/{event%2Did}/multiValueExtendedProperties/$count{?%24search,%24filter}", pathParameters) {
public CountRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/graph.administrativeUnit/$count{?%24search,%24filter}", pathParameters) {
}
/// <summary>
/// Instantiates a new CountRequestBuilder and sets the default values.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
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) {
}
/// <summary>
/// Get the number of the resource
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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 {
/// <summary>
/// Provides operations to manage the incompatibleGroups property of the microsoft.graph.accessPackage entity.
/// Casts the previous resource to administrativeUnit.
/// </summary>
public class IncompatibleGroupsRequestBuilder : BaseRequestBuilder {
public class GraphAdministrativeUnitRequestBuilder : BaseRequestBuilder {
/// <summary>Provides operations to count the resources in the collection.</summary>
public CountRequestBuilder Count { get =>
new CountRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to manage the collection of identityGovernance entities.</summary>
public RefRequestBuilder Ref { get =>
new RefRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Gets an item from the Microsoft.Graph.identityGovernance.entitlementManagement.catalogs.item.accessPackages.item.incompatibleGroups.item collection</summary>
public GroupItemRequestBuilder this[string position] { get {
var urlTplParams = new Dictionary<string, object>(PathParameters);
if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("group%2Did", position);
return new GroupItemRequestBuilder(urlTplParams, RequestAdapter);
} }
/// <summary>
/// Instantiates a new IncompatibleGroupsRequestBuilder and sets the default values.
/// Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values.
/// </summary>
/// <param name="pathParameters">Path parameters for the request</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public IncompatibleGroupsRequestBuilder(Dictionary<string, object> 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<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/graph.administrativeUnit{?%24top,%24skip,%24search,%24filter,%24count,%24orderby,%24select,%24expand}", pathParameters) {
}
/// <summary>
/// Instantiates a new IncompatibleGroupsRequestBuilder and sets the default values.
/// Instantiates a new GraphAdministrativeUnitRequestBuilder and sets the default values.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
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) {
}
/// <summary>
/// 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
/// </summary>
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task<GroupCollectionResponse?> GetAsync(Action<IncompatibleGroupsRequestBuilderGetRequestConfiguration>? requestConfiguration = default, CancellationToken cancellationToken = default) {
public async Task<AdministrativeUnitCollectionResponse?> GetAsync(Action<GraphAdministrativeUnitRequestBuilderGetRequestConfiguration>? requestConfiguration = default, CancellationToken cancellationToken = default) {
#nullable restore
#else
public async Task<GroupCollectionResponse> GetAsync(Action<IncompatibleGroupsRequestBuilderGetRequestConfiguration> requestConfiguration = default, CancellationToken cancellationToken = default) {
public async Task<AdministrativeUnitCollectionResponse> GetAsync(Action<GraphAdministrativeUnitRequestBuilderGetRequestConfiguration> requestConfiguration = default, CancellationToken cancellationToken = default) {
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
{"5XX", ODataError.CreateFromDiscriminatorValue},
};
return await RequestAdapter.SendAsync<GroupCollectionResponse>(requestInfo, GroupCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
return await RequestAdapter.SendAsync<AdministrativeUnitCollectionResponse>(requestInfo, AdministrativeUnitCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken);
}
/// <summary>
/// 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
/// </summary>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public RequestInformation ToGetRequestInformation(Action<IncompatibleGroupsRequestBuilderGetRequestConfiguration>? requestConfiguration = default) {
public RequestInformation ToGetRequestInformation(Action<GraphAdministrativeUnitRequestBuilderGetRequestConfiguration>? requestConfiguration = default) {
#nullable restore
#else
public RequestInformation ToGetRequestInformation(Action<IncompatibleGroupsRequestBuilderGetRequestConfiguration> requestConfiguration = default) {
public RequestInformation ToGetRequestInformation(Action<GraphAdministrativeUnitRequestBuilderGetRequestConfiguration> requestConfiguration = default) {
#endif
var requestInfo = new RequestInformation {
HttpMethod = Method.GET,
Expand All @@ -81,7 +69,7 @@ public RequestInformation ToGetRequestInformation(Action<IncompatibleGroupsReque
};
requestInfo.Headers.Add("Accept", "application/json");
if (requestConfiguration != null) {
var requestConfig = new IncompatibleGroupsRequestBuilderGetRequestConfiguration();
var requestConfig = new GraphAdministrativeUnitRequestBuilderGetRequestConfiguration();
requestConfiguration.Invoke(requestConfig);
requestInfo.AddQueryParameters(requestConfig.QueryParameters);
requestInfo.AddRequestOptions(requestConfig.Options);
Expand All @@ -90,9 +78,9 @@ public RequestInformation ToGetRequestInformation(Action<IncompatibleGroupsReque
return requestInfo;
}
/// <summary>
/// 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
/// </summary>
public class IncompatibleGroupsRequestBuilderGetQueryParameters {
public class GraphAdministrativeUnitRequestBuilderGetQueryParameters {
/// <summary>Include count of items</summary>
[QueryParameter("%24count")]
public bool? Count { get; set; }
Expand Down Expand Up @@ -156,17 +144,17 @@ public class IncompatibleGroupsRequestBuilderGetQueryParameters {
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class IncompatibleGroupsRequestBuilderGetRequestConfiguration {
public class GraphAdministrativeUnitRequestBuilderGetRequestConfiguration {
/// <summary>Request headers</summary>
public RequestHeaders Headers { get; set; }
/// <summary>Request options</summary>
public IList<IRequestOption> Options { get; set; }
/// <summary>Request query parameters</summary>
public IncompatibleGroupsRequestBuilderGetQueryParameters QueryParameters { get; set; } = new IncompatibleGroupsRequestBuilderGetQueryParameters();
public GraphAdministrativeUnitRequestBuilderGetQueryParameters QueryParameters { get; set; } = new GraphAdministrativeUnitRequestBuilderGetQueryParameters();
/// <summary>
/// Instantiates a new incompatibleGroupsRequestBuilderGetRequestConfiguration and sets the default values.
/// Instantiates a new graphAdministrativeUnitRequestBuilderGetRequestConfiguration and sets the default values.
/// </summary>
public IncompatibleGroupsRequestBuilderGetRequestConfiguration() {
public GraphAdministrativeUnitRequestBuilderGetRequestConfiguration() {
Options = new List<IRequestOption>();
Headers = new RequestHeaders();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/// <summary>
/// Provides operations to count the resources in the collection.
/// </summary>
Expand All @@ -17,14 +17,14 @@ public class CountRequestBuilder : BaseRequestBuilder {
/// </summary>
/// <param name="pathParameters">Path parameters for the request</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public CountRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me/calendar/multiValueExtendedProperties/$count{?%24search,%24filter}", pathParameters) {
public CountRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/directory/deletedItems/graph.device/$count{?%24search,%24filter}", pathParameters) {
}
/// <summary>
/// Instantiates a new CountRequestBuilder and sets the default values.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
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) {
}
/// <summary>
/// Get the number of the resource
Expand Down
Loading

0 comments on commit 81f0fc5

Please sign in to comment.