Skip to content

Commit

Permalink
Regenerated API clients with Kiota
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 6, 2024
1 parent 84fc970 commit 20a7b8a
Show file tree
Hide file tree
Showing 31 changed files with 74 additions and 44 deletions.
4 changes: 3 additions & 1 deletion get-started/azure-auth/cli/src/Client/GetUserApiClient.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// <auto-generated/>
#pragma warning disable CS0618
using GetUserClient.ApiClient.Me;
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
Expand All @@ -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>
Expand Down Expand Up @@ -58,3 +59,4 @@ public Command BuildRootCommand()
}
}
}
#pragma warning restore CS0618
4 changes: 3 additions & 1 deletion get-started/azure-auth/cli/src/Client/Me/MeRequestBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// <auto-generated/>
#pragma warning disable CS0618
using GetUserClient.ApiClient.Models;
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
Expand All @@ -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>
Expand Down Expand Up @@ -77,3 +78,4 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<De
}
}
}
#pragma warning restore CS0618
4 changes: 3 additions & 1 deletion get-started/azure-auth/cli/src/Client/Models/User.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
// <auto-generated/>
#pragma warning disable CS0618
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
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
Expand Down Expand Up @@ -71,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer)
}
}
}
#pragma warning restore CS0618
2 changes: 1 addition & 1 deletion get-started/azure-auth/cli/src/Client/kiota-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion get-started/azure-auth/dotnet/src/Client/GetUserApiClient.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// <auto-generated/>
#pragma warning disable CS0618
using GetUserClient.ApiClient.Me;
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
Expand All @@ -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>
Expand Down Expand Up @@ -44,3 +45,4 @@ public partial class GetUserApiClient : BaseRequestBuilder
}
}
}
#pragma warning restore CS0618
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// <auto-generated/>
#pragma warning disable CS0618
using GetUserClient.ApiClient.Models;
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
Expand All @@ -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>
Expand Down Expand Up @@ -76,9 +77,10 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<De
/// 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
4 changes: 3 additions & 1 deletion get-started/azure-auth/dotnet/src/Client/Models/User.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
// <auto-generated/>
#pragma warning disable CS0618
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
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
Expand Down Expand Up @@ -71,3 +72,4 @@ public virtual void Serialize(ISerializationWriter writer)
}
}
}
#pragma warning restore CS0618
2 changes: 1 addition & 1 deletion get-started/azure-auth/dotnet/src/Client/kiota-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion get-started/azure-auth/go/client/kiota-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion get-started/azure-auth/php/client/kiota-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion get-started/azure-auth/python/client/kiota-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion get-started/azure-auth/ruby/client/kiota-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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> = {
Expand Down
2 changes: 1 addition & 1 deletion get-started/azure-auth/typescript/client/kiota-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
14 changes: 8 additions & 6 deletions get-started/azure-auth/typescript/client/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
/**
Expand All @@ -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 */
4 changes: 3 additions & 1 deletion get-started/quickstart/cli/src/Client/Models/Post.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
// <auto-generated/>
#pragma warning disable CS0618
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
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
Expand Down Expand Up @@ -79,3 +80,4 @@ public virtual void Serialize(ISerializationWriter writer)
}
}
}
#pragma warning restore CS0618
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// <auto-generated/>
#pragma warning disable CS0618
using KiotaPostsCLI.Client.Models;
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
Expand All @@ -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>
Expand Down Expand Up @@ -212,3 +213,4 @@ public RequestInformation ToPatchRequestInformation(global::KiotaPostsCLI.Client
}
}
}
#pragma warning restore CS0618
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// <auto-generated/>
#pragma warning disable CS0618
using KiotaPostsCLI.Client.Models;
using KiotaPostsCLI.Client.Posts.Item;
using Microsoft.Kiota.Abstractions.Extensions;
Expand All @@ -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>
Expand Down Expand Up @@ -173,7 +174,7 @@ public RequestInformation ToPostRequestInformation(global::KiotaPostsCLI.Client.
/// <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>
Expand All @@ -192,3 +193,4 @@ public partial class PostsRequestBuilderGetQueryParameters
}
}
}
#pragma warning restore CS0618
4 changes: 3 additions & 1 deletion get-started/quickstart/cli/src/Client/PostsClient.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// <auto-generated/>
#pragma warning disable CS0618
using KiotaPostsCLI.Client.Posts;
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions;
Expand All @@ -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>
Expand Down Expand Up @@ -67,3 +68,4 @@ public Command BuildRootCommand()
}
}
}
#pragma warning restore CS0618
2 changes: 1 addition & 1 deletion get-started/quickstart/cli/src/Client/kiota-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion get-started/quickstart/dotnet/src/Client/Models/Post.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
// <auto-generated/>
#pragma warning disable CS0618
using Microsoft.Kiota.Abstractions.Extensions;
using Microsoft.Kiota.Abstractions.Serialization;
using System.Collections.Generic;
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
Expand Down Expand Up @@ -79,3 +80,4 @@ public virtual void Serialize(ISerializationWriter writer)
}
}
}
#pragma warning restore CS0618
Loading

0 comments on commit 20a7b8a

Please sign in to comment.