diff --git a/get-started/azure-auth/cli/src/Client/GetUserApiClient.cs b/get-started/azure-auth/cli/src/Client/GetUserApiClient.cs
index 1fdd028ce..9f848cfd3 100644
--- a/get-started/azure-auth/cli/src/Client/GetUserApiClient.cs
+++ b/get-started/azure-auth/cli/src/Client/GetUserApiClient.cs
@@ -15,11 +15,12 @@
using System.Text;
using System.Threading.Tasks;
using System;
-namespace GetUserClient.ApiClient {
+namespace GetUserClient.ApiClient
+{
///
/// The main entry point of the SDK, exposes the configuration and the fluent API.
///
- public class GetUserApiClient : BaseCliRequestBuilder
+ public class GetUserApiClient : BaseCliRequestBuilder
{
///
/// The me property
@@ -29,7 +30,7 @@ public Command BuildMeNavCommand()
{
var command = new Command("me");
command.Description = "The me property";
- var builder = new MeRequestBuilder(PathParameters);
+ var builder = new GetUserClient.ApiClient.Me.MeRequestBuilder(PathParameters);
var execCommands = new List();
execCommands.Add(builder.BuildGetCommand());
foreach (var cmd in execCommands)
@@ -39,7 +40,7 @@ public Command BuildMeNavCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// A
public Command BuildRootCommand()
@@ -50,7 +51,7 @@ public Command BuildRootCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public GetUserApiClient() : base("{+baseurl}", new Dictionary())
{
diff --git a/get-started/azure-auth/cli/src/Client/Me/MeRequestBuilder.cs b/get-started/azure-auth/cli/src/Client/Me/MeRequestBuilder.cs
index 10dcd6041..fc04e69ac 100644
--- a/get-started/azure-auth/cli/src/Client/Me/MeRequestBuilder.cs
+++ b/get-started/azure-auth/cli/src/Client/Me/MeRequestBuilder.cs
@@ -13,11 +13,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GetUserClient.ApiClient.Me {
+namespace GetUserClient.ApiClient.Me
+{
///
/// Builds and executes requests for operations under \me
///
- public class MeRequestBuilder : BaseCliRequestBuilder
+ public class MeRequestBuilder : BaseCliRequestBuilder
{
/// A
public Command BuildGetCommand()
@@ -44,14 +45,14 @@ public Command BuildGetCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public MeRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/me", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public MeRequestBuilder(string rawUrl) : base("{+baseurl}/me", rawUrl)
diff --git a/get-started/azure-auth/cli/src/Client/Models/User.cs b/get-started/azure-auth/cli/src/Client/Models/User.cs
index 6dc7e2c46..63a2293e6 100644
--- a/get-started/azure-auth/cli/src/Client/Models/User.cs
+++ b/get-started/azure-auth/cli/src/Client/Models/User.cs
@@ -4,9 +4,10 @@
using System.IO;
using System.Linq;
using System;
-namespace GetUserClient.ApiClient.Models {
+namespace GetUserClient.ApiClient.Models
+{
#pragma warning disable CS1591
- public class User : IAdditionalDataHolder, IParsable
+ public class User : IAdditionalDataHolder, IParsable
#pragma warning restore CS1591
{
/// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
@@ -28,7 +29,7 @@ public class User : IAdditionalDataHolder, IParsable
public string Id { get; set; }
#endif
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public User()
{
@@ -37,12 +38,12 @@ public User()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static User CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static GetUserClient.ApiClient.Models.User CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new User();
+ return new GetUserClient.ApiClient.Models.User();
}
///
/// The deserialization information for the current model
@@ -52,8 +53,8 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"displayName", n => { DisplayName = n.GetStringValue(); } },
- {"id", n => { Id = n.GetStringValue(); } },
+ { "displayName", n => { DisplayName = n.GetStringValue(); } },
+ { "id", n => { Id = n.GetStringValue(); } },
};
}
///
diff --git a/get-started/azure-auth/cli/src/Client/kiota-lock.json b/get-started/azure-auth/cli/src/Client/kiota-lock.json
index 373ee7b29..7e479e0e8 100644
--- a/get-started/azure-auth/cli/src/Client/kiota-lock.json
+++ b/get-started/azure-auth/cli/src/Client/kiota-lock.json
@@ -2,13 +2,14 @@
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
"descriptionLocation": "../../../get-me.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.14.0",
+ "kiotaVersion": "1.15.0",
"clientClassName": "GetUserApiClient",
"clientNamespaceName": "GetUserClient.ApiClient",
"language": "CLI",
"usesBackingStore": false,
"excludeBackwardCompatible": false,
"includeAdditionalData": true,
+ "disableSSLValidation": false,
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
diff --git a/get-started/azure-auth/dotnet/src/Client/GetUserApiClient.cs b/get-started/azure-auth/dotnet/src/Client/GetUserApiClient.cs
index 5074a38ef..e4d4e6484 100644
--- a/get-started/azure-auth/dotnet/src/Client/GetUserApiClient.cs
+++ b/get-started/azure-auth/dotnet/src/Client/GetUserApiClient.cs
@@ -11,19 +11,20 @@
using System.Linq;
using System.Threading.Tasks;
using System;
-namespace GetUserClient.ApiClient {
+namespace GetUserClient.ApiClient
+{
///
/// The main entry point of the SDK, exposes the configuration and the fluent API.
///
- public class GetUserApiClient : BaseRequestBuilder
+ public class GetUserApiClient : BaseRequestBuilder
{
/// The me property
- public MeRequestBuilder Me
+ public GetUserClient.ApiClient.Me.MeRequestBuilder Me
{
- get => new MeRequestBuilder(PathParameters, RequestAdapter);
+ get => new GetUserClient.ApiClient.Me.MeRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The request adapter to use to execute the requests.
public GetUserApiClient(IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}", new Dictionary())
diff --git a/get-started/azure-auth/dotnet/src/Client/Me/MeRequestBuilder.cs b/get-started/azure-auth/dotnet/src/Client/Me/MeRequestBuilder.cs
index 6238bb0ce..78d1ca8f5 100644
--- a/get-started/azure-auth/dotnet/src/Client/Me/MeRequestBuilder.cs
+++ b/get-started/azure-auth/dotnet/src/Client/Me/MeRequestBuilder.cs
@@ -8,14 +8,15 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace GetUserClient.ApiClient.Me {
+namespace GetUserClient.ApiClient.Me
+{
///
/// Builds and executes requests for operations under \me
///
- public class MeRequestBuilder : BaseRequestBuilder
+ public class MeRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,27 +24,27 @@ public MeRequestBuilder(Dictionary pathParameters, IRequestAdapt
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
public MeRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/me", rawUrl)
{
}
- /// A
+ /// A
/// 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);
- return await RequestAdapter.SendAsync(requestInfo, User.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, GetUserClient.ApiClient.Models.User.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
}
/// A
/// Configuration for the request such as headers, query parameters, and middleware options.
@@ -64,17 +65,17 @@ public RequestInformation ToGetRequestInformation(Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public MeRequestBuilder WithUrl(string rawUrl)
+ public GetUserClient.ApiClient.Me.MeRequestBuilder WithUrl(string rawUrl)
{
- return new MeRequestBuilder(rawUrl, RequestAdapter);
+ return new GetUserClient.ApiClient.Me.MeRequestBuilder(rawUrl, RequestAdapter);
}
///
/// Configuration for the request such as headers, query parameters, and middleware options.
///
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- public class MeRequestBuilderGetRequestConfiguration : RequestConfiguration
+ public class MeRequestBuilderGetRequestConfiguration : RequestConfiguration
{
}
}
diff --git a/get-started/azure-auth/dotnet/src/Client/Models/User.cs b/get-started/azure-auth/dotnet/src/Client/Models/User.cs
index 6dc7e2c46..63a2293e6 100644
--- a/get-started/azure-auth/dotnet/src/Client/Models/User.cs
+++ b/get-started/azure-auth/dotnet/src/Client/Models/User.cs
@@ -4,9 +4,10 @@
using System.IO;
using System.Linq;
using System;
-namespace GetUserClient.ApiClient.Models {
+namespace GetUserClient.ApiClient.Models
+{
#pragma warning disable CS1591
- public class User : IAdditionalDataHolder, IParsable
+ public class User : IAdditionalDataHolder, IParsable
#pragma warning restore CS1591
{
/// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
@@ -28,7 +29,7 @@ public class User : IAdditionalDataHolder, IParsable
public string Id { get; set; }
#endif
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public User()
{
@@ -37,12 +38,12 @@ public User()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static User CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static GetUserClient.ApiClient.Models.User CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new User();
+ return new GetUserClient.ApiClient.Models.User();
}
///
/// The deserialization information for the current model
@@ -52,8 +53,8 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"displayName", n => { DisplayName = n.GetStringValue(); } },
- {"id", n => { Id = n.GetStringValue(); } },
+ { "displayName", n => { DisplayName = n.GetStringValue(); } },
+ { "id", n => { Id = n.GetStringValue(); } },
};
}
///
diff --git a/get-started/azure-auth/dotnet/src/Client/kiota-lock.json b/get-started/azure-auth/dotnet/src/Client/kiota-lock.json
index fde03ac46..11eed6b34 100644
--- a/get-started/azure-auth/dotnet/src/Client/kiota-lock.json
+++ b/get-started/azure-auth/dotnet/src/Client/kiota-lock.json
@@ -2,13 +2,14 @@
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
"descriptionLocation": "../../../get-me.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.14.0",
+ "kiotaVersion": "1.15.0",
"clientClassName": "GetUserApiClient",
"clientNamespaceName": "GetUserClient.ApiClient",
"language": "CSharp",
"usesBackingStore": false,
"excludeBackwardCompatible": false,
"includeAdditionalData": true,
+ "disableSSLValidation": false,
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
diff --git a/get-started/azure-auth/go/client/kiota-lock.json b/get-started/azure-auth/go/client/kiota-lock.json
index f9bfb06d2..36886e532 100644
--- a/get-started/azure-auth/go/client/kiota-lock.json
+++ b/get-started/azure-auth/go/client/kiota-lock.json
@@ -2,13 +2,14 @@
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
"descriptionLocation": "../../get-me.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.14.0",
+ "kiotaVersion": "1.15.0",
"clientClassName": "GraphApiClient",
"clientNamespaceName": "getuser/client",
"language": "Go",
"usesBackingStore": false,
"excludeBackwardCompatible": false,
"includeAdditionalData": true,
+ "disableSSLValidation": false,
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
diff --git a/get-started/azure-auth/java/app/src/main/java/getuserclient/apiclient/kiota-lock.json b/get-started/azure-auth/java/app/src/main/java/getuserclient/apiclient/kiota-lock.json
index 309450f56..f1f4fb64d 100644
--- a/get-started/azure-auth/java/app/src/main/java/getuserclient/apiclient/kiota-lock.json
+++ b/get-started/azure-auth/java/app/src/main/java/getuserclient/apiclient/kiota-lock.json
@@ -2,13 +2,14 @@
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
"descriptionLocation": "../../../../../../../get-me.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.14.0",
+ "kiotaVersion": "1.15.0",
"clientClassName": "GetUserApiClient",
"clientNamespaceName": "getuserclient.apiclient",
"language": "Java",
"usesBackingStore": false,
"excludeBackwardCompatible": false,
"includeAdditionalData": true,
+ "disableSSLValidation": false,
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
diff --git a/get-started/azure-auth/php/client/GraphApiClient.php b/get-started/azure-auth/php/client/GraphApiClient.php
index 89a6f618d..35c40a1b3 100644
--- a/get-started/azure-auth/php/client/GraphApiClient.php
+++ b/get-started/azure-auth/php/client/GraphApiClient.php
@@ -6,8 +6,11 @@
use Microsoft\Kiota\Abstractions\ApiClientBuilder;
use Microsoft\Kiota\Abstractions\BaseRequestBuilder;
use Microsoft\Kiota\Abstractions\RequestAdapter;
+use Microsoft\Kiota\Serialization\Form\FormParseNodeFactory;
+use Microsoft\Kiota\Serialization\Form\FormSerializationWriterFactory;
use Microsoft\Kiota\Serialization\Json\JsonParseNodeFactory;
use Microsoft\Kiota\Serialization\Json\JsonSerializationWriterFactory;
+use Microsoft\Kiota\Serialization\Multipart\MultipartSerializationWriterFactory;
use Microsoft\Kiota\Serialization\Text\TextParseNodeFactory;
use Microsoft\Kiota\Serialization\Text\TextSerializationWriterFactory;
@@ -31,8 +34,11 @@ public function __construct(RequestAdapter $requestAdapter) {
parent::__construct($requestAdapter, [], '{+baseurl}');
ApiClientBuilder::registerDefaultSerializer(JsonSerializationWriterFactory::class);
ApiClientBuilder::registerDefaultSerializer(TextSerializationWriterFactory::class);
+ ApiClientBuilder::registerDefaultSerializer(FormSerializationWriterFactory::class);
+ ApiClientBuilder::registerDefaultSerializer(MultipartSerializationWriterFactory::class);
ApiClientBuilder::registerDefaultDeserializer(JsonParseNodeFactory::class);
ApiClientBuilder::registerDefaultDeserializer(TextParseNodeFactory::class);
+ ApiClientBuilder::registerDefaultDeserializer(FormParseNodeFactory::class);
if (empty($this->requestAdapter->getBaseUrl())) {
$this->requestAdapter->setBaseUrl('https://graph.microsoft.com/v1.0');
}
diff --git a/get-started/azure-auth/php/client/kiota-lock.json b/get-started/azure-auth/php/client/kiota-lock.json
index 74718a452..116773b6a 100644
--- a/get-started/azure-auth/php/client/kiota-lock.json
+++ b/get-started/azure-auth/php/client/kiota-lock.json
@@ -2,13 +2,14 @@
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
"descriptionLocation": "../../get-me.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.14.0",
+ "kiotaVersion": "1.15.0",
"clientClassName": "GraphApiClient",
"clientNamespaceName": "GetUser\\Client",
"language": "PHP",
"usesBackingStore": false,
"excludeBackwardCompatible": false,
"includeAdditionalData": true,
+ "disableSSLValidation": false,
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
diff --git a/get-started/azure-auth/python/client/kiota-lock.json b/get-started/azure-auth/python/client/kiota-lock.json
index fd5dcf481..c5cae9432 100644
--- a/get-started/azure-auth/python/client/kiota-lock.json
+++ b/get-started/azure-auth/python/client/kiota-lock.json
@@ -2,13 +2,14 @@
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
"descriptionLocation": "../../get-me.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.14.0",
+ "kiotaVersion": "1.15.0",
"clientClassName": "GetUserApiClient",
"clientNamespaceName": "client",
"language": "Python",
"usesBackingStore": false,
"excludeBackwardCompatible": false,
"includeAdditionalData": true,
+ "disableSSLValidation": false,
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
diff --git a/get-started/azure-auth/python/client/me/me_request_builder.py b/get-started/azure-auth/python/client/me/me_request_builder.py
index d540d11fd..778eff7a9 100644
--- a/get-started/azure-auth/python/client/me/me_request_builder.py
+++ b/get-started/azure-auth/python/client/me/me_request_builder.py
@@ -1,6 +1,8 @@
from __future__ import annotations
+from dataclasses import dataclass, field
from kiota_abstractions.base_request_builder import BaseRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
+from kiota_abstractions.default_query_parameters import QueryParameters
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
@@ -8,6 +10,7 @@
from kiota_abstractions.request_option import RequestOption
from kiota_abstractions.serialization import Parsable, ParsableFactory
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
+from warnings import warn
if TYPE_CHECKING:
from ..models.user import User
@@ -25,7 +28,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D
"""
super().__init__(request_adapter, "{+baseurl}/me", path_parameters)
- async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[User]:
+ async def get(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[User]:
"""
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: Optional[User]
@@ -39,7 +42,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None)
return await self.request_adapter.send_async(request_info, User, None)
- def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation:
+ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
Returns: RequestInformation
@@ -49,7 +52,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi
request_info.headers.try_add("Accept", "application/json")
return request_info
- def with_url(self,raw_url: Optional[str] = None) -> MeRequestBuilder:
+ def with_url(self,raw_url: str) -> MeRequestBuilder:
"""
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
param raw_url: The raw URL to use for the request builder.
@@ -59,4 +62,11 @@ def with_url(self,raw_url: Optional[str] = None) -> MeRequestBuilder:
raise TypeError("raw_url cannot be null.")
return MeRequestBuilder(self.request_adapter, raw_url)
+ @dataclass
+ class MeRequestBuilderGetRequestConfiguration(RequestConfiguration[QueryParameters]):
+ """
+ Configuration for the request such as headers, query parameters, and middleware options.
+ """
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
+
diff --git a/get-started/azure-auth/python/client/models/user.py b/get-started/azure-auth/python/client/models/user.py
index bd234649c..3fd49e794 100644
--- a/get-started/azure-auth/python/client/models/user.py
+++ b/get-started/azure-auth/python/client/models/user.py
@@ -14,7 +14,7 @@ class User(AdditionalDataHolder, Parsable):
id: Optional[str] = None
@staticmethod
- def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> User:
+ def create_from_discriminator_value(parse_node: ParseNode) -> User:
"""
Creates a new instance of the appropriate class based on discriminator value
param parse_node: The parse node to use to read the discriminator value and create the object
diff --git a/get-started/azure-auth/ruby/client/kiota-lock.json b/get-started/azure-auth/ruby/client/kiota-lock.json
index 1233b0844..a03348ec4 100644
--- a/get-started/azure-auth/ruby/client/kiota-lock.json
+++ b/get-started/azure-auth/ruby/client/kiota-lock.json
@@ -2,13 +2,14 @@
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
"descriptionLocation": "../../get-me.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.14.0",
+ "kiotaVersion": "1.15.0",
"clientClassName": "GetUserApiClient",
"clientNamespaceName": "GetUser",
"language": "Ruby",
"usesBackingStore": false,
"excludeBackwardCompatible": false,
"includeAdditionalData": true,
+ "disableSSLValidation": false,
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
diff --git a/get-started/azure-auth/typescript/client/kiota-lock.json b/get-started/azure-auth/typescript/client/kiota-lock.json
index e58a668d4..87a59ea88 100644
--- a/get-started/azure-auth/typescript/client/kiota-lock.json
+++ b/get-started/azure-auth/typescript/client/kiota-lock.json
@@ -2,13 +2,14 @@
"descriptionHash": "126B1DCD90D419BD411E85DB2452D7D395405237ACF715ECB02992FB92848451D51D4254758E106D7281F10FCEA55629636227F3DC5AFB2550A04CB944BD6EE1",
"descriptionLocation": "../../get-me.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.14.0",
+ "kiotaVersion": "1.15.0",
"clientClassName": "GetUserApiClient",
"clientNamespaceName": "ApiSdk",
"language": "TypeScript",
"usesBackingStore": false,
"excludeBackwardCompatible": false,
"includeAdditionalData": true,
+ "disableSSLValidation": false,
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
diff --git a/get-started/quickstart/cli/src/Client/Models/Post.cs b/get-started/quickstart/cli/src/Client/Models/Post.cs
index 8f2594ba3..af374eea6 100644
--- a/get-started/quickstart/cli/src/Client/Models/Post.cs
+++ b/get-started/quickstart/cli/src/Client/Models/Post.cs
@@ -4,9 +4,10 @@
using System.IO;
using System.Linq;
using System;
-namespace KiotaPostsCLI.Client.Models {
+namespace KiotaPostsCLI.Client.Models
+{
#pragma warning disable CS1591
- public class Post : IAdditionalDataHolder, IParsable
+ public class Post : IAdditionalDataHolder, IParsable
#pragma warning restore CS1591
{
/// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
@@ -32,7 +33,7 @@ public class Post : IAdditionalDataHolder, IParsable
/// The userId property
public int? UserId { get; set; }
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public Post()
{
@@ -41,12 +42,12 @@ public Post()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static Post CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static KiotaPostsCLI.Client.Models.Post CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new Post();
+ return new KiotaPostsCLI.Client.Models.Post();
}
///
/// The deserialization information for the current model
@@ -56,10 +57,10 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"body", n => { Body = n.GetStringValue(); } },
- {"id", n => { Id = n.GetIntValue(); } },
- {"title", n => { Title = n.GetStringValue(); } },
- {"userId", n => { UserId = n.GetIntValue(); } },
+ { "body", n => { Body = n.GetStringValue(); } },
+ { "id", n => { Id = n.GetIntValue(); } },
+ { "title", n => { Title = n.GetStringValue(); } },
+ { "userId", n => { UserId = n.GetIntValue(); } },
};
}
///
diff --git a/get-started/quickstart/cli/src/Client/Posts/Item/PostItemRequestBuilder.cs b/get-started/quickstart/cli/src/Client/Posts/Item/PostItemRequestBuilder.cs
index 52055a24c..8b00f919c 100644
--- a/get-started/quickstart/cli/src/Client/Posts/Item/PostItemRequestBuilder.cs
+++ b/get-started/quickstart/cli/src/Client/Posts/Item/PostItemRequestBuilder.cs
@@ -13,11 +13,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace KiotaPostsCLI.Client.Posts.Item {
+namespace KiotaPostsCLI.Client.Posts.Item
+{
///
/// Builds and executes requests for operations under \posts\{post-id}
///
- public class PostItemRequestBuilder : BaseCliRequestBuilder
+ public class PostItemRequestBuilder : BaseCliRequestBuilder
{
///
/// Delete post
@@ -120,7 +121,7 @@ public Command BuildPatchCommand()
var reqAdapter = invocationContext.GetRequestAdapter();
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
- var model = parseNode.GetObjectValue(Post.CreateFromDiscriminatorValue);
+ var model = parseNode.GetObjectValue(KiotaPostsCLI.Client.Models.Post.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -137,14 +138,14 @@ public Command BuildPatchCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public PostItemRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/posts/{post%2Did}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public PostItemRequestBuilder(string rawUrl) : base("{+baseurl}/posts/{post%2Did}", rawUrl)
@@ -195,11 +196,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Post body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(KiotaPostsCLI.Client.Models.Post body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(Post body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(KiotaPostsCLI.Client.Models.Post body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
diff --git a/get-started/quickstart/cli/src/Client/Posts/PostsRequestBuilder.cs b/get-started/quickstart/cli/src/Client/Posts/PostsRequestBuilder.cs
index dec7f0791..8c29e1f5c 100644
--- a/get-started/quickstart/cli/src/Client/Posts/PostsRequestBuilder.cs
+++ b/get-started/quickstart/cli/src/Client/Posts/PostsRequestBuilder.cs
@@ -14,11 +14,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace KiotaPostsCLI.Client.Posts {
+namespace KiotaPostsCLI.Client.Posts
+{
///
/// Builds and executes requests for operations under \posts
///
- public class PostsRequestBuilder : BaseCliRequestBuilder
+ public class PostsRequestBuilder : BaseCliRequestBuilder
{
///
/// Gets an item from the KiotaPostsCLI.Client.posts.item collection
@@ -27,7 +28,7 @@ public class PostsRequestBuilder : BaseCliRequestBuilder
public Tuple, List> BuildCommand()
{
var executables = new List();
- var builder = new PostItemRequestBuilder(PathParameters);
+ var builder = new KiotaPostsCLI.Client.Posts.Item.PostItemRequestBuilder(PathParameters);
executables.Add(builder.BuildDeleteCommand());
executables.Add(builder.BuildGetCommand());
executables.Add(builder.BuildPatchCommand());
@@ -59,7 +60,7 @@ public Command BuildCreateCommand()
var reqAdapter = invocationContext.GetRequestAdapter();
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(body));
var parseNode = ParseNodeFactoryRegistry.DefaultInstance.GetRootParseNode("application/json", stream);
- var model = parseNode.GetObjectValue(Post.CreateFromDiscriminatorValue);
+ var model = parseNode.GetObjectValue(KiotaPostsCLI.Client.Models.Post.CreateFromDiscriminatorValue);
if (model is null) {
Console.Error.WriteLine("No model data to send.");
return;
@@ -115,14 +116,14 @@ public Command BuildListCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
public PostsRequestBuilder(Dictionary pathParameters) : base("{+baseurl}/posts{?title*,userId*}", pathParameters)
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
public PostsRequestBuilder(string rawUrl) : base("{+baseurl}/posts{?title*,userId*}", rawUrl)
@@ -135,11 +136,11 @@ public PostsRequestBuilder(string rawUrl) : base("{+baseurl}/posts{?title*,userI
/// 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(Method.GET, UrlTemplate, PathParameters);
@@ -155,11 +156,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Post body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(KiotaPostsCLI.Client.Models.Post body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(Post body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(KiotaPostsCLI.Client.Models.Post body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
diff --git a/get-started/quickstart/cli/src/Client/PostsClient.cs b/get-started/quickstart/cli/src/Client/PostsClient.cs
index fa03c44a6..be6ae7959 100644
--- a/get-started/quickstart/cli/src/Client/PostsClient.cs
+++ b/get-started/quickstart/cli/src/Client/PostsClient.cs
@@ -15,11 +15,12 @@
using System.Text;
using System.Threading.Tasks;
using System;
-namespace KiotaPostsCLI.Client {
+namespace KiotaPostsCLI.Client
+{
///
/// The main entry point of the SDK, exposes the configuration and the fluent API.
///
- public class PostsClient : BaseCliRequestBuilder
+ public class PostsClient : BaseCliRequestBuilder
{
///
/// The posts property
@@ -29,7 +30,7 @@ public Command BuildPostsNavCommand()
{
var command = new Command("posts");
command.Description = "The posts property";
- var builder = new PostsRequestBuilder(PathParameters);
+ var builder = new KiotaPostsCLI.Client.Posts.PostsRequestBuilder(PathParameters);
var execCommands = new List();
var nonExecCommands = new List();
execCommands.Add(builder.BuildCreateCommand());
@@ -48,7 +49,7 @@ public Command BuildPostsNavCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// A
public Command BuildRootCommand()
@@ -59,7 +60,7 @@ public Command BuildRootCommand()
return command;
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public PostsClient() : base("{+baseurl}", new Dictionary())
{
diff --git a/get-started/quickstart/cli/src/Client/kiota-lock.json b/get-started/quickstart/cli/src/Client/kiota-lock.json
index dd484517a..1ec244051 100644
--- a/get-started/quickstart/cli/src/Client/kiota-lock.json
+++ b/get-started/quickstart/cli/src/Client/kiota-lock.json
@@ -2,13 +2,14 @@
"descriptionHash": "37FE8D63AB108F248AAA5632A5D37D625F8B9E3A6C439952B4029B0AF49579F337028FE07768B89D6F9210460D77E116F312CB505A43E8EB877131E772464F3B",
"descriptionLocation": "../../../posts-api.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.14.0",
+ "kiotaVersion": "1.15.0",
"clientClassName": "PostsClient",
"clientNamespaceName": "KiotaPostsCLI.Client",
"language": "CLI",
"usesBackingStore": false,
"excludeBackwardCompatible": false,
"includeAdditionalData": true,
+ "disableSSLValidation": false,
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
diff --git a/get-started/quickstart/dotnet/src/Client/Models/Post.cs b/get-started/quickstart/dotnet/src/Client/Models/Post.cs
index cad351ceb..0d994e594 100644
--- a/get-started/quickstart/dotnet/src/Client/Models/Post.cs
+++ b/get-started/quickstart/dotnet/src/Client/Models/Post.cs
@@ -4,9 +4,10 @@
using System.IO;
using System.Linq;
using System;
-namespace KiotaPosts.Client.Models {
+namespace KiotaPosts.Client.Models
+{
#pragma warning disable CS1591
- public class Post : IAdditionalDataHolder, IParsable
+ public class Post : IAdditionalDataHolder, IParsable
#pragma warning restore CS1591
{
/// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
@@ -32,7 +33,7 @@ public class Post : IAdditionalDataHolder, IParsable
/// The userId property
public int? UserId { get; set; }
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
public Post()
{
@@ -41,12 +42,12 @@ public Post()
///
/// Creates a new instance of the appropriate class based on discriminator value
///
- /// A
+ /// A
/// The parse node to use to read the discriminator value and create the object
- public static Post CreateFromDiscriminatorValue(IParseNode parseNode)
+ public static KiotaPosts.Client.Models.Post CreateFromDiscriminatorValue(IParseNode parseNode)
{
_ = parseNode ?? throw new ArgumentNullException(nameof(parseNode));
- return new Post();
+ return new KiotaPosts.Client.Models.Post();
}
///
/// The deserialization information for the current model
@@ -56,10 +57,10 @@ public virtual IDictionary> GetFieldDeserializers()
{
return new Dictionary>
{
- {"body", n => { Body = n.GetStringValue(); } },
- {"id", n => { Id = n.GetIntValue(); } },
- {"title", n => { Title = n.GetStringValue(); } },
- {"userId", n => { UserId = n.GetIntValue(); } },
+ { "body", n => { Body = n.GetStringValue(); } },
+ { "id", n => { Id = n.GetIntValue(); } },
+ { "title", n => { Title = n.GetStringValue(); } },
+ { "userId", n => { UserId = n.GetIntValue(); } },
};
}
///
diff --git a/get-started/quickstart/dotnet/src/Client/Posts/Item/PostItemRequestBuilder.cs b/get-started/quickstart/dotnet/src/Client/Posts/Item/PostItemRequestBuilder.cs
index a0eb053ad..4a9115966 100644
--- a/get-started/quickstart/dotnet/src/Client/Posts/Item/PostItemRequestBuilder.cs
+++ b/get-started/quickstart/dotnet/src/Client/Posts/Item/PostItemRequestBuilder.cs
@@ -8,14 +8,15 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace KiotaPosts.Client.Posts.Item {
+namespace KiotaPosts.Client.Posts.Item
+{
///
/// Builds and executes requests for operations under \posts\{post-id}
///
- public class PostItemRequestBuilder : BaseRequestBuilder
+ public class PostItemRequestBuilder : BaseRequestBuilder
{
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -23,7 +24,7 @@ public PostItemRequestBuilder(Dictionary pathParameters, IReques
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -51,40 +52,40 @@ public async Task DeleteAsync(Action
/// Get post by ID
///
- /// A
+ /// A
/// 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);
- return await RequestAdapter.SendAsync(requestInfo, Post.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, KiotaPosts.Client.Models.Post.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
}
///
/// Update post
///
- /// A
+ /// A
/// 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(Post body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PatchAsync(KiotaPosts.Client.Models.Post body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PatchAsync(Post body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PatchAsync(KiotaPosts.Client.Models.Post body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPatchRequestInformation(body, requestConfiguration);
- return await RequestAdapter.SendAsync(requestInfo, Post.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, KiotaPosts.Client.Models.Post.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
}
///
/// Delete post
@@ -131,11 +132,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Post body, Action>? requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(KiotaPosts.Client.Models.Post body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPatchRequestInformation(Post body, Action> requestConfiguration = default)
+ public RequestInformation ToPatchRequestInformation(KiotaPosts.Client.Models.Post body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -148,31 +149,31 @@ public RequestInformation ToPatchRequestInformation(Post body, Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public PostItemRequestBuilder WithUrl(string rawUrl)
+ public KiotaPosts.Client.Posts.Item.PostItemRequestBuilder WithUrl(string rawUrl)
{
- return new PostItemRequestBuilder(rawUrl, RequestAdapter);
+ return new KiotaPosts.Client.Posts.Item.PostItemRequestBuilder(rawUrl, RequestAdapter);
}
///
/// Configuration for the request such as headers, query parameters, and middleware options.
///
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- public class PostItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration
+ public class PostItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration
{
}
///
/// Configuration for the request such as headers, query parameters, and middleware options.
///
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- public class PostItemRequestBuilderGetRequestConfiguration : RequestConfiguration
+ public class PostItemRequestBuilderGetRequestConfiguration : RequestConfiguration
{
}
///
/// Configuration for the request such as headers, query parameters, and middleware options.
///
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- public class PostItemRequestBuilderPatchRequestConfiguration : RequestConfiguration
+ public class PostItemRequestBuilderPatchRequestConfiguration : RequestConfiguration
{
}
}
diff --git a/get-started/quickstart/dotnet/src/Client/Posts/PostsRequestBuilder.cs b/get-started/quickstart/dotnet/src/Client/Posts/PostsRequestBuilder.cs
index 54baad461..fd2ccb717 100644
--- a/get-started/quickstart/dotnet/src/Client/Posts/PostsRequestBuilder.cs
+++ b/get-started/quickstart/dotnet/src/Client/Posts/PostsRequestBuilder.cs
@@ -9,39 +9,40 @@
using System.Threading.Tasks;
using System.Threading;
using System;
-namespace KiotaPosts.Client.Posts {
+namespace KiotaPosts.Client.Posts
+{
///
/// Builds and executes requests for operations under \posts
///
- public class PostsRequestBuilder : BaseRequestBuilder
+ public class PostsRequestBuilder : BaseRequestBuilder
{
/// Gets an item from the KiotaPosts.Client.posts.item collection
/// key: id of post
- /// A
- public PostItemRequestBuilder this[int position]
+ /// A
+ public KiotaPosts.Client.Posts.Item.PostItemRequestBuilder this[int position]
{
get
{
var urlTplParams = new Dictionary(PathParameters);
urlTplParams.Add("post%2Did", position);
- return new PostItemRequestBuilder(urlTplParams, RequestAdapter);
+ return new KiotaPosts.Client.Posts.Item.PostItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
/// Gets an item from the KiotaPosts.Client.posts.item collection
/// key: id of post
- /// A
+ /// A
[Obsolete("This indexer is deprecated and will be removed in the next major version. Use the one with the typed parameter instead.")]
- public PostItemRequestBuilder this[string position]
+ public KiotaPosts.Client.Posts.Item.PostItemRequestBuilder this[string position]
{
get
{
var urlTplParams = new Dictionary(PathParameters);
if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("post%2Did", position);
- return new PostItemRequestBuilder(urlTplParams, RequestAdapter);
+ return new KiotaPosts.Client.Posts.Item.PostItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// Path parameters for the request
/// The request adapter to use to execute the requests.
@@ -49,7 +50,7 @@ public PostsRequestBuilder(Dictionary pathParameters, IRequestAd
{
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The raw URL to use for the request builder.
/// The request adapter to use to execute the requests.
@@ -59,41 +60,41 @@ public PostsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
///
/// Get posts
///
- /// A List<Post>
+ /// A List<KiotaPosts.Client.Models.Post>
/// 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 collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, Post.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ var collectionResult = await RequestAdapter.SendCollectionAsync(requestInfo, KiotaPosts.Client.Models.Post.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
return collectionResult?.ToList();
}
///
/// Create post
///
- /// A
+ /// A
/// 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(Post body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(KiotaPosts.Client.Models.Post body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
- public async Task PostAsync(Post body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
+ public async Task PostAsync(KiotaPosts.Client.Models.Post body, Action> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
- return await RequestAdapter.SendAsync(requestInfo, Post.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
+ return await RequestAdapter.SendAsync(requestInfo, KiotaPosts.Client.Models.Post.CreateFromDiscriminatorValue, default, cancellationToken).ConfigureAwait(false);
}
///
/// Get posts
@@ -102,11 +103,11 @@ public async Task PostAsync(Post body, ActionConfiguration 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(Method.GET, UrlTemplate, PathParameters);
@@ -122,11 +123,11 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration 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(Post body, Action>? requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(KiotaPosts.Client.Models.Post body, Action>? requestConfiguration = default)
{
#nullable restore
#else
- public RequestInformation ToPostRequestInformation(Post body, Action> requestConfiguration = default)
+ public RequestInformation ToPostRequestInformation(KiotaPosts.Client.Models.Post body, Action> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
@@ -139,11 +140,11 @@ public RequestInformation ToPostRequestInformation(Post body, Action
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
///
- /// A
+ /// A
/// The raw URL to use for the request builder.
- public PostsRequestBuilder WithUrl(string rawUrl)
+ public KiotaPosts.Client.Posts.PostsRequestBuilder WithUrl(string rawUrl)
{
- return new PostsRequestBuilder(rawUrl, RequestAdapter);
+ return new KiotaPosts.Client.Posts.PostsRequestBuilder(rawUrl, RequestAdapter);
}
///
/// Get posts
@@ -168,14 +169,14 @@ public class PostsRequestBuilderGetQueryParameters
/// Configuration for the request such as headers, query parameters, and middleware options.
///
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- public class PostsRequestBuilderGetRequestConfiguration : RequestConfiguration
+ public class PostsRequestBuilderGetRequestConfiguration : RequestConfiguration
{
}
///
/// Configuration for the request such as headers, query parameters, and middleware options.
///
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
- public class PostsRequestBuilderPostRequestConfiguration : RequestConfiguration
+ public class PostsRequestBuilderPostRequestConfiguration : RequestConfiguration
{
}
}
diff --git a/get-started/quickstart/dotnet/src/Client/PostsClient.cs b/get-started/quickstart/dotnet/src/Client/PostsClient.cs
index 3380520ea..dcb4c209d 100644
--- a/get-started/quickstart/dotnet/src/Client/PostsClient.cs
+++ b/get-started/quickstart/dotnet/src/Client/PostsClient.cs
@@ -11,19 +11,20 @@
using System.Linq;
using System.Threading.Tasks;
using System;
-namespace KiotaPosts.Client {
+namespace KiotaPosts.Client
+{
///
/// The main entry point of the SDK, exposes the configuration and the fluent API.
///
- public class PostsClient : BaseRequestBuilder
+ public class PostsClient : BaseRequestBuilder
{
/// The posts property
- public PostsRequestBuilder Posts
+ public KiotaPosts.Client.Posts.PostsRequestBuilder Posts
{
- get => new PostsRequestBuilder(PathParameters, RequestAdapter);
+ get => new KiotaPosts.Client.Posts.PostsRequestBuilder(PathParameters, RequestAdapter);
}
///
- /// Instantiates a new and sets the default values.
+ /// Instantiates a new and sets the default values.
///
/// The request adapter to use to execute the requests.
public PostsClient(IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}", new Dictionary())
diff --git a/get-started/quickstart/dotnet/src/Client/kiota-lock.json b/get-started/quickstart/dotnet/src/Client/kiota-lock.json
index 3acb5d1bc..7a9b93ed0 100644
--- a/get-started/quickstart/dotnet/src/Client/kiota-lock.json
+++ b/get-started/quickstart/dotnet/src/Client/kiota-lock.json
@@ -2,13 +2,14 @@
"descriptionHash": "37FE8D63AB108F248AAA5632A5D37D625F8B9E3A6C439952B4029B0AF49579F337028FE07768B89D6F9210460D77E116F312CB505A43E8EB877131E772464F3B",
"descriptionLocation": "../../../posts-api.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.14.0",
+ "kiotaVersion": "1.15.0",
"clientClassName": "PostsClient",
"clientNamespaceName": "KiotaPosts.Client",
"language": "CSharp",
"usesBackingStore": false,
"excludeBackwardCompatible": false,
"includeAdditionalData": true,
+ "disableSSLValidation": false,
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
diff --git a/get-started/quickstart/go/client/kiota-lock.json b/get-started/quickstart/go/client/kiota-lock.json
index 32fd7918f..487c399d3 100644
--- a/get-started/quickstart/go/client/kiota-lock.json
+++ b/get-started/quickstart/go/client/kiota-lock.json
@@ -2,13 +2,14 @@
"descriptionHash": "37FE8D63AB108F248AAA5632A5D37D625F8B9E3A6C439952B4029B0AF49579F337028FE07768B89D6F9210460D77E116F312CB505A43E8EB877131E772464F3B",
"descriptionLocation": "../../posts-api.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.14.0",
+ "kiotaVersion": "1.15.0",
"clientClassName": "PostsClient",
"clientNamespaceName": "kiota_posts/client",
"language": "Go",
"usesBackingStore": false,
"excludeBackwardCompatible": false,
"includeAdditionalData": true,
+ "disableSSLValidation": false,
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
diff --git a/get-started/quickstart/java/app/src/main/java/kiotaposts/client/kiota-lock.json b/get-started/quickstart/java/app/src/main/java/kiotaposts/client/kiota-lock.json
index 9b92f2fd0..d347e803f 100644
--- a/get-started/quickstart/java/app/src/main/java/kiotaposts/client/kiota-lock.json
+++ b/get-started/quickstart/java/app/src/main/java/kiotaposts/client/kiota-lock.json
@@ -2,13 +2,14 @@
"descriptionHash": "37FE8D63AB108F248AAA5632A5D37D625F8B9E3A6C439952B4029B0AF49579F337028FE07768B89D6F9210460D77E116F312CB505A43E8EB877131E772464F3B",
"descriptionLocation": "../../../../../../../posts-api.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.14.0",
+ "kiotaVersion": "1.15.0",
"clientClassName": "PostsClient",
"clientNamespaceName": "kiotaposts.client",
"language": "Java",
"usesBackingStore": false,
"excludeBackwardCompatible": false,
"includeAdditionalData": true,
+ "disableSSLValidation": false,
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
diff --git a/get-started/quickstart/php/client/PostsApiClient.php b/get-started/quickstart/php/client/PostsApiClient.php
index 194cfbab6..b8283a890 100644
--- a/get-started/quickstart/php/client/PostsApiClient.php
+++ b/get-started/quickstart/php/client/PostsApiClient.php
@@ -6,8 +6,11 @@
use Microsoft\Kiota\Abstractions\ApiClientBuilder;
use Microsoft\Kiota\Abstractions\BaseRequestBuilder;
use Microsoft\Kiota\Abstractions\RequestAdapter;
+use Microsoft\Kiota\Serialization\Form\FormParseNodeFactory;
+use Microsoft\Kiota\Serialization\Form\FormSerializationWriterFactory;
use Microsoft\Kiota\Serialization\Json\JsonParseNodeFactory;
use Microsoft\Kiota\Serialization\Json\JsonSerializationWriterFactory;
+use Microsoft\Kiota\Serialization\Multipart\MultipartSerializationWriterFactory;
use Microsoft\Kiota\Serialization\Text\TextParseNodeFactory;
use Microsoft\Kiota\Serialization\Text\TextSerializationWriterFactory;
@@ -31,8 +34,11 @@ public function __construct(RequestAdapter $requestAdapter) {
parent::__construct($requestAdapter, [], '{+baseurl}');
ApiClientBuilder::registerDefaultSerializer(JsonSerializationWriterFactory::class);
ApiClientBuilder::registerDefaultSerializer(TextSerializationWriterFactory::class);
+ ApiClientBuilder::registerDefaultSerializer(FormSerializationWriterFactory::class);
+ ApiClientBuilder::registerDefaultSerializer(MultipartSerializationWriterFactory::class);
ApiClientBuilder::registerDefaultDeserializer(JsonParseNodeFactory::class);
ApiClientBuilder::registerDefaultDeserializer(TextParseNodeFactory::class);
+ ApiClientBuilder::registerDefaultDeserializer(FormParseNodeFactory::class);
if (empty($this->requestAdapter->getBaseUrl())) {
$this->requestAdapter->setBaseUrl('https://jsonplaceholder.typicode.com');
}
diff --git a/get-started/quickstart/php/client/kiota-lock.json b/get-started/quickstart/php/client/kiota-lock.json
index e43151aa2..3c6546da4 100644
--- a/get-started/quickstart/php/client/kiota-lock.json
+++ b/get-started/quickstart/php/client/kiota-lock.json
@@ -2,13 +2,14 @@
"descriptionHash": "37FE8D63AB108F248AAA5632A5D37D625F8B9E3A6C439952B4029B0AF49579F337028FE07768B89D6F9210460D77E116F312CB505A43E8EB877131E772464F3B",
"descriptionLocation": "../../posts-api.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.14.0",
+ "kiotaVersion": "1.15.0",
"clientClassName": "PostsApiClient",
"clientNamespaceName": "KiotaPosts\\Client",
"language": "PHP",
"usesBackingStore": false,
"excludeBackwardCompatible": false,
"includeAdditionalData": true,
+ "disableSSLValidation": false,
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
diff --git a/get-started/quickstart/python/client/kiota-lock.json b/get-started/quickstart/python/client/kiota-lock.json
index 227237bfc..8e2b2f387 100644
--- a/get-started/quickstart/python/client/kiota-lock.json
+++ b/get-started/quickstart/python/client/kiota-lock.json
@@ -2,13 +2,14 @@
"descriptionHash": "37FE8D63AB108F248AAA5632A5D37D625F8B9E3A6C439952B4029B0AF49579F337028FE07768B89D6F9210460D77E116F312CB505A43E8EB877131E772464F3B",
"descriptionLocation": "../../posts-api.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.14.0",
+ "kiotaVersion": "1.15.0",
"clientClassName": "PostsClient",
"clientNamespaceName": "client",
"language": "Python",
"usesBackingStore": false,
"excludeBackwardCompatible": false,
"includeAdditionalData": true,
+ "disableSSLValidation": false,
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",
diff --git a/get-started/quickstart/python/client/models/post.py b/get-started/quickstart/python/client/models/post.py
index d23d4a6e4..f221e3e6c 100644
--- a/get-started/quickstart/python/client/models/post.py
+++ b/get-started/quickstart/python/client/models/post.py
@@ -18,7 +18,7 @@ class Post(AdditionalDataHolder, Parsable):
user_id: Optional[int] = None
@staticmethod
- def create_from_discriminator_value(parse_node: Optional[ParseNode] = None) -> Post:
+ def create_from_discriminator_value(parse_node: ParseNode) -> Post:
"""
Creates a new instance of the appropriate class based on discriminator value
param parse_node: The parse node to use to read the discriminator value and create the object
diff --git a/get-started/quickstart/python/client/posts/item/post_item_request_builder.py b/get-started/quickstart/python/client/posts/item/post_item_request_builder.py
index 6e5ad8975..495deabd4 100644
--- a/get-started/quickstart/python/client/posts/item/post_item_request_builder.py
+++ b/get-started/quickstart/python/client/posts/item/post_item_request_builder.py
@@ -1,6 +1,8 @@
from __future__ import annotations
+from dataclasses import dataclass, field
from kiota_abstractions.base_request_builder import BaseRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
+from kiota_abstractions.default_query_parameters import QueryParameters
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
@@ -8,6 +10,7 @@
from kiota_abstractions.request_option import RequestOption
from kiota_abstractions.serialization import Parsable, ParsableFactory
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
+from warnings import warn
if TYPE_CHECKING:
from ...models.post import Post
@@ -25,7 +28,7 @@ def __init__(self,request_adapter: RequestAdapter, path_parameters: Union[str, D
"""
super().__init__(request_adapter, "{+baseurl}/posts/{post%2Did}", path_parameters)
- async def delete(self,request_configuration: Optional[RequestConfiguration] = None) -> bytes:
+ async def delete(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> bytes:
"""
Delete post
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
@@ -38,7 +41,7 @@ async def delete(self,request_configuration: Optional[RequestConfiguration] = No
raise Exception("Http core is null")
return await self.request_adapter.send_primitive_async(request_info, "bytes", None)
- async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[Post]:
+ async def get(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[Post]:
"""
Get post by ID
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
@@ -53,7 +56,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None)
return await self.request_adapter.send_async(request_info, Post, None)
- async def patch(self,body: Optional[Post] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Post]:
+ async def patch(self,body: Post, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[Post]:
"""
Update post
param body: The request body
@@ -71,7 +74,7 @@ async def patch(self,body: Optional[Post] = None, request_configuration: Optiona
return await self.request_adapter.send_async(request_info, Post, None)
- def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation:
+ def to_delete_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Delete post
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
@@ -81,7 +84,7 @@ def to_delete_request_information(self,request_configuration: Optional[RequestCo
request_info.configure(request_configuration)
return request_info
- def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation:
+ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Get post by ID
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
@@ -92,7 +95,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi
request_info.headers.try_add("Accept", "application/json")
return request_info
- def to_patch_request_information(self,body: Optional[Post] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation:
+ def to_patch_request_information(self,body: Post, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Update post
param body: The request body
@@ -107,7 +110,7 @@ def to_patch_request_information(self,body: Optional[Post] = None, request_confi
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
return request_info
- def with_url(self,raw_url: Optional[str] = None) -> PostItemRequestBuilder:
+ def with_url(self,raw_url: str) -> PostItemRequestBuilder:
"""
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
param raw_url: The raw URL to use for the request builder.
@@ -117,4 +120,25 @@ def with_url(self,raw_url: Optional[str] = None) -> PostItemRequestBuilder:
raise TypeError("raw_url cannot be null.")
return PostItemRequestBuilder(self.request_adapter, raw_url)
+ @dataclass
+ class PostItemRequestBuilderDeleteRequestConfiguration(RequestConfiguration[QueryParameters]):
+ """
+ Configuration for the request such as headers, query parameters, and middleware options.
+ """
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
+
+ @dataclass
+ class PostItemRequestBuilderGetRequestConfiguration(RequestConfiguration[QueryParameters]):
+ """
+ Configuration for the request such as headers, query parameters, and middleware options.
+ """
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
+
+ @dataclass
+ class PostItemRequestBuilderPatchRequestConfiguration(RequestConfiguration[QueryParameters]):
+ """
+ Configuration for the request such as headers, query parameters, and middleware options.
+ """
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
+
diff --git a/get-started/quickstart/python/client/posts/posts_request_builder.py b/get-started/quickstart/python/client/posts/posts_request_builder.py
index 49bd7b4d9..b0ca69cb0 100644
--- a/get-started/quickstart/python/client/posts/posts_request_builder.py
+++ b/get-started/quickstart/python/client/posts/posts_request_builder.py
@@ -2,6 +2,7 @@
from dataclasses import dataclass, field
from kiota_abstractions.base_request_builder import BaseRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
+from kiota_abstractions.default_query_parameters import QueryParameters
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
@@ -9,6 +10,7 @@
from kiota_abstractions.request_option import RequestOption
from kiota_abstractions.serialization import Parsable, ParsableFactory
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
+from warnings import warn
if TYPE_CHECKING:
from ..models.post import Post
@@ -41,7 +43,7 @@ def by_post_id(self,post_id: int) -> PostItemRequestBuilder:
url_tpl_params["post%2Did"] = post_id
return PostItemRequestBuilder(self.request_adapter, url_tpl_params)
- async def get(self,request_configuration: Optional[RequestConfiguration] = None) -> Optional[List[Post]]:
+ async def get(self,request_configuration: Optional[RequestConfiguration[PostsRequestBuilderGetQueryParameters]] = None) -> Optional[List[Post]]:
"""
Get posts
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
@@ -56,7 +58,7 @@ async def get(self,request_configuration: Optional[RequestConfiguration] = None)
return await self.request_adapter.send_collection_async(request_info, Post, None)
- async def post(self,body: Optional[Post] = None, request_configuration: Optional[RequestConfiguration] = None) -> Optional[Post]:
+ async def post(self,body: Post, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> Optional[Post]:
"""
Create post
param body: The request body
@@ -74,7 +76,7 @@ async def post(self,body: Optional[Post] = None, request_configuration: Optional
return await self.request_adapter.send_async(request_info, Post, None)
- def to_get_request_information(self,request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation:
+ def to_get_request_information(self,request_configuration: Optional[RequestConfiguration[PostsRequestBuilderGetQueryParameters]] = None) -> RequestInformation:
"""
Get posts
param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
@@ -85,7 +87,7 @@ def to_get_request_information(self,request_configuration: Optional[RequestConfi
request_info.headers.try_add("Accept", "application/json")
return request_info
- def to_post_request_information(self,body: Optional[Post] = None, request_configuration: Optional[RequestConfiguration] = None) -> RequestInformation:
+ def to_post_request_information(self,body: Post, request_configuration: Optional[RequestConfiguration[QueryParameters]] = None) -> RequestInformation:
"""
Create post
param body: The request body
@@ -100,7 +102,7 @@ def to_post_request_information(self,body: Optional[Post] = None, request_config
request_info.set_content_from_parsable(self.request_adapter, "application/json", body)
return request_info
- def with_url(self,raw_url: Optional[str] = None) -> PostsRequestBuilder:
+ def with_url(self,raw_url: str) -> PostsRequestBuilder:
"""
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
param raw_url: The raw URL to use for the request builder.
@@ -115,7 +117,7 @@ class PostsRequestBuilderGetQueryParameters():
"""
Get posts
"""
- def get_query_parameter(self,original_name: Optional[str] = None) -> str:
+ def get_query_parameter(self,original_name: str) -> str:
"""
Maps the query parameters names to their encoded names for the URI template parsing.
param original_name: The original query parameter name in the class.
@@ -136,4 +138,18 @@ def get_query_parameter(self,original_name: Optional[str] = None) -> str:
user_id: Optional[int] = None
+ @dataclass
+ class PostsRequestBuilderGetRequestConfiguration(RequestConfiguration[PostsRequestBuilderGetQueryParameters]):
+ """
+ Configuration for the request such as headers, query parameters, and middleware options.
+ """
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
+
+ @dataclass
+ class PostsRequestBuilderPostRequestConfiguration(RequestConfiguration[QueryParameters]):
+ """
+ Configuration for the request such as headers, query parameters, and middleware options.
+ """
+ warn("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.", DeprecationWarning)
+
diff --git a/get-started/quickstart/typescript/client/kiota-lock.json b/get-started/quickstart/typescript/client/kiota-lock.json
index 37effc731..bf50e5eb8 100644
--- a/get-started/quickstart/typescript/client/kiota-lock.json
+++ b/get-started/quickstart/typescript/client/kiota-lock.json
@@ -2,13 +2,14 @@
"descriptionHash": "37FE8D63AB108F248AAA5632A5D37D625F8B9E3A6C439952B4029B0AF49579F337028FE07768B89D6F9210460D77E116F312CB505A43E8EB877131E772464F3B",
"descriptionLocation": "../../posts-api.yml",
"lockFileVersion": "1.0.0",
- "kiotaVersion": "1.14.0",
+ "kiotaVersion": "1.15.0",
"clientClassName": "PostsClient",
"clientNamespaceName": "ApiSdk",
"language": "TypeScript",
"usesBackingStore": false,
"excludeBackwardCompatible": false,
"includeAdditionalData": true,
+ "disableSSLValidation": false,
"serializers": [
"Microsoft.Kiota.Serialization.Json.JsonSerializationWriterFactory",
"Microsoft.Kiota.Serialization.Text.TextSerializationWriterFactory",