Skip to content

Commit 501496c

Browse files
microsoft-graph-devx-bot[bot]Microsoft Graph DevX Tooling
andauthored
feat(generation): update request builders and models (#1071)
Update generated files with build 204842 Co-authored-by: Microsoft Graph DevX Tooling <[email protected]>
1 parent 3d6d4f1 commit 501496c

File tree

945 files changed

+114437
-863
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

945 files changed

+114437
-863
lines changed
Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
// <auto-generated/>
2+
#pragma warning disable CS0618
3+
using Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.Count;
4+
using Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.Item;
5+
using Microsoft.Graph.Beta.Models.ODataErrors;
6+
using Microsoft.Graph.Beta.Models;
7+
using Microsoft.Kiota.Abstractions.Extensions;
8+
using Microsoft.Kiota.Abstractions.Serialization;
9+
using Microsoft.Kiota.Abstractions;
10+
using System.Collections.Generic;
11+
using System.IO;
12+
using System.Threading.Tasks;
13+
using System.Threading;
14+
using System;
15+
namespace Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests
16+
{
17+
/// <summary>
18+
/// Provides operations to manage the agentCardManifests property of the microsoft.graph.agentRegistry entity.
19+
/// </summary>
20+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
21+
public partial class AgentCardManifestsRequestBuilder : BaseRequestBuilder
22+
{
23+
/// <summary>Provides operations to count the resources in the collection.</summary>
24+
public global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.Count.CountRequestBuilder Count
25+
{
26+
get => new global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.Count.CountRequestBuilder(PathParameters, RequestAdapter);
27+
}
28+
/// <summary>Provides operations to manage the agentCardManifests property of the microsoft.graph.agentRegistry entity.</summary>
29+
/// <param name="position">The unique identifier of agentCardManifest</param>
30+
/// <returns>A <see cref="global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.Item.AgentCardManifestItemRequestBuilder"/></returns>
31+
public global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.Item.AgentCardManifestItemRequestBuilder this[string position]
32+
{
33+
get
34+
{
35+
var urlTplParams = new Dictionary<string, object>(PathParameters);
36+
urlTplParams.Add("agentCardManifest%2Did", position);
37+
return new global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.Item.AgentCardManifestItemRequestBuilder(urlTplParams, RequestAdapter);
38+
}
39+
}
40+
/// <summary>
41+
/// Instantiates a new <see cref="global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.AgentCardManifestsRequestBuilder"/> and sets the default values.
42+
/// </summary>
43+
/// <param name="pathParameters">Path parameters for the request</param>
44+
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
45+
public AgentCardManifestsRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/agentRegistry/agentCardManifests{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
46+
{
47+
}
48+
/// <summary>
49+
/// Instantiates a new <see cref="global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.AgentCardManifestsRequestBuilder"/> and sets the default values.
50+
/// </summary>
51+
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
52+
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
53+
public AgentCardManifestsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/agentRegistry/agentCardManifests{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", rawUrl)
54+
{
55+
}
56+
/// <summary>
57+
/// Retrieve all agent card manifests for the tenant.
58+
/// Find more info here <see href="https://learn.microsoft.com/graph/api/agentregistry-list-agentcardmanifests?view=graph-rest-beta" />
59+
/// </summary>
60+
/// <returns>A <see cref="global::Microsoft.Graph.Beta.Models.AgentCardManifestCollectionResponse"/></returns>
61+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
62+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
63+
/// <exception cref="global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
64+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
65+
#nullable enable
66+
public async Task<global::Microsoft.Graph.Beta.Models.AgentCardManifestCollectionResponse?> GetAsync(Action<RequestConfiguration<global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.AgentCardManifestsRequestBuilder.AgentCardManifestsRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
67+
{
68+
#nullable restore
69+
#else
70+
public async Task<global::Microsoft.Graph.Beta.Models.AgentCardManifestCollectionResponse> GetAsync(Action<RequestConfiguration<global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.AgentCardManifestsRequestBuilder.AgentCardManifestsRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
71+
{
72+
#endif
73+
var requestInfo = ToGetRequestInformation(requestConfiguration);
74+
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
75+
{
76+
{ "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
77+
};
78+
return await RequestAdapter.SendAsync<global::Microsoft.Graph.Beta.Models.AgentCardManifestCollectionResponse>(requestInfo, global::Microsoft.Graph.Beta.Models.AgentCardManifestCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
79+
}
80+
/// <summary>
81+
/// Retrieve all agent card manifests for the tenant.
82+
/// </summary>
83+
/// <returns>A <see cref="RequestInformation"/></returns>
84+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
85+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
86+
#nullable enable
87+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.AgentCardManifestsRequestBuilder.AgentCardManifestsRequestBuilderGetQueryParameters>>? requestConfiguration = default)
88+
{
89+
#nullable restore
90+
#else
91+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.AgentCardManifestsRequestBuilder.AgentCardManifestsRequestBuilderGetQueryParameters>> requestConfiguration = default)
92+
{
93+
#endif
94+
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
95+
requestInfo.Configure(requestConfiguration);
96+
requestInfo.Headers.TryAdd("Accept", "application/json");
97+
return requestInfo;
98+
}
99+
/// <summary>
100+
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
101+
/// </summary>
102+
/// <returns>A <see cref="global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.AgentCardManifestsRequestBuilder"/></returns>
103+
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
104+
public global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.AgentCardManifestsRequestBuilder WithUrl(string rawUrl)
105+
{
106+
return new global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.AgentCardManifestsRequestBuilder(rawUrl, RequestAdapter);
107+
}
108+
/// <summary>
109+
/// Retrieve all agent card manifests for the tenant.
110+
/// </summary>
111+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
112+
public partial class AgentCardManifestsRequestBuilderGetQueryParameters
113+
{
114+
/// <summary>Include count of items</summary>
115+
[QueryParameter("%24count")]
116+
public bool? Count { get; set; }
117+
/// <summary>Expand related entities</summary>
118+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
119+
#nullable enable
120+
[QueryParameter("%24expand")]
121+
public string[]? Expand { get; set; }
122+
#nullable restore
123+
#else
124+
[QueryParameter("%24expand")]
125+
public string[] Expand { get; set; }
126+
#endif
127+
/// <summary>Filter items by property values</summary>
128+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
129+
#nullable enable
130+
[QueryParameter("%24filter")]
131+
public string? Filter { get; set; }
132+
#nullable restore
133+
#else
134+
[QueryParameter("%24filter")]
135+
public string Filter { get; set; }
136+
#endif
137+
/// <summary>Order items by property values</summary>
138+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
139+
#nullable enable
140+
[QueryParameter("%24orderby")]
141+
public string[]? Orderby { get; set; }
142+
#nullable restore
143+
#else
144+
[QueryParameter("%24orderby")]
145+
public string[] Orderby { get; set; }
146+
#endif
147+
/// <summary>Search items by search phrases</summary>
148+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
149+
#nullable enable
150+
[QueryParameter("%24search")]
151+
public string? Search { get; set; }
152+
#nullable restore
153+
#else
154+
[QueryParameter("%24search")]
155+
public string Search { get; set; }
156+
#endif
157+
/// <summary>Select properties to be returned</summary>
158+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
159+
#nullable enable
160+
[QueryParameter("%24select")]
161+
public string[]? Select { get; set; }
162+
#nullable restore
163+
#else
164+
[QueryParameter("%24select")]
165+
public string[] Select { get; set; }
166+
#endif
167+
/// <summary>Skip the first n items</summary>
168+
[QueryParameter("%24skip")]
169+
public int? Skip { get; set; }
170+
/// <summary>Show only the first n items</summary>
171+
[QueryParameter("%24top")]
172+
public int? Top { get; set; }
173+
}
174+
/// <summary>
175+
/// Configuration for the request such as headers, query parameters, and middleware options.
176+
/// </summary>
177+
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
178+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
179+
public partial class AgentCardManifestsRequestBuilderGetRequestConfiguration : RequestConfiguration<global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.AgentCardManifestsRequestBuilder.AgentCardManifestsRequestBuilderGetQueryParameters>
180+
{
181+
}
182+
}
183+
}
184+
#pragma warning restore CS0618
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
// <auto-generated/>
2+
#pragma warning disable CS0618
3+
using Microsoft.Graph.Beta.Models.ODataErrors;
4+
using Microsoft.Kiota.Abstractions.Extensions;
5+
using Microsoft.Kiota.Abstractions.Serialization;
6+
using Microsoft.Kiota.Abstractions;
7+
using System.Collections.Generic;
8+
using System.IO;
9+
using System.Threading.Tasks;
10+
using System.Threading;
11+
using System;
12+
namespace Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.Count
13+
{
14+
/// <summary>
15+
/// Provides operations to count the resources in the collection.
16+
/// </summary>
17+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
18+
public partial class CountRequestBuilder : BaseRequestBuilder
19+
{
20+
/// <summary>
21+
/// Instantiates a new <see cref="global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.Count.CountRequestBuilder"/> and sets the default values.
22+
/// </summary>
23+
/// <param name="pathParameters">Path parameters for the request</param>
24+
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
25+
public CountRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/agentRegistry/agentCardManifests/$count{?%24filter,%24search}", pathParameters)
26+
{
27+
}
28+
/// <summary>
29+
/// Instantiates a new <see cref="global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.Count.CountRequestBuilder"/> and sets the default values.
30+
/// </summary>
31+
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
32+
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
33+
public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/agentRegistry/agentCardManifests/$count{?%24filter,%24search}", rawUrl)
34+
{
35+
}
36+
/// <summary>
37+
/// Get the number of the resource
38+
/// </summary>
39+
/// <returns>A <see cref="int"/></returns>
40+
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
41+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
42+
/// <exception cref="global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
43+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
44+
#nullable enable
45+
public async Task<int?> GetAsync(Action<RequestConfiguration<global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
46+
{
47+
#nullable restore
48+
#else
49+
public async Task<int?> GetAsync(Action<RequestConfiguration<global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
50+
{
51+
#endif
52+
var requestInfo = ToGetRequestInformation(requestConfiguration);
53+
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
54+
{
55+
{ "XXX", global::Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
56+
};
57+
return await RequestAdapter.SendPrimitiveAsync<int?>(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
58+
}
59+
/// <summary>
60+
/// Get the number of the resource
61+
/// </summary>
62+
/// <returns>A <see cref="RequestInformation"/></returns>
63+
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
64+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
65+
#nullable enable
66+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters>>? requestConfiguration = default)
67+
{
68+
#nullable restore
69+
#else
70+
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters>> requestConfiguration = default)
71+
{
72+
#endif
73+
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
74+
requestInfo.Configure(requestConfiguration);
75+
requestInfo.Headers.TryAdd("Accept", "text/plain;q=0.9");
76+
return requestInfo;
77+
}
78+
/// <summary>
79+
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
80+
/// </summary>
81+
/// <returns>A <see cref="global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.Count.CountRequestBuilder"/></returns>
82+
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
83+
public global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.Count.CountRequestBuilder WithUrl(string rawUrl)
84+
{
85+
return new global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.Count.CountRequestBuilder(rawUrl, RequestAdapter);
86+
}
87+
/// <summary>
88+
/// Get the number of the resource
89+
/// </summary>
90+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
91+
public partial class CountRequestBuilderGetQueryParameters
92+
{
93+
/// <summary>Filter items by property values</summary>
94+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
95+
#nullable enable
96+
[QueryParameter("%24filter")]
97+
public string? Filter { get; set; }
98+
#nullable restore
99+
#else
100+
[QueryParameter("%24filter")]
101+
public string Filter { get; set; }
102+
#endif
103+
/// <summary>Search items by search phrases</summary>
104+
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
105+
#nullable enable
106+
[QueryParameter("%24search")]
107+
public string? Search { get; set; }
108+
#nullable restore
109+
#else
110+
[QueryParameter("%24search")]
111+
public string Search { get; set; }
112+
#endif
113+
}
114+
/// <summary>
115+
/// Configuration for the request such as headers, query parameters, and middleware options.
116+
/// </summary>
117+
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
118+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
119+
public partial class CountRequestBuilderGetRequestConfiguration : RequestConfiguration<global::Microsoft.Graph.Beta.AgentRegistry.AgentCardManifests.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters>
120+
{
121+
}
122+
}
123+
}
124+
#pragma warning restore CS0618

0 commit comments

Comments
 (0)