Regenerated API clients with Kiota
This commit is contained in:
Родитель
84fc970ae4
Коммит
20a7b8afb0
|
@ -1,4 +1,5 @@
|
|||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using GetUserClient.ApiClient.Me;
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions;
|
||||
|
@ -19,7 +20,7 @@ namespace GetUserClient.ApiClient
|
|||
/// <summary>
|
||||
/// The main entry point of the SDK, exposes the configuration and the fluent API.
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
public partial class GetUserApiClient : BaseCliRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -58,3 +59,4 @@ namespace GetUserClient.ApiClient
|
|||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using GetUserClient.ApiClient.Models;
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
|
@ -18,7 +19,7 @@ namespace GetUserClient.ApiClient.Me
|
|||
/// <summary>
|
||||
/// Builds and executes requests for operations under \me
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
public partial class MeRequestBuilder : BaseCliRequestBuilder
|
||||
{
|
||||
/// <returns>A <see cref="Command"/></returns>
|
||||
|
@ -77,3 +78,4 @@ namespace GetUserClient.ApiClient.Me
|
|||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
|
@ -6,7 +7,7 @@ using System.IO;
|
|||
using System;
|
||||
namespace GetUserClient.ApiClient.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class User : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
|
@ -71,3 +72,4 @@ namespace GetUserClient.ApiClient.Models
|
|||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
|
||||
"descriptionLocation": "../../../get-me.yml",
|
||||
"lockFileVersion": "1.0.0",
|
||||
"kiotaVersion": "1.17.0",
|
||||
"kiotaVersion": "1.18.0",
|
||||
"clientClassName": "GetUserApiClient",
|
||||
"clientNamespaceName": "GetUserClient.ApiClient",
|
||||
"language": "CLI",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using GetUserClient.ApiClient.Me;
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions;
|
||||
|
@ -15,7 +16,7 @@ namespace GetUserClient.ApiClient
|
|||
/// <summary>
|
||||
/// The main entry point of the SDK, exposes the configuration and the fluent API.
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
public partial class GetUserApiClient : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>The me property</summary>
|
||||
|
@ -44,3 +45,4 @@ namespace GetUserClient.ApiClient
|
|||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using GetUserClient.ApiClient.Models;
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
|
@ -13,7 +14,7 @@ namespace GetUserClient.ApiClient.Me
|
|||
/// <summary>
|
||||
/// Builds and executes requests for operations under \me
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
public partial class MeRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -76,9 +77,10 @@ namespace GetUserClient.ApiClient.Me
|
|||
/// Configuration for the request such as headers, query parameters, and middleware options.
|
||||
/// </summary>
|
||||
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
public partial class MeRequestBuilderGetRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
|
@ -6,7 +7,7 @@ using System.IO;
|
|||
using System;
|
||||
namespace GetUserClient.ApiClient.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class User : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
|
@ -71,3 +72,4 @@ namespace GetUserClient.ApiClient.Models
|
|||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
|
||||
"descriptionLocation": "../../../get-me.yml",
|
||||
"lockFileVersion": "1.0.0",
|
||||
"kiotaVersion": "1.17.0",
|
||||
"kiotaVersion": "1.18.0",
|
||||
"clientClassName": "GetUserApiClient",
|
||||
"clientNamespaceName": "GetUserClient.ApiClient",
|
||||
"language": "CSharp",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
|
||||
"descriptionLocation": "../../get-me.yml",
|
||||
"lockFileVersion": "1.0.0",
|
||||
"kiotaVersion": "1.17.0",
|
||||
"kiotaVersion": "1.18.0",
|
||||
"clientClassName": "GraphApiClient",
|
||||
"clientNamespaceName": "getuser/client",
|
||||
"language": "Go",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
|
||||
"descriptionLocation": "../../../../../../../get-me.yml",
|
||||
"lockFileVersion": "1.0.0",
|
||||
"kiotaVersion": "1.17.0",
|
||||
"kiotaVersion": "1.18.0",
|
||||
"clientClassName": "GetUserApiClient",
|
||||
"clientNamespaceName": "getuserclient.apiclient",
|
||||
"language": "Java",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
|
||||
"descriptionLocation": "../../get-me.yml",
|
||||
"lockFileVersion": "1.0.0",
|
||||
"kiotaVersion": "1.17.0",
|
||||
"kiotaVersion": "1.18.0",
|
||||
"clientClassName": "GraphApiClient",
|
||||
"clientNamespaceName": "GetUser\\Client",
|
||||
"language": "PHP",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
|
||||
"descriptionLocation": "../../get-me.yml",
|
||||
"lockFileVersion": "1.0.0",
|
||||
"kiotaVersion": "1.17.0",
|
||||
"kiotaVersion": "1.18.0",
|
||||
"clientClassName": "GetUserApiClient",
|
||||
"clientNamespaceName": "client",
|
||||
"language": "Python",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
|
||||
"descriptionLocation": "../../get-me.yml",
|
||||
"lockFileVersion": "1.0.0",
|
||||
"kiotaVersion": "1.17.0",
|
||||
"kiotaVersion": "1.18.0",
|
||||
"clientClassName": "GetUserApiClient",
|
||||
"clientNamespaceName": "GetUser",
|
||||
"language": "Ruby",
|
||||
|
|
|
@ -27,7 +27,7 @@ export function createGetUserApiClient(requestAdapter: RequestAdapter) {
|
|||
registerDefaultDeserializer(JsonParseNodeFactory);
|
||||
registerDefaultDeserializer(TextParseNodeFactory);
|
||||
registerDefaultDeserializer(FormParseNodeFactory);
|
||||
if (requestAdapter.baseUrl === undefined || requestAdapter.baseUrl === "") {
|
||||
if (requestAdapter.baseUrl === undefined || requestAdapter.baseUrl === null || requestAdapter.baseUrl === "") {
|
||||
requestAdapter.baseUrl = "https://graph.microsoft.com/v1.0";
|
||||
}
|
||||
const pathParameters: Record<string, unknown> = {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
|
||||
"descriptionLocation": "../../get-me.yml",
|
||||
"lockFileVersion": "1.0.0",
|
||||
"kiotaVersion": "1.17.0",
|
||||
"kiotaVersion": "1.18.0",
|
||||
"clientClassName": "GetUserApiClient",
|
||||
"clientNamespaceName": "ApiSdk",
|
||||
"language": "TypeScript",
|
||||
|
|
|
@ -29,10 +29,12 @@ export function deserializeIntoUser(user: Partial<User> | undefined = {}) : Reco
|
|||
* @param writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
// @ts-ignore
|
||||
export function serializeUser(writer: SerializationWriter, user: Partial<User> | undefined = {}) : void {
|
||||
writer.writeStringValue("displayName", user.displayName);
|
||||
writer.writeStringValue("id", user.id);
|
||||
writer.writeAdditionalData(user.additionalData);
|
||||
export function serializeUser(writer: SerializationWriter, user: Partial<User> | undefined | null = {}) : void {
|
||||
if (user) {
|
||||
writer.writeStringValue("displayName", user.displayName);
|
||||
writer.writeStringValue("id", user.id);
|
||||
writer.writeAdditionalData(user.additionalData);
|
||||
}
|
||||
}
|
||||
export interface User extends AdditionalDataHolder, Parsable {
|
||||
/**
|
||||
|
@ -42,11 +44,11 @@ export interface User extends AdditionalDataHolder, Parsable {
|
|||
/**
|
||||
* The displayName property
|
||||
*/
|
||||
displayName?: string;
|
||||
displayName?: string | null;
|
||||
/**
|
||||
* The id property
|
||||
*/
|
||||
id?: string;
|
||||
id?: string | null;
|
||||
}
|
||||
/* tslint:enable */
|
||||
/* eslint-enable */
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
|
@ -6,7 +7,7 @@ using System.IO;
|
|||
using System;
|
||||
namespace KiotaPostsCLI.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Post : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
|
@ -79,3 +80,4 @@ namespace KiotaPostsCLI.Client.Models
|
|||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using KiotaPostsCLI.Client.Models;
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
|
@ -18,7 +19,7 @@ namespace KiotaPostsCLI.Client.Posts.Item
|
|||
/// <summary>
|
||||
/// Builds and executes requests for operations under \posts\{post-id}
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
public partial class PostItemRequestBuilder : BaseCliRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -212,3 +213,4 @@ namespace KiotaPostsCLI.Client.Posts.Item
|
|||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using KiotaPostsCLI.Client.Models;
|
||||
using KiotaPostsCLI.Client.Posts.Item;
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
|
@ -19,7 +20,7 @@ namespace KiotaPostsCLI.Client.Posts
|
|||
/// <summary>
|
||||
/// Builds and executes requests for operations under \posts
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
public partial class PostsRequestBuilder : BaseCliRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -173,7 +174,7 @@ namespace KiotaPostsCLI.Client.Posts
|
|||
/// <summary>
|
||||
/// Get posts
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
public partial class PostsRequestBuilderGetQueryParameters
|
||||
{
|
||||
/// <summary>Filter results by title</summary>
|
||||
|
@ -192,3 +193,4 @@ namespace KiotaPostsCLI.Client.Posts
|
|||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using KiotaPostsCLI.Client.Posts;
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions;
|
||||
|
@ -19,7 +20,7 @@ namespace KiotaPostsCLI.Client
|
|||
/// <summary>
|
||||
/// The main entry point of the SDK, exposes the configuration and the fluent API.
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
public partial class PostsClient : BaseCliRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -67,3 +68,4 @@ namespace KiotaPostsCLI.Client
|
|||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"descriptionHash": "37FE8D63AB108F248AAA5632A5D37D625F8B9E3A6C439952B4029B0AF49579F337028FE07768B89D6F9210460D77E116F312CB505A43E8EB877131E772464F3B",
|
||||
"descriptionLocation": "../../../posts-api.yml",
|
||||
"lockFileVersion": "1.0.0",
|
||||
"kiotaVersion": "1.17.0",
|
||||
"kiotaVersion": "1.18.0",
|
||||
"clientClassName": "PostsClient",
|
||||
"clientNamespaceName": "KiotaPostsCLI.Client",
|
||||
"language": "CLI",
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
using System.Collections.Generic;
|
||||
|
@ -6,7 +7,7 @@ using System.IO;
|
|||
using System;
|
||||
namespace KiotaPosts.Client.Models
|
||||
{
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
#pragma warning disable CS1591
|
||||
public partial class Post : IAdditionalDataHolder, IParsable
|
||||
#pragma warning restore CS1591
|
||||
|
@ -79,3 +80,4 @@ namespace KiotaPosts.Client.Models
|
|||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using KiotaPosts.Client.Models;
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions.Serialization;
|
||||
|
@ -13,7 +14,7 @@ namespace KiotaPosts.Client.Posts.Item
|
|||
/// <summary>
|
||||
/// Builds and executes requests for operations under \posts\{post-id}
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
public partial class PostItemRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -160,7 +161,7 @@ namespace KiotaPosts.Client.Posts.Item
|
|||
/// Configuration for the request such as headers, query parameters, and middleware options.
|
||||
/// </summary>
|
||||
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
public partial class PostItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
|
||||
{
|
||||
}
|
||||
|
@ -168,7 +169,7 @@ namespace KiotaPosts.Client.Posts.Item
|
|||
/// Configuration for the request such as headers, query parameters, and middleware options.
|
||||
/// </summary>
|
||||
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
public partial class PostItemRequestBuilderGetRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
|
||||
{
|
||||
}
|
||||
|
@ -176,9 +177,10 @@ namespace KiotaPosts.Client.Posts.Item
|
|||
/// Configuration for the request such as headers, query parameters, and middleware options.
|
||||
/// </summary>
|
||||
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
public partial class PostItemRequestBuilderPatchRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using KiotaPosts.Client.Models;
|
||||
using KiotaPosts.Client.Posts.Item;
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
|
@ -14,7 +15,7 @@ namespace KiotaPosts.Client.Posts
|
|||
/// <summary>
|
||||
/// Builds and executes requests for operations under \posts
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
public partial class PostsRequestBuilder : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>Gets an item from the KiotaPosts.Client.posts.item collection</summary>
|
||||
|
@ -150,7 +151,7 @@ namespace KiotaPosts.Client.Posts
|
|||
/// <summary>
|
||||
/// Get posts
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
public partial class PostsRequestBuilderGetQueryParameters
|
||||
{
|
||||
/// <summary>Filter results by title</summary>
|
||||
|
@ -171,7 +172,7 @@ namespace KiotaPosts.Client.Posts
|
|||
/// Configuration for the request such as headers, query parameters, and middleware options.
|
||||
/// </summary>
|
||||
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
public partial class PostsRequestBuilderGetRequestConfiguration : RequestConfiguration<global::KiotaPosts.Client.Posts.PostsRequestBuilder.PostsRequestBuilderGetQueryParameters>
|
||||
{
|
||||
}
|
||||
|
@ -179,9 +180,10 @@ namespace KiotaPosts.Client.Posts
|
|||
/// Configuration for the request such as headers, query parameters, and middleware options.
|
||||
/// </summary>
|
||||
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
public partial class PostsRequestBuilderPostRequestConfiguration : RequestConfiguration<DefaultQueryParameters>
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// <auto-generated/>
|
||||
#pragma warning disable CS0618
|
||||
using KiotaPosts.Client.Posts;
|
||||
using Microsoft.Kiota.Abstractions.Extensions;
|
||||
using Microsoft.Kiota.Abstractions;
|
||||
|
@ -15,7 +16,7 @@ namespace KiotaPosts.Client
|
|||
/// <summary>
|
||||
/// The main entry point of the SDK, exposes the configuration and the fluent API.
|
||||
/// </summary>
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.17.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.18.0")]
|
||||
public partial class PostsClient : BaseRequestBuilder
|
||||
{
|
||||
/// <summary>The posts property</summary>
|
||||
|
@ -44,3 +45,4 @@ namespace KiotaPosts.Client
|
|||
}
|
||||
}
|
||||
}
|
||||
#pragma warning restore CS0618
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"descriptionHash": "37FE8D63AB108F248AAA5632A5D37D625F8B9E3A6C439952B4029B0AF49579F337028FE07768B89D6F9210460D77E116F312CB505A43E8EB877131E772464F3B",
|
||||
"descriptionLocation": "../../../posts-api.yml",
|
||||
"lockFileVersion": "1.0.0",
|
||||
"kiotaVersion": "1.17.0",
|
||||
"kiotaVersion": "1.18.0",
|
||||
"clientClassName": "PostsClient",
|
||||
"clientNamespaceName": "KiotaPosts.Client",
|
||||
"language": "CSharp",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"descriptionHash": "37FE8D63AB108F248AAA5632A5D37D625F8B9E3A6C439952B4029B0AF49579F337028FE07768B89D6F9210460D77E116F312CB505A43E8EB877131E772464F3B",
|
||||
"descriptionLocation": "../../posts-api.yml",
|
||||
"lockFileVersion": "1.0.0",
|
||||
"kiotaVersion": "1.17.0",
|
||||
"kiotaVersion": "1.18.0",
|
||||
"clientClassName": "PostsClient",
|
||||
"clientNamespaceName": "kiota_posts/client",
|
||||
"language": "Go",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"descriptionHash": "37FE8D63AB108F248AAA5632A5D37D625F8B9E3A6C439952B4029B0AF49579F337028FE07768B89D6F9210460D77E116F312CB505A43E8EB877131E772464F3B",
|
||||
"descriptionLocation": "../../../../../../../posts-api.yml",
|
||||
"lockFileVersion": "1.0.0",
|
||||
"kiotaVersion": "1.17.0",
|
||||
"kiotaVersion": "1.18.0",
|
||||
"clientClassName": "PostsClient",
|
||||
"clientNamespaceName": "kiotaposts.client",
|
||||
"language": "Java",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"descriptionHash": "37FE8D63AB108F248AAA5632A5D37D625F8B9E3A6C439952B4029B0AF49579F337028FE07768B89D6F9210460D77E116F312CB505A43E8EB877131E772464F3B",
|
||||
"descriptionLocation": "../../posts-api.yml",
|
||||
"lockFileVersion": "1.0.0",
|
||||
"kiotaVersion": "1.17.0",
|
||||
"kiotaVersion": "1.18.0",
|
||||
"clientClassName": "PostsApiClient",
|
||||
"clientNamespaceName": "KiotaPosts\\Client",
|
||||
"language": "PHP",
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"descriptionHash": "37FE8D63AB108F248AAA5632A5D37D625F8B9E3A6C439952B4029B0AF49579F337028FE07768B89D6F9210460D77E116F312CB505A43E8EB877131E772464F3B",
|
||||
"descriptionLocation": "../../posts-api.yml",
|
||||
"lockFileVersion": "1.0.0",
|
||||
"kiotaVersion": "1.17.0",
|
||||
"kiotaVersion": "1.18.0",
|
||||
"clientClassName": "PostsClient",
|
||||
"clientNamespaceName": "client",
|
||||
"language": "Python",
|
||||
|
|
|
@ -27,7 +27,7 @@ export function createPostsClient(requestAdapter: RequestAdapter) {
|
|||
registerDefaultDeserializer(JsonParseNodeFactory);
|
||||
registerDefaultDeserializer(TextParseNodeFactory);
|
||||
registerDefaultDeserializer(FormParseNodeFactory);
|
||||
if (requestAdapter.baseUrl === undefined || requestAdapter.baseUrl === "") {
|
||||
if (requestAdapter.baseUrl === undefined || requestAdapter.baseUrl === null || requestAdapter.baseUrl === "") {
|
||||
requestAdapter.baseUrl = "https://jsonplaceholder.typicode.com";
|
||||
}
|
||||
const pathParameters: Record<string, unknown> = {
|
||||
|
|
Загрузка…
Ссылка в новой задаче