From 910ca35fd6943c5a38140f4a2698b974bbcd022c Mon Sep 17 00:00:00 2001 From: Jorge Rangel <102122018+jorgerangel-msft@users.noreply.github.com> Date: Thu, 7 Nov 2024 17:23:58 -0600 Subject: [PATCH] [http-client-csharp] Make RequestOptions parameter optional in protocol methods (#5018) fixes: https://github.com/microsoft/typespec/issues/4990 contributes to https://github.com/microsoft/typespec/issues/4903 --- .../src/Primitives/ScmKnownParameters.cs | 5 + .../Providers/ScmMethodProviderCollection.cs | 64 +++++++++++-- .../ClientProviders/ClientProviderTests.cs | 95 ++++++++++++++++++- .../naming/src/Generated/ClientModel.cs | 8 +- .../naming/src/Generated/NamingClient.cs | 12 +-- .../client/naming/src/Generated/UnionEnum.cs | 8 +- .../encode/bytes/src/Generated/Property.cs | 16 ++-- .../encode/bytes/src/Generated/RequestBody.cs | 20 ++-- .../encode/datetime/src/Generated/Property.cs | 20 ++-- .../encode/duration/src/Generated/Property.cs | 24 ++--- .../basic/src/Generated/ExplicitBody.cs | 4 +- .../basic/src/Generated/ImplicitBody.cs | 4 +- .../parameters/spread/src/Generated/Alias.cs | 20 ++-- .../parameters/spread/src/Generated/Model.cs | 16 ++-- .../media-type/src/Generated/StringBody.cs | 8 +- .../multipart/src/Generated/FormData.cs | 28 +++--- .../src/Generated/FormDataHttpParts.cs | 4 +- .../Generated/FormDataHttpPartsContentType.cs | 12 +-- .../Generated/FormDataHttpPartsNonString.cs | 4 +- .../Generated/ModelWithArrayOfModelValue.cs | 4 +- .../src/Generated/ModelWithAttributesValue.cs | 4 +- .../src/Generated/ModelWithDictionaryValue.cs | 4 +- .../src/Generated/ModelWithEmptyArrayValue.cs | 4 +- .../Generated/ModelWithEncodedNamesValue.cs | 4 +- .../Generated/ModelWithOptionalFieldValue.cs | 4 +- .../Generated/ModelWithRenamedArraysValue.cs | 4 +- .../Generated/ModelWithRenamedFieldsValue.cs | 4 +- .../Generated/ModelWithSimpleArraysValue.cs | 4 +- .../xml/src/Generated/ModelWithTextValue.cs | 4 +- .../Generated/ModelWithUnwrappedArrayValue.cs | 4 +- .../xml/src/Generated/SimpleModelValue.cs | 4 +- .../type/array/src/Generated/BooleanValue.cs | 4 +- .../type/array/src/Generated/DatetimeValue.cs | 4 +- .../type/array/src/Generated/DurationValue.cs | 4 +- .../type/array/src/Generated/Float32Value.cs | 4 +- .../type/array/src/Generated/Int32Value.cs | 4 +- .../type/array/src/Generated/Int64Value.cs | 4 +- .../type/array/src/Generated/ModelValue.cs | 4 +- .../src/Generated/NullableBooleanValue.cs | 4 +- .../array/src/Generated/NullableFloatValue.cs | 4 +- .../array/src/Generated/NullableInt32Value.cs | 4 +- .../array/src/Generated/NullableModelValue.cs | 4 +- .../src/Generated/NullableStringValue.cs | 4 +- .../type/array/src/Generated/StringValue.cs | 4 +- .../type/array/src/Generated/UnknownValue.cs | 4 +- .../dictionary/src/Generated/BooleanValue.cs | 4 +- .../dictionary/src/Generated/DatetimeValue.cs | 4 +- .../dictionary/src/Generated/DurationValue.cs | 4 +- .../dictionary/src/Generated/Float32Value.cs | 4 +- .../dictionary/src/Generated/Int32Value.cs | 4 +- .../dictionary/src/Generated/Int64Value.cs | 4 +- .../dictionary/src/Generated/ModelValue.cs | 4 +- .../src/Generated/NullableFloatValue.cs | 4 +- .../src/Generated/RecursiveModelValue.cs | 4 +- .../dictionary/src/Generated/StringValue.cs | 4 +- .../dictionary/src/Generated/UnknownValue.cs | 4 +- .../enum/extensible/src/Generated/String.cs | 8 +- .../type/enum/fixed/src/Generated/String.cs | 8 +- .../model/empty/src/Generated/EmptyClient.cs | 8 +- .../src/Generated/EnumDiscriminatorClient.cs | 8 +- .../Generated/SingleDiscriminatorClient.cs | 8 +- .../model/usage/src/Generated/UsageClient.cs | 8 +- .../Generated/ExtendsDifferentSpreadFloat.cs | 4 +- .../Generated/ExtendsDifferentSpreadModel.cs | 4 +- .../ExtendsDifferentSpreadModelArray.cs | 4 +- .../Generated/ExtendsDifferentSpreadString.cs | 4 +- .../src/Generated/ExtendsFloat.cs | 4 +- .../src/Generated/ExtendsModel.cs | 4 +- .../src/Generated/ExtendsModelArray.cs | 4 +- .../src/Generated/ExtendsString.cs | 4 +- .../src/Generated/ExtendsUnknown.cs | 4 +- .../src/Generated/ExtendsUnknownDerived.cs | 4 +- .../Generated/ExtendsUnknownDiscriminated.cs | 4 +- .../src/Generated/IsFloat.cs | 4 +- .../src/Generated/IsModel.cs | 4 +- .../src/Generated/IsModelArray.cs | 4 +- .../src/Generated/IsString.cs | 4 +- .../src/Generated/IsUnknown.cs | 4 +- .../src/Generated/IsUnknownDerived.cs | 4 +- .../src/Generated/IsUnknownDiscriminated.cs | 4 +- .../src/Generated/MultipleSpread.cs | 4 +- .../src/Generated/SpreadDifferentFloat.cs | 4 +- .../src/Generated/SpreadDifferentModel.cs | 4 +- .../Generated/SpreadDifferentModelArray.cs | 4 +- .../src/Generated/SpreadDifferentString.cs | 4 +- .../src/Generated/SpreadFloat.cs | 4 +- .../src/Generated/SpreadModel.cs | 4 +- .../src/Generated/SpreadModelArray.cs | 4 +- .../SpreadRecordDiscriminatedUnion.cs | 4 +- .../SpreadRecordNonDiscriminatedUnion.cs | 4 +- .../SpreadRecordNonDiscriminatedUnion2.cs | 4 +- .../SpreadRecordNonDiscriminatedUnion3.cs | 4 +- .../src/Generated/SpreadRecordUnion.cs | 4 +- .../src/Generated/SpreadString.cs | 4 +- .../property/nullable/src/Generated/Bytes.cs | 8 +- .../nullable/src/Generated/CollectionsByte.cs | 8 +- .../src/Generated/CollectionsModel.cs | 8 +- .../src/Generated/CollectionsString.cs | 8 +- .../nullable/src/Generated/Datetime.cs | 8 +- .../nullable/src/Generated/Duration.cs | 8 +- .../property/nullable/src/Generated/String.cs | 8 +- .../src/Generated/BooleanLiteral.cs | 8 +- .../optionality/src/Generated/Bytes.cs | 8 +- .../src/Generated/CollectionsByte.cs | 8 +- .../src/Generated/CollectionsModel.cs | 8 +- .../optionality/src/Generated/Datetime.cs | 8 +- .../optionality/src/Generated/Duration.cs | 8 +- .../optionality/src/Generated/FloatLiteral.cs | 8 +- .../optionality/src/Generated/IntLiteral.cs | 8 +- .../optionality/src/Generated/PlainDate.cs | 8 +- .../optionality/src/Generated/PlainTime.cs | 8 +- .../src/Generated/RequiredAndOptional.cs | 8 +- .../optionality/src/Generated/String.cs | 8 +- .../src/Generated/StringLiteral.cs | 8 +- .../src/Generated/UnionFloatLiteral.cs | 8 +- .../src/Generated/UnionIntLiteral.cs | 8 +- .../src/Generated/UnionStringLiteral.cs | 8 +- .../value-types/src/Generated/Boolean.cs | 4 +- .../src/Generated/BooleanLiteral.cs | 4 +- .../value-types/src/Generated/Bytes.cs | 4 +- .../src/Generated/CollectionsInt.cs | 4 +- .../src/Generated/CollectionsModel.cs | 4 +- .../src/Generated/CollectionsString.cs | 4 +- .../value-types/src/Generated/Datetime.cs | 4 +- .../value-types/src/Generated/Decimal.cs | 4 +- .../value-types/src/Generated/Decimal128.cs | 4 +- .../src/Generated/DictionaryString.cs | 4 +- .../value-types/src/Generated/Duration.cs | 4 +- .../value-types/src/Generated/Enum.cs | 4 +- .../src/Generated/ExtensibleEnum.cs | 4 +- .../value-types/src/Generated/Float.cs | 4 +- .../value-types/src/Generated/FloatLiteral.cs | 4 +- .../property/value-types/src/Generated/Int.cs | 4 +- .../value-types/src/Generated/IntLiteral.cs | 4 +- .../value-types/src/Generated/Model.cs | 4 +- .../value-types/src/Generated/Never.cs | 4 +- .../value-types/src/Generated/String.cs | 4 +- .../src/Generated/StringLiteral.cs | 4 +- .../src/Generated/UnionEnumValue.cs | 4 +- .../src/Generated/UnionFloatLiteral.cs | 4 +- .../src/Generated/UnionIntLiteral.cs | 4 +- .../src/Generated/UnionStringLiteral.cs | 4 +- .../value-types/src/Generated/UnknownArray.cs | 4 +- .../value-types/src/Generated/UnknownDict.cs | 4 +- .../value-types/src/Generated/UnknownInt.cs | 4 +- .../src/Generated/UnknownString.cs | 4 +- .../http/type/scalar/src/Generated/Boolean.cs | 4 +- .../scalar/src/Generated/Decimal128Type.cs | 4 +- .../scalar/src/Generated/Decimal128Verify.cs | 4 +- .../type/scalar/src/Generated/DecimalType.cs | 4 +- .../scalar/src/Generated/DecimalVerify.cs | 4 +- .../http/type/scalar/src/Generated/String.cs | 4 +- .../http/type/scalar/src/Generated/Unknown.cs | 4 +- .../type/union/src/Generated/EnumsOnly.cs | 4 +- .../type/union/src/Generated/FloatsOnly.cs | 4 +- .../http/type/union/src/Generated/IntsOnly.cs | 4 +- .../type/union/src/Generated/MixedLiterals.cs | 4 +- .../type/union/src/Generated/MixedTypes.cs | 4 +- .../type/union/src/Generated/ModelsOnly.cs | 4 +- .../union/src/Generated/StringAndArray.cs | 4 +- .../union/src/Generated/StringExtensible.cs | 4 +- .../src/Generated/StringExtensibleNamed.cs | 4 +- .../type/union/src/Generated/StringsOnly.cs | 4 +- .../src/Generated/UnbrandedTypeSpecClient.cs | 32 +++---- 164 files changed, 618 insertions(+), 478 deletions(-) diff --git a/packages/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Primitives/ScmKnownParameters.cs b/packages/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Primitives/ScmKnownParameters.cs index 8c81414b0f..e34ddf54b8 100644 --- a/packages/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Primitives/ScmKnownParameters.cs +++ b/packages/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Primitives/ScmKnownParameters.cs @@ -31,6 +31,11 @@ public static ParameterProvider ClientOptions(CSharpType clientOptionsType) => new("options", $"The options for configuring the client.", clientOptionsType.WithNullable(true), initializationValue: New.Instance(clientOptionsType.WithNullable(true))); public static readonly ParameterProvider KeyAuth = new("keyCredential", $"The token credential to copy", ClientModelPlugin.Instance.TypeFactory.KeyCredentialType); public static readonly ParameterProvider MatchConditionsParameter = new("matchConditions", $"The content to send as the request conditions of the request.", ClientModelPlugin.Instance.TypeFactory.MatchConditionsType, DefaultOf(ClientModelPlugin.Instance.TypeFactory.MatchConditionsType)); + public static readonly ParameterProvider OptionalRequestOptions = new( + ClientModelPlugin.Instance.TypeFactory.HttpRequestOptionsApi.ParameterName, + $"The request options, which can override default behaviors of the client pipeline on a per-call basis.", + ClientModelPlugin.Instance.TypeFactory.HttpRequestOptionsApi.HttpRequestOptionsType.WithNullable(true), + defaultValue: Null); public static readonly ParameterProvider RequestOptions = new(ClientModelPlugin.Instance.TypeFactory.HttpRequestOptionsApi.ParameterName, $"The request options, which can override default behaviors of the client pipeline on a per-call basis.", ClientModelPlugin.Instance.TypeFactory.HttpRequestOptionsApi.HttpRequestOptionsType); public static readonly ParameterProvider RequestContent = new("content", $"The content to send as the body of the request.", ClientModelPlugin.Instance.TypeFactory.RequestContentApi.RequestContentType, location: ParameterLocation.Body) { Validation = ParameterValidationType.AssertNotNull }; diff --git a/packages/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Providers/ScmMethodProviderCollection.cs b/packages/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Providers/ScmMethodProviderCollection.cs index caf44e5be1..58938c9762 100644 --- a/packages/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Providers/ScmMethodProviderCollection.cs +++ b/packages/http-client-csharp/generator/Microsoft.Generator.CSharp.ClientModel/src/Providers/ScmMethodProviderCollection.cs @@ -59,9 +59,9 @@ protected override IReadOnlyList BuildMethods() ]; } - private MethodProvider BuildConvenienceMethod(MethodProvider protocolMethod, bool isAsync) + private ScmMethodProvider BuildConvenienceMethod(MethodProvider protocolMethod, bool isAsync) { - if (EnclosingType is not ClientProvider client) + if (EnclosingType is not ClientProvider) { throw new InvalidOperationException("Protocol methods can only be built for client types."); } @@ -370,10 +370,9 @@ private IReadOnlyList GetParamConversions(IReadOnlyList? _convenienceMethodParameters; private IReadOnlyList ConvenienceMethodParameters => _convenienceMethodParameters ??= RestClientProvider.GetMethodParameters(Operation); - private MethodProvider BuildProtocolMethod(MethodProvider createRequestMethod, bool isAsync) + private ScmMethodProvider BuildProtocolMethod(MethodProvider createRequestMethod, bool isAsync) { - ClientProvider? client = EnclosingType as ClientProvider; - if (client is null) + if (EnclosingType is not ClientProvider client) { throw new InvalidOperationException("Protocol methods can only be built for client types."); } @@ -383,19 +382,40 @@ private MethodProvider BuildProtocolMethod(MethodProvider createRequestMethod, b { methodModifier |= MethodSignatureModifiers.Async; } + + ParameterProvider requestOptionsParameter = ScmKnownParameters.RequestOptions; + bool addOptionalRequestOptionsParameter = ShouldAddOptionalRequestOptionsParameter(); + + // construct the protocol method parameters from the create request method parameters + ParameterProvider[] methodParameters = new ParameterProvider[MethodParameters.Count]; + + for (var i = 0; i < MethodParameters.Count; i++) + { + var parameter = MethodParameters[i]; + if (parameter == ScmKnownParameters.RequestOptions && addOptionalRequestOptionsParameter) + { + requestOptionsParameter = ScmKnownParameters.OptionalRequestOptions; + methodParameters[i] = requestOptionsParameter; + } + else + { + methodParameters[i] = parameter; + } + } + var methodSignature = new MethodSignature( isAsync ? _cleanOperationName + "Async" : _cleanOperationName, FormattableStringHelpers.FromString(Operation.Description), methodModifier, - GetResponseType(Operation.Responses, false, isAsync, out var responseBodyType), + GetResponseType(Operation.Responses, false, isAsync, out _), $"The response returned from the service.", - MethodParameters); + methodParameters); var processMessageName = isAsync ? "ProcessMessageAsync" : "ProcessMessage"; MethodBodyStatement[] methodBody = [ - UsingDeclare("message", ClientModelPlugin.Instance.TypeFactory.HttpMessageApi.HttpMessageType, This.Invoke(createRequestMethod.Signature, [.. MethodParameters]), out var message), - Return(ClientModelPlugin.Instance.TypeFactory.ClientResponseApi.ToExpression().FromResponse(client.PipelineProperty.Invoke(processMessageName, [message, ScmKnownParameters.RequestOptions], isAsync, true))), + UsingDeclare("message", ClientModelPlugin.Instance.TypeFactory.HttpMessageApi.HttpMessageType, This.Invoke(createRequestMethod.Signature, [.. methodParameters]), out var message), + Return(ClientModelPlugin.Instance.TypeFactory.ClientResponseApi.ToExpression().FromResponse(client.PipelineProperty.Invoke(processMessageName, [message, requestOptionsParameter], isAsync, true))), ]; var protocolMethod = @@ -431,5 +451,31 @@ private static CSharpType GetConvenienceReturnType(IReadOnlyList inputParameters) { @@ -415,9 +415,9 @@ public void ValidateClientWithSpread(InputClient inputClient) Assert.AreEqual(2, protocolMethods[1].Signature.Parameters.Count); Assert.AreEqual(new CSharpType(typeof(BinaryContent)), protocolMethods[0].Signature.Parameters[0].Type); - Assert.AreEqual(new CSharpType(typeof(RequestOptions)), protocolMethods[0].Signature.Parameters[1].Type); + Assert.AreEqual(new CSharpType(typeof(RequestOptions), true), protocolMethods[0].Signature.Parameters[1].Type); Assert.AreEqual(new CSharpType(typeof(BinaryContent)), protocolMethods[1].Signature.Parameters[0].Type); - Assert.AreEqual(new CSharpType(typeof(RequestOptions)), protocolMethods[1].Signature.Parameters[1].Type); + Assert.AreEqual(new CSharpType(typeof(RequestOptions), true), protocolMethods[1].Signature.Parameters[1].Type); var convenienceMethods = methods.Where(m => m.Signature.Parameters.Any(p => p.Type.Equals(typeof(string)))).ToList(); Assert.AreEqual(2, convenienceMethods.Count); @@ -428,6 +428,33 @@ public void ValidateClientWithSpread(InputClient inputClient) } + [TestCaseSource(nameof(RequestOptionsParameterInSignatureTestCases))] + public void TestRequestOptionsParameterInSignature(InputOperation inputOperation, bool shouldBeOptional) + { + var client = InputFactory.Client(TestClientName, operations: [inputOperation]); + var clientProvider = new ClientProvider(client); + var protocolMethods = clientProvider.Methods.Where(m => m.Signature.Parameters.Any(p => p.Type.Name == "RequestOptions")).ToList(); + var syncMethod = protocolMethods.FirstOrDefault(m => !m.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Async)); + Assert.IsNotNull(syncMethod); + + var requestOptionsParameterInSyncMethod = syncMethod!.Signature.Parameters.FirstOrDefault(p => p.Type.Name == "RequestOptions"); + Assert.IsNotNull(requestOptionsParameterInSyncMethod); + Assert.AreEqual(shouldBeOptional, requestOptionsParameterInSyncMethod!.Type.IsNullable); + + var asyncMethod = protocolMethods.FirstOrDefault(m => m.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Async)); + Assert.IsNotNull(asyncMethod); + + var requestOptionsParameterInAsyncMethod = asyncMethod!.Signature.Parameters.FirstOrDefault(p => p.Type.Name == "RequestOptions"); + Assert.IsNotNull(requestOptionsParameterInAsyncMethod); + Assert.AreEqual(shouldBeOptional, requestOptionsParameterInAsyncMethod!.Type.IsNullable); + + if (shouldBeOptional) + { + Assert.IsNotNull(requestOptionsParameterInSyncMethod!.DefaultValue); + Assert.IsNotNull(requestOptionsParameterInAsyncMethod!.DefaultValue); + } + } + [Test] public void TestApiVersionOfClient() { @@ -673,6 +700,68 @@ public static IEnumerable BuildConstructorsTestCases } } + public static IEnumerable RequestOptionsParameterInSignatureTestCases + { + get + { + // Protocol & convenience methods will have the same parameters, so RequestOptions should be required. + yield return new TestCaseData( + InputFactory.Operation( + "TestOperation", + parameters: + [ + InputFactory.Parameter( + "p1", + InputPrimitiveType.String, + location: RequestLocation.None, + isRequired: true), + InputFactory.Parameter( + "p2", + InputPrimitiveType.Int64, + location: RequestLocation.None, + isRequired: true), + ]), false); + + // convenience method only has a body param, so RequestOptions should be optional in protocol method. + yield return new TestCaseData( + InputFactory.Operation( + "TestOperation", + parameters: + [ + InputFactory.Parameter( + "p1", + InputPrimitiveType.String, + location: RequestLocation.Body), + ]), true); + + // Protocol & convenience methods will have different parameters since there is a model body param, so RequestOptions should be optional. + yield return new TestCaseData( + InputFactory.Operation( + "TestOperation", + parameters: + [ + InputFactory.Parameter( + "p1", + InputPrimitiveType.String, + location: RequestLocation.None, + isRequired: true), + InputFactory.Parameter( + "p2", + InputFactory.Model("SampleModel"), + location: RequestLocation.Body, + isRequired: true), + ]), true); + + // Convenience method has no parameters, RequestOptions should be required in protocol method. + yield return new TestCaseData( + InputFactory.Operation( + "TestOperation", + responses: [InputFactory.OperationResponse([201], InputFactory.Model("testModel"))], + parameters: []), + false); + } + } + private static IEnumerable EndpointParamInitializationValueTestCases() { // string primitive type diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/client/naming/src/Generated/ClientModel.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/client/naming/src/Generated/ClientModel.cs index 4ecd9e6aec..3e30ba6187 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/client/naming/src/Generated/ClientModel.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/client/naming/src/Generated/ClientModel.cs @@ -15,17 +15,17 @@ public partial class ClientModel public ClientPipeline Pipeline => throw null; - public virtual ClientResult Client(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Client(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task ClientAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task ClientAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Client(Models.ClientModel body) => throw null; public virtual Task ClientAsync(Models.ClientModel body) => throw null; - public virtual ClientResult Language(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Language(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task LanguageAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task LanguageAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Language(CSModel body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/client/naming/src/Generated/NamingClient.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/client/naming/src/Generated/NamingClient.cs index 713ad92bdb..b97bac7146 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/client/naming/src/Generated/NamingClient.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/client/naming/src/Generated/NamingClient.cs @@ -34,25 +34,25 @@ public partial class NamingClient public virtual Task ParameterAsync(string clientName) => throw null; - public virtual ClientResult Client(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Client(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task ClientAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task ClientAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Client(ClientNameModel body) => throw null; public virtual Task ClientAsync(ClientNameModel body) => throw null; - public virtual ClientResult Language(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Language(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task LanguageAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task LanguageAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Language(LanguageClientNameModel body) => throw null; public virtual Task LanguageAsync(LanguageClientNameModel body) => throw null; - public virtual ClientResult CompatibleWithEncodedName(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult CompatibleWithEncodedName(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task CompatibleWithEncodedNameAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task CompatibleWithEncodedNameAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult CompatibleWithEncodedName(ClientNameAndJsonEncodedNameModel body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/client/naming/src/Generated/UnionEnum.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/client/naming/src/Generated/UnionEnum.cs index 9607ce0f8c..6f6bdb5fd7 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/client/naming/src/Generated/UnionEnum.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/client/naming/src/Generated/UnionEnum.cs @@ -15,17 +15,17 @@ public partial class UnionEnum public ClientPipeline Pipeline => throw null; - public virtual ClientResult UnionEnumName(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult UnionEnumName(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task UnionEnumNameAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task UnionEnumNameAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult UnionEnumName(ClientExtensibleEnum body) => throw null; public virtual Task UnionEnumNameAsync(ClientExtensibleEnum body) => throw null; - public virtual ClientResult UnionEnumMemberName(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult UnionEnumMemberName(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task UnionEnumMemberNameAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task UnionEnumMemberNameAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult UnionEnumMemberName(ExtensibleEnum body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/encode/bytes/src/Generated/Property.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/encode/bytes/src/Generated/Property.cs index 24a5cb7209..3dd65d7e25 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/encode/bytes/src/Generated/Property.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/encode/bytes/src/Generated/Property.cs @@ -15,33 +15,33 @@ public partial class Property public ClientPipeline Pipeline => throw null; - public virtual ClientResult Default(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Default(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task DefaultAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task DefaultAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Default(DefaultBytesProperty body) => throw null; public virtual Task> DefaultAsync(DefaultBytesProperty body) => throw null; - public virtual ClientResult Base64(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Base64(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task Base64Async(BinaryContent content, RequestOptions options) => throw null; + public virtual Task Base64Async(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Base64(Base64BytesProperty body) => throw null; public virtual Task> Base64Async(Base64BytesProperty body) => throw null; - public virtual ClientResult Base64url(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Base64url(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task Base64urlAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task Base64urlAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Base64url(Base64urlBytesProperty body) => throw null; public virtual Task> Base64urlAsync(Base64urlBytesProperty body) => throw null; - public virtual ClientResult Base64urlArray(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Base64urlArray(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task Base64urlArrayAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task Base64urlArrayAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Base64urlArray(Base64urlArrayBytesProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/encode/bytes/src/Generated/RequestBody.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/encode/bytes/src/Generated/RequestBody.cs index 4341909bdd..ae1ab23ea8 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/encode/bytes/src/Generated/RequestBody.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/encode/bytes/src/Generated/RequestBody.cs @@ -15,41 +15,41 @@ public partial class RequestBody public ClientPipeline Pipeline => throw null; - public virtual ClientResult Default(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Default(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task DefaultAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task DefaultAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Default(BinaryData value) => throw null; public virtual Task DefaultAsync(BinaryData value) => throw null; - public virtual ClientResult OctetStream(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult OctetStream(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task OctetStreamAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task OctetStreamAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult OctetStream(BinaryData value) => throw null; public virtual Task OctetStreamAsync(BinaryData value) => throw null; - public virtual ClientResult CustomContentType(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult CustomContentType(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task CustomContentTypeAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task CustomContentTypeAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult CustomContentType(BinaryData value) => throw null; public virtual Task CustomContentTypeAsync(BinaryData value) => throw null; - public virtual ClientResult Base64(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Base64(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task Base64Async(BinaryContent content, RequestOptions options) => throw null; + public virtual Task Base64Async(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Base64(BinaryData value) => throw null; public virtual Task Base64Async(BinaryData value) => throw null; - public virtual ClientResult Base64url(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Base64url(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task Base64urlAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task Base64urlAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Base64url(BinaryData value) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/encode/datetime/src/Generated/Property.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/encode/datetime/src/Generated/Property.cs index db1e2ec869..a87f9cc7d5 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/encode/datetime/src/Generated/Property.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/encode/datetime/src/Generated/Property.cs @@ -15,41 +15,41 @@ public partial class Property public ClientPipeline Pipeline => throw null; - public virtual ClientResult Default(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Default(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task DefaultAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task DefaultAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Default(DefaultDatetimeProperty body) => throw null; public virtual Task> DefaultAsync(DefaultDatetimeProperty body) => throw null; - public virtual ClientResult Rfc3339(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Rfc3339(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task Rfc3339Async(BinaryContent content, RequestOptions options) => throw null; + public virtual Task Rfc3339Async(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Rfc3339(Rfc3339DatetimeProperty body) => throw null; public virtual Task> Rfc3339Async(Rfc3339DatetimeProperty body) => throw null; - public virtual ClientResult Rfc7231(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Rfc7231(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task Rfc7231Async(BinaryContent content, RequestOptions options) => throw null; + public virtual Task Rfc7231Async(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Rfc7231(Rfc7231DatetimeProperty body) => throw null; public virtual Task> Rfc7231Async(Rfc7231DatetimeProperty body) => throw null; - public virtual ClientResult UnixTimestamp(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult UnixTimestamp(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task UnixTimestampAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task UnixTimestampAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult UnixTimestamp(UnixTimestampDatetimeProperty body) => throw null; public virtual Task> UnixTimestampAsync(UnixTimestampDatetimeProperty body) => throw null; - public virtual ClientResult UnixTimestampArray(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult UnixTimestampArray(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task UnixTimestampArrayAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task UnixTimestampArrayAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult UnixTimestampArray(UnixTimestampArrayDatetimeProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/encode/duration/src/Generated/Property.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/encode/duration/src/Generated/Property.cs index 6d5d202275..08ddca51d1 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/encode/duration/src/Generated/Property.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/encode/duration/src/Generated/Property.cs @@ -15,49 +15,49 @@ public partial class Property public ClientPipeline Pipeline => throw null; - public virtual ClientResult Default(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Default(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task DefaultAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task DefaultAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Default(DefaultDurationProperty body) => throw null; public virtual Task> DefaultAsync(DefaultDurationProperty body) => throw null; - public virtual ClientResult Iso8601(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Iso8601(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task Iso8601Async(BinaryContent content, RequestOptions options) => throw null; + public virtual Task Iso8601Async(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Iso8601(ISO8601DurationProperty body) => throw null; public virtual Task> Iso8601Async(ISO8601DurationProperty body) => throw null; - public virtual ClientResult Int32Seconds(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Int32Seconds(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task Int32SecondsAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task Int32SecondsAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Int32Seconds(Int32SecondsDurationProperty body) => throw null; public virtual Task> Int32SecondsAsync(Int32SecondsDurationProperty body) => throw null; - public virtual ClientResult FloatSeconds(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult FloatSeconds(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task FloatSecondsAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task FloatSecondsAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult FloatSeconds(FloatSecondsDurationProperty body) => throw null; public virtual Task> FloatSecondsAsync(FloatSecondsDurationProperty body) => throw null; - public virtual ClientResult Float64Seconds(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Float64Seconds(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task Float64SecondsAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task Float64SecondsAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Float64Seconds(Float64SecondsDurationProperty body) => throw null; public virtual Task> Float64SecondsAsync(Float64SecondsDurationProperty body) => throw null; - public virtual ClientResult FloatSecondsArray(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult FloatSecondsArray(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task FloatSecondsArrayAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task FloatSecondsArrayAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult FloatSecondsArray(FloatSecondsDurationArrayProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/parameters/basic/src/Generated/ExplicitBody.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/parameters/basic/src/Generated/ExplicitBody.cs index c00e3de383..2145315985 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/parameters/basic/src/Generated/ExplicitBody.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/parameters/basic/src/Generated/ExplicitBody.cs @@ -15,9 +15,9 @@ public partial class ExplicitBody public ClientPipeline Pipeline => throw null; - public virtual ClientResult Simple(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Simple(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SimpleAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task SimpleAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Simple(User body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/parameters/basic/src/Generated/ImplicitBody.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/parameters/basic/src/Generated/ImplicitBody.cs index f1d5ae752c..5365c0c584 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/parameters/basic/src/Generated/ImplicitBody.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/parameters/basic/src/Generated/ImplicitBody.cs @@ -14,9 +14,9 @@ public partial class ImplicitBody public ClientPipeline Pipeline => throw null; - public virtual ClientResult Simple(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Simple(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SimpleAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task SimpleAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Simple(string name) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/parameters/spread/src/Generated/Alias.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/parameters/spread/src/Generated/Alias.cs index 9392ef91e4..4656ce9859 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/parameters/spread/src/Generated/Alias.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/parameters/spread/src/Generated/Alias.cs @@ -15,41 +15,41 @@ public partial class Alias public ClientPipeline Pipeline => throw null; - public virtual ClientResult SpreadAsRequestBody(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult SpreadAsRequestBody(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SpreadAsRequestBodyAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task SpreadAsRequestBodyAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult SpreadAsRequestBody(string name) => throw null; public virtual Task SpreadAsRequestBodyAsync(string name) => throw null; - public virtual ClientResult SpreadParameterWithInnerModel(string id, string xMsTestHeader, BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult SpreadParameterWithInnerModel(string id, string xMsTestHeader, BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SpreadParameterWithInnerModelAsync(string id, string xMsTestHeader, BinaryContent content, RequestOptions options) => throw null; + public virtual Task SpreadParameterWithInnerModelAsync(string id, string xMsTestHeader, BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult SpreadParameterWithInnerModel(string id, string xMsTestHeader, string name) => throw null; public virtual Task SpreadParameterWithInnerModelAsync(string id, string xMsTestHeader, string name) => throw null; - public virtual ClientResult SpreadAsRequestParameter(string id, string xMsTestHeader, BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult SpreadAsRequestParameter(string id, string xMsTestHeader, BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SpreadAsRequestParameterAsync(string id, string xMsTestHeader, BinaryContent content, RequestOptions options) => throw null; + public virtual Task SpreadAsRequestParameterAsync(string id, string xMsTestHeader, BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult SpreadAsRequestParameter(string id, string xMsTestHeader, string name) => throw null; public virtual Task SpreadAsRequestParameterAsync(string id, string xMsTestHeader, string name) => throw null; - public virtual ClientResult SpreadWithMultipleParameters(string id, string xMsTestHeader, BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult SpreadWithMultipleParameters(string id, string xMsTestHeader, BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SpreadWithMultipleParametersAsync(string id, string xMsTestHeader, BinaryContent content, RequestOptions options) => throw null; + public virtual Task SpreadWithMultipleParametersAsync(string id, string xMsTestHeader, BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult SpreadWithMultipleParameters(string id, string xMsTestHeader, string requiredString, IEnumerable requiredIntList, int? optionalInt = default, IEnumerable optionalStringList = default) => throw null; public virtual Task SpreadWithMultipleParametersAsync(string id, string xMsTestHeader, string requiredString, IEnumerable requiredIntList, int? optionalInt = default, IEnumerable optionalStringList = default) => throw null; - public virtual ClientResult SpreadParameterWithInnerAlias(string id, string xMsTestHeader, BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult SpreadParameterWithInnerAlias(string id, string xMsTestHeader, BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SpreadParameterWithInnerAliasAsync(string id, string xMsTestHeader, BinaryContent content, RequestOptions options) => throw null; + public virtual Task SpreadParameterWithInnerAliasAsync(string id, string xMsTestHeader, BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult SpreadParameterWithInnerAlias(string id, string xMsTestHeader, string name, int age) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/parameters/spread/src/Generated/Model.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/parameters/spread/src/Generated/Model.cs index 09e8c62d1c..44404eba25 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/parameters/spread/src/Generated/Model.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/parameters/spread/src/Generated/Model.cs @@ -15,17 +15,17 @@ public partial class Model public ClientPipeline Pipeline => throw null; - public virtual ClientResult SpreadAsRequestBody(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult SpreadAsRequestBody(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SpreadAsRequestBodyAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task SpreadAsRequestBodyAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult SpreadAsRequestBody(string name) => throw null; public virtual Task SpreadAsRequestBodyAsync(string name) => throw null; - public virtual ClientResult SpreadCompositeRequestOnlyWithBody(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult SpreadCompositeRequestOnlyWithBody(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SpreadCompositeRequestOnlyWithBodyAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task SpreadCompositeRequestOnlyWithBodyAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult SpreadCompositeRequestOnlyWithBody(BodyParameter body) => throw null; @@ -39,17 +39,17 @@ public partial class Model public virtual Task SpreadCompositeRequestWithoutBodyAsync(string name, string testHeader) => throw null; - public virtual ClientResult SpreadCompositeRequest(string name, string testHeader, BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult SpreadCompositeRequest(string name, string testHeader, BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SpreadCompositeRequestAsync(string name, string testHeader, BinaryContent content, RequestOptions options) => throw null; + public virtual Task SpreadCompositeRequestAsync(string name, string testHeader, BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult SpreadCompositeRequest(string name, string testHeader, BodyParameter body) => throw null; public virtual Task SpreadCompositeRequestAsync(string name, string testHeader, BodyParameter body) => throw null; - public virtual ClientResult SpreadCompositeRequestMix(string name, string testHeader, BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult SpreadCompositeRequestMix(string name, string testHeader, BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SpreadCompositeRequestMixAsync(string name, string testHeader, BinaryContent content, RequestOptions options) => throw null; + public virtual Task SpreadCompositeRequestMixAsync(string name, string testHeader, BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult SpreadCompositeRequestMix(string name, string testHeader, string prop) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/media-type/src/Generated/StringBody.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/media-type/src/Generated/StringBody.cs index b4eab994ec..f7b8a2dadd 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/media-type/src/Generated/StringBody.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/media-type/src/Generated/StringBody.cs @@ -14,9 +14,9 @@ public partial class StringBody public ClientPipeline Pipeline => throw null; - public virtual ClientResult SendAsText(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult SendAsText(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SendAsTextAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task SendAsTextAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult SendAsText(string text) => throw null; @@ -30,9 +30,9 @@ public partial class StringBody public virtual Task> GetAsTextAsync() => throw null; - public virtual ClientResult SendAsJson(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult SendAsJson(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SendAsJsonAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task SendAsJsonAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult SendAsJson(string text) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/multipart/src/Generated/FormData.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/multipart/src/Generated/FormData.cs index e561f25de5..e6f6b6397e 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/multipart/src/Generated/FormData.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/multipart/src/Generated/FormData.cs @@ -14,33 +14,33 @@ public partial class FormData public ClientPipeline Pipeline => throw null; - public virtual ClientResult Basic(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual ClientResult Basic(BinaryContent content, string contentType, RequestOptions options = null) => throw null; - public virtual Task BasicAsync(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual Task BasicAsync(BinaryContent content, string contentType, RequestOptions options = null) => throw null; - public virtual ClientResult FileArrayAndBasic(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual ClientResult FileArrayAndBasic(BinaryContent content, string contentType, RequestOptions options = null) => throw null; - public virtual Task FileArrayAndBasicAsync(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual Task FileArrayAndBasicAsync(BinaryContent content, string contentType, RequestOptions options = null) => throw null; - public virtual ClientResult JsonPart(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual ClientResult JsonPart(BinaryContent content, string contentType, RequestOptions options = null) => throw null; - public virtual Task JsonPartAsync(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual Task JsonPartAsync(BinaryContent content, string contentType, RequestOptions options = null) => throw null; - public virtual ClientResult BinaryArrayParts(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual ClientResult BinaryArrayParts(BinaryContent content, string contentType, RequestOptions options = null) => throw null; - public virtual Task BinaryArrayPartsAsync(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual Task BinaryArrayPartsAsync(BinaryContent content, string contentType, RequestOptions options = null) => throw null; - public virtual ClientResult MultiBinaryParts(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual ClientResult MultiBinaryParts(BinaryContent content, string contentType, RequestOptions options = null) => throw null; - public virtual Task MultiBinaryPartsAsync(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual Task MultiBinaryPartsAsync(BinaryContent content, string contentType, RequestOptions options = null) => throw null; - public virtual ClientResult CheckFileNameAndContentType(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual ClientResult CheckFileNameAndContentType(BinaryContent content, string contentType, RequestOptions options = null) => throw null; - public virtual Task CheckFileNameAndContentTypeAsync(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual Task CheckFileNameAndContentTypeAsync(BinaryContent content, string contentType, RequestOptions options = null) => throw null; - public virtual ClientResult AnonymousModel(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual ClientResult AnonymousModel(BinaryContent content, string contentType, RequestOptions options = null) => throw null; - public virtual Task AnonymousModelAsync(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual Task AnonymousModelAsync(BinaryContent content, string contentType, RequestOptions options = null) => throw null; public virtual FormDataHttpParts GetFormDataHttpPartsClient() => throw null; } diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/multipart/src/Generated/FormDataHttpParts.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/multipart/src/Generated/FormDataHttpParts.cs index d90e8f1bbd..ea265b0c80 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/multipart/src/Generated/FormDataHttpParts.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/multipart/src/Generated/FormDataHttpParts.cs @@ -14,9 +14,9 @@ public partial class FormDataHttpParts public ClientPipeline Pipeline => throw null; - public virtual ClientResult JsonArrayAndFileArray(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual ClientResult JsonArrayAndFileArray(BinaryContent content, string contentType, RequestOptions options = null) => throw null; - public virtual Task JsonArrayAndFileArrayAsync(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual Task JsonArrayAndFileArrayAsync(BinaryContent content, string contentType, RequestOptions options = null) => throw null; public virtual FormDataHttpPartsContentType GetFormDataHttpPartsContentTypeClient() => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/multipart/src/Generated/FormDataHttpPartsContentType.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/multipart/src/Generated/FormDataHttpPartsContentType.cs index d39c1e2f40..480e3a7499 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/multipart/src/Generated/FormDataHttpPartsContentType.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/multipart/src/Generated/FormDataHttpPartsContentType.cs @@ -14,16 +14,16 @@ public partial class FormDataHttpPartsContentType public ClientPipeline Pipeline => throw null; - public virtual ClientResult ImageJpegContentType(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual ClientResult ImageJpegContentType(BinaryContent content, string contentType, RequestOptions options = null) => throw null; - public virtual Task ImageJpegContentTypeAsync(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual Task ImageJpegContentTypeAsync(BinaryContent content, string contentType, RequestOptions options = null) => throw null; - public virtual ClientResult RequiredContentType(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual ClientResult RequiredContentType(BinaryContent content, string contentType, RequestOptions options = null) => throw null; - public virtual Task RequiredContentTypeAsync(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual Task RequiredContentTypeAsync(BinaryContent content, string contentType, RequestOptions options = null) => throw null; - public virtual ClientResult OptionalContentType(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual ClientResult OptionalContentType(BinaryContent content, string contentType, RequestOptions options = null) => throw null; - public virtual Task OptionalContentTypeAsync(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual Task OptionalContentTypeAsync(BinaryContent content, string contentType, RequestOptions options = null) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/multipart/src/Generated/FormDataHttpPartsNonString.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/multipart/src/Generated/FormDataHttpPartsNonString.cs index 38a18ab715..7774f55366 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/multipart/src/Generated/FormDataHttpPartsNonString.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/multipart/src/Generated/FormDataHttpPartsNonString.cs @@ -14,8 +14,8 @@ public partial class FormDataHttpPartsNonString public ClientPipeline Pipeline => throw null; - public virtual ClientResult Float(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual ClientResult Float(BinaryContent content, string contentType, RequestOptions options = null) => throw null; - public virtual Task FloatAsync(BinaryContent content, string contentType, RequestOptions options) => throw null; + public virtual Task FloatAsync(BinaryContent content, string contentType, RequestOptions options = null) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithArrayOfModelValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithArrayOfModelValue.cs index d5cfd3962d..751e03aeb0 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithArrayOfModelValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithArrayOfModelValue.cs @@ -23,9 +23,9 @@ public partial class ModelWithArrayOfModelValue public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(ModelWithArrayOfModel input) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithAttributesValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithAttributesValue.cs index 5a9ff2b4c9..bfa5282552 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithAttributesValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithAttributesValue.cs @@ -23,9 +23,9 @@ public partial class ModelWithAttributesValue public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(ModelWithAttributes input) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithDictionaryValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithDictionaryValue.cs index 7ea6f1bb0b..8b69c6afa1 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithDictionaryValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithDictionaryValue.cs @@ -23,9 +23,9 @@ public partial class ModelWithDictionaryValue public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(ModelWithDictionary input) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithEmptyArrayValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithEmptyArrayValue.cs index a281578d08..784171a4de 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithEmptyArrayValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithEmptyArrayValue.cs @@ -23,9 +23,9 @@ public partial class ModelWithEmptyArrayValue public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(ModelWithEmptyArray input) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithEncodedNamesValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithEncodedNamesValue.cs index 4805e850c6..59e98656c5 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithEncodedNamesValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithEncodedNamesValue.cs @@ -23,9 +23,9 @@ public partial class ModelWithEncodedNamesValue public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(ModelWithEncodedNames input) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithOptionalFieldValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithOptionalFieldValue.cs index e007e26386..868fe8b934 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithOptionalFieldValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithOptionalFieldValue.cs @@ -23,9 +23,9 @@ public partial class ModelWithOptionalFieldValue public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(ModelWithOptionalField input) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithRenamedArraysValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithRenamedArraysValue.cs index 0e6c6a71ad..bb2808923b 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithRenamedArraysValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithRenamedArraysValue.cs @@ -23,9 +23,9 @@ public partial class ModelWithRenamedArraysValue public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(ModelWithRenamedArrays input) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithRenamedFieldsValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithRenamedFieldsValue.cs index cb8aa7dcbe..8d17941909 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithRenamedFieldsValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithRenamedFieldsValue.cs @@ -23,9 +23,9 @@ public partial class ModelWithRenamedFieldsValue public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(ModelWithRenamedFields input) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithSimpleArraysValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithSimpleArraysValue.cs index c3c31373f8..ee4b1000d5 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithSimpleArraysValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithSimpleArraysValue.cs @@ -23,9 +23,9 @@ public partial class ModelWithSimpleArraysValue public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(ModelWithSimpleArrays input) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithTextValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithTextValue.cs index 9bf6fd4fd1..71179dc1e6 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithTextValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithTextValue.cs @@ -23,9 +23,9 @@ public partial class ModelWithTextValue public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(ModelWithText input) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithUnwrappedArrayValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithUnwrappedArrayValue.cs index 85405f940b..9bcab902cf 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithUnwrappedArrayValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/ModelWithUnwrappedArrayValue.cs @@ -23,9 +23,9 @@ public partial class ModelWithUnwrappedArrayValue public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(ModelWithUnwrappedArray input) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/SimpleModelValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/SimpleModelValue.cs index b391ab5581..515de18b81 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/SimpleModelValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/payload/xml/src/Generated/SimpleModelValue.cs @@ -23,9 +23,9 @@ public partial class SimpleModelValue public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(SimpleModel input) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/BooleanValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/BooleanValue.cs index d877ac5619..5a43b255d0 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/BooleanValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/BooleanValue.cs @@ -23,9 +23,9 @@ public partial class BooleanValue public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IEnumerable body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/DatetimeValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/DatetimeValue.cs index e44fad4ee5..d97ed443d8 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/DatetimeValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/DatetimeValue.cs @@ -24,9 +24,9 @@ public partial class DatetimeValue public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IEnumerable body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/DurationValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/DurationValue.cs index 5913481452..497084037d 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/DurationValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/DurationValue.cs @@ -24,9 +24,9 @@ public partial class DurationValue public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IEnumerable body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/Float32Value.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/Float32Value.cs index a391fb361a..973077101f 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/Float32Value.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/Float32Value.cs @@ -23,9 +23,9 @@ public partial class Float32Value public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IEnumerable body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/Int32Value.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/Int32Value.cs index bea66afff4..3ffc6ed564 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/Int32Value.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/Int32Value.cs @@ -23,9 +23,9 @@ public partial class Int32Value public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IEnumerable body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/Int64Value.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/Int64Value.cs index df4bf6e580..ed397a7e2c 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/Int64Value.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/Int64Value.cs @@ -23,9 +23,9 @@ public partial class Int64Value public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IEnumerable body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/ModelValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/ModelValue.cs index 1215340894..0579252cbd 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/ModelValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/ModelValue.cs @@ -24,9 +24,9 @@ public partial class ModelValue public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IEnumerable body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/NullableBooleanValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/NullableBooleanValue.cs index eb775f88d3..0d033cef3f 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/NullableBooleanValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/NullableBooleanValue.cs @@ -23,9 +23,9 @@ public partial class NullableBooleanValue public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IEnumerable body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/NullableFloatValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/NullableFloatValue.cs index 2f8f2c8422..207c2cd3d6 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/NullableFloatValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/NullableFloatValue.cs @@ -23,9 +23,9 @@ public partial class NullableFloatValue public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IEnumerable body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/NullableInt32Value.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/NullableInt32Value.cs index dd9fb6032c..0dcb9bc4dd 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/NullableInt32Value.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/NullableInt32Value.cs @@ -23,9 +23,9 @@ public partial class NullableInt32Value public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IEnumerable body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/NullableModelValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/NullableModelValue.cs index 6c37532ae8..7b9aa90e5c 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/NullableModelValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/NullableModelValue.cs @@ -24,9 +24,9 @@ public partial class NullableModelValue public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IEnumerable body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/NullableStringValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/NullableStringValue.cs index c23490f170..871dc12d9c 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/NullableStringValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/NullableStringValue.cs @@ -23,9 +23,9 @@ public partial class NullableStringValue public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IEnumerable body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/StringValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/StringValue.cs index 6696ed262b..dbd048a688 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/StringValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/StringValue.cs @@ -23,9 +23,9 @@ public partial class StringValue public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IEnumerable body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/UnknownValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/UnknownValue.cs index e9c60545e4..194902cd0f 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/UnknownValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/array/src/Generated/UnknownValue.cs @@ -24,9 +24,9 @@ public partial class UnknownValue public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IEnumerable body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/BooleanValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/BooleanValue.cs index 81ef5b5c1d..e2e6713317 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/BooleanValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/BooleanValue.cs @@ -23,9 +23,9 @@ public partial class BooleanValue public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IDictionary body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/DatetimeValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/DatetimeValue.cs index e98fdfc475..c3d07f9dcd 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/DatetimeValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/DatetimeValue.cs @@ -24,9 +24,9 @@ public partial class DatetimeValue public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IDictionary body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/DurationValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/DurationValue.cs index 07fb0a3f73..b2e0dfe065 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/DurationValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/DurationValue.cs @@ -24,9 +24,9 @@ public partial class DurationValue public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IDictionary body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/Float32Value.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/Float32Value.cs index 48079606e4..ddab070752 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/Float32Value.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/Float32Value.cs @@ -23,9 +23,9 @@ public partial class Float32Value public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IDictionary body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/Int32Value.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/Int32Value.cs index 7105f5f0c6..cbd2ce6061 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/Int32Value.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/Int32Value.cs @@ -23,9 +23,9 @@ public partial class Int32Value public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IDictionary body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/Int64Value.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/Int64Value.cs index cf8973dc4c..63dc84962d 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/Int64Value.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/Int64Value.cs @@ -23,9 +23,9 @@ public partial class Int64Value public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IDictionary body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/ModelValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/ModelValue.cs index bb60de26ff..377ac08349 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/ModelValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/ModelValue.cs @@ -24,9 +24,9 @@ public partial class ModelValue public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IDictionary body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/NullableFloatValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/NullableFloatValue.cs index bc9551ca32..8a04ae20a4 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/NullableFloatValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/NullableFloatValue.cs @@ -23,9 +23,9 @@ public partial class NullableFloatValue public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IDictionary body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/RecursiveModelValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/RecursiveModelValue.cs index 47107fcbf6..77784915bb 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/RecursiveModelValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/RecursiveModelValue.cs @@ -24,9 +24,9 @@ public partial class RecursiveModelValue public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IDictionary body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/StringValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/StringValue.cs index fe4363a29f..141736d009 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/StringValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/StringValue.cs @@ -23,9 +23,9 @@ public partial class StringValue public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IDictionary body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/UnknownValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/UnknownValue.cs index 14d2f51ccb..64634fa2a7 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/UnknownValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/dictionary/src/Generated/UnknownValue.cs @@ -24,9 +24,9 @@ public partial class UnknownValue public virtual Task>> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IDictionary body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/enum/extensible/src/Generated/String.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/enum/extensible/src/Generated/String.cs index 7f4211c3cc..5c0bf83671 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/enum/extensible/src/Generated/String.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/enum/extensible/src/Generated/String.cs @@ -31,17 +31,17 @@ public partial class String public virtual Task> GetUnknownValueAsync() => throw null; - public virtual ClientResult PutKnownValue(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutKnownValue(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutKnownValueAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutKnownValueAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutKnownValue(DaysOfWeekExtensibleEnum body) => throw null; public virtual Task PutKnownValueAsync(DaysOfWeekExtensibleEnum body) => throw null; - public virtual ClientResult PutUnknownValue(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutUnknownValue(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutUnknownValueAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutUnknownValueAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutUnknownValue(DaysOfWeekExtensibleEnum body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/enum/fixed/src/Generated/String.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/enum/fixed/src/Generated/String.cs index a0def7c775..9138fbcaa5 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/enum/fixed/src/Generated/String.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/enum/fixed/src/Generated/String.cs @@ -23,17 +23,17 @@ public partial class String public virtual Task> GetKnownValueAsync() => throw null; - public virtual ClientResult PutKnownValue(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutKnownValue(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutKnownValueAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutKnownValueAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutKnownValue(DaysOfWeekEnum body) => throw null; public virtual Task PutKnownValueAsync(DaysOfWeekEnum body) => throw null; - public virtual ClientResult PutUnknownValue(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutUnknownValue(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutUnknownValueAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutUnknownValueAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutUnknownValue(DaysOfWeekEnum body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/model/empty/src/Generated/EmptyClient.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/model/empty/src/Generated/EmptyClient.cs index 5ca07e09ca..38ccea208e 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/model/empty/src/Generated/EmptyClient.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/model/empty/src/Generated/EmptyClient.cs @@ -18,9 +18,9 @@ public partial class EmptyClient public ClientPipeline Pipeline => throw null; - public virtual ClientResult PutEmpty(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutEmpty(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutEmptyAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutEmptyAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutEmpty(EmptyInput input) => throw null; @@ -34,9 +34,9 @@ public partial class EmptyClient public virtual Task> GetEmptyAsync() => throw null; - public virtual ClientResult PostRoundTripEmpty(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PostRoundTripEmpty(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PostRoundTripEmptyAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PostRoundTripEmptyAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PostRoundTripEmpty(EmptyInputOutput body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/model/inheritance/enum-discriminator/src/Generated/EnumDiscriminatorClient.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/model/inheritance/enum-discriminator/src/Generated/EnumDiscriminatorClient.cs index 33d86f08c8..060d956afc 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/model/inheritance/enum-discriminator/src/Generated/EnumDiscriminatorClient.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/model/inheritance/enum-discriminator/src/Generated/EnumDiscriminatorClient.cs @@ -26,9 +26,9 @@ public partial class EnumDiscriminatorClient public virtual Task> GetExtensibleModelAsync() => throw null; - public virtual ClientResult PutExtensibleModel(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutExtensibleModel(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutExtensibleModelAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutExtensibleModelAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutExtensibleModel(Dog input) => throw null; @@ -58,9 +58,9 @@ public partial class EnumDiscriminatorClient public virtual Task> GetFixedModelAsync() => throw null; - public virtual ClientResult PutFixedModel(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutFixedModel(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutFixedModelAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutFixedModelAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutFixedModel(Snake input) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/model/inheritance/single-discriminator/src/Generated/SingleDiscriminatorClient.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/model/inheritance/single-discriminator/src/Generated/SingleDiscriminatorClient.cs index a7265053bb..d9c31147eb 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/model/inheritance/single-discriminator/src/Generated/SingleDiscriminatorClient.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/model/inheritance/single-discriminator/src/Generated/SingleDiscriminatorClient.cs @@ -26,9 +26,9 @@ public partial class SingleDiscriminatorClient public virtual Task> GetModelAsync() => throw null; - public virtual ClientResult PutModel(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutModel(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutModelAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutModelAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutModel(Bird input) => throw null; @@ -42,9 +42,9 @@ public partial class SingleDiscriminatorClient public virtual Task> GetRecursiveModelAsync() => throw null; - public virtual ClientResult PutRecursiveModel(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutRecursiveModel(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutRecursiveModelAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutRecursiveModelAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutRecursiveModel(Bird input) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/model/usage/src/Generated/UsageClient.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/model/usage/src/Generated/UsageClient.cs index 7ca0f23cee..1dddd7c668 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/model/usage/src/Generated/UsageClient.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/model/usage/src/Generated/UsageClient.cs @@ -18,9 +18,9 @@ public partial class UsageClient public ClientPipeline Pipeline => throw null; - public virtual ClientResult Input(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Input(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task InputAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task InputAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Input(InputRecord input) => throw null; @@ -34,9 +34,9 @@ public partial class UsageClient public virtual Task> OutputAsync() => throw null; - public virtual ClientResult InputAndOutput(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult InputAndOutput(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task InputAndOutputAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task InputAndOutputAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult InputAndOutput(InputOutputRecord body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsDifferentSpreadFloat.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsDifferentSpreadFloat.cs index 3bbb1b8747..cd24bc250e 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsDifferentSpreadFloat.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsDifferentSpreadFloat.cs @@ -23,9 +23,9 @@ public partial class ExtendsDifferentSpreadFloat public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(DifferentSpreadFloatDerived body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsDifferentSpreadModel.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsDifferentSpreadModel.cs index c99a829e9c..cf63556cf9 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsDifferentSpreadModel.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsDifferentSpreadModel.cs @@ -23,9 +23,9 @@ public partial class ExtendsDifferentSpreadModel public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(DifferentSpreadModelDerived body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsDifferentSpreadModelArray.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsDifferentSpreadModelArray.cs index 68832b6b7f..61bd6c89d1 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsDifferentSpreadModelArray.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsDifferentSpreadModelArray.cs @@ -23,9 +23,9 @@ public partial class ExtendsDifferentSpreadModelArray public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(DifferentSpreadModelArrayDerived body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsDifferentSpreadString.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsDifferentSpreadString.cs index 77a59bf710..2d9ebceabc 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsDifferentSpreadString.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsDifferentSpreadString.cs @@ -23,9 +23,9 @@ public partial class ExtendsDifferentSpreadString public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(DifferentSpreadStringDerived body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsFloat.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsFloat.cs index 7f94497c46..db5fbc1313 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsFloat.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsFloat.cs @@ -23,9 +23,9 @@ public partial class ExtendsFloat public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(ExtendsFloatAdditionalProperties body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsModel.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsModel.cs index 5f6edd9589..3cd54a27f9 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsModel.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsModel.cs @@ -23,9 +23,9 @@ public partial class ExtendsModel public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(ExtendsModelAdditionalProperties body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsModelArray.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsModelArray.cs index 05891b22df..8bb86bad46 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsModelArray.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsModelArray.cs @@ -23,9 +23,9 @@ public partial class ExtendsModelArray public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(ExtendsModelArrayAdditionalProperties body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsString.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsString.cs index 6dba88de47..f9f193add0 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsString.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsString.cs @@ -23,9 +23,9 @@ public partial class ExtendsString public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(ExtendsStringAdditionalProperties body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsUnknown.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsUnknown.cs index ff09f3fb42..79b7a1ed38 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsUnknown.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsUnknown.cs @@ -23,9 +23,9 @@ public partial class ExtendsUnknown public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(ExtendsUnknownAdditionalProperties body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsUnknownDerived.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsUnknownDerived.cs index c0ebfd689f..c38d619a18 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsUnknownDerived.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsUnknownDerived.cs @@ -23,9 +23,9 @@ public partial class ExtendsUnknownDerived public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(ExtendsUnknownAdditionalPropertiesDerived body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsUnknownDiscriminated.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsUnknownDiscriminated.cs index c50a68ca38..ffdb7a2893 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsUnknownDiscriminated.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/ExtendsUnknownDiscriminated.cs @@ -23,9 +23,9 @@ public partial class ExtendsUnknownDiscriminated public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(ExtendsUnknownAdditionalPropertiesDiscriminated body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsFloat.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsFloat.cs index 4744b34dc2..551aa42761 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsFloat.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsFloat.cs @@ -23,9 +23,9 @@ public partial class IsFloat public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IsFloatAdditionalProperties body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsModel.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsModel.cs index 4e66e71f7f..5f1ebb6834 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsModel.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsModel.cs @@ -23,9 +23,9 @@ public partial class IsModel public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IsModelAdditionalProperties body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsModelArray.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsModelArray.cs index 434a303dc0..358baab52c 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsModelArray.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsModelArray.cs @@ -23,9 +23,9 @@ public partial class IsModelArray public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IsModelArrayAdditionalProperties body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsString.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsString.cs index 5d7e7931f6..cc8baa394d 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsString.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsString.cs @@ -23,9 +23,9 @@ public partial class IsString public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IsStringAdditionalProperties body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsUnknown.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsUnknown.cs index d3a4469e39..e55b36ac86 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsUnknown.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsUnknown.cs @@ -23,9 +23,9 @@ public partial class IsUnknown public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IsUnknownAdditionalProperties body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsUnknownDerived.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsUnknownDerived.cs index 2dffe41a1f..08c4706029 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsUnknownDerived.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsUnknownDerived.cs @@ -23,9 +23,9 @@ public partial class IsUnknownDerived public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IsUnknownAdditionalPropertiesDerived body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsUnknownDiscriminated.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsUnknownDiscriminated.cs index b3a8bc0b1e..a6e533ad1b 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsUnknownDiscriminated.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/IsUnknownDiscriminated.cs @@ -23,9 +23,9 @@ public partial class IsUnknownDiscriminated public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IsUnknownAdditionalPropertiesDiscriminated body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/MultipleSpread.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/MultipleSpread.cs index d6ffece696..1b3f5ef6c7 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/MultipleSpread.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/MultipleSpread.cs @@ -23,9 +23,9 @@ public partial class MultipleSpread public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(MultipleSpreadRecord body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadDifferentFloat.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadDifferentFloat.cs index 60b1fc445a..e9094a7fa6 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadDifferentFloat.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadDifferentFloat.cs @@ -23,9 +23,9 @@ public partial class SpreadDifferentFloat public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(DifferentSpreadFloatRecord body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadDifferentModel.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadDifferentModel.cs index 23287141e9..570d53f292 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadDifferentModel.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadDifferentModel.cs @@ -23,9 +23,9 @@ public partial class SpreadDifferentModel public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(DifferentSpreadModelRecord body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadDifferentModelArray.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadDifferentModelArray.cs index 644a72c7a8..64ddedf9d3 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadDifferentModelArray.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadDifferentModelArray.cs @@ -23,9 +23,9 @@ public partial class SpreadDifferentModelArray public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(DifferentSpreadModelArrayRecord body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadDifferentString.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadDifferentString.cs index a40c850a14..eea2b721d0 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadDifferentString.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadDifferentString.cs @@ -23,9 +23,9 @@ public partial class SpreadDifferentString public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(DifferentSpreadStringRecord body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadFloat.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadFloat.cs index 623b05c25e..37ee4f127f 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadFloat.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadFloat.cs @@ -23,9 +23,9 @@ public partial class SpreadFloat public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(SpreadFloatRecord body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadModel.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadModel.cs index dacef6a0e7..a2db2bcb6b 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadModel.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadModel.cs @@ -23,9 +23,9 @@ public partial class SpreadModel public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(SpreadModelRecord body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadModelArray.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadModelArray.cs index 2c53d5a92d..b627e17c5d 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadModelArray.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadModelArray.cs @@ -23,9 +23,9 @@ public partial class SpreadModelArray public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(SpreadModelArrayRecord body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadRecordDiscriminatedUnion.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadRecordDiscriminatedUnion.cs index d7642b8bbb..83eb08d1ba 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadRecordDiscriminatedUnion.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadRecordDiscriminatedUnion.cs @@ -23,9 +23,9 @@ public partial class SpreadRecordDiscriminatedUnion public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(SpreadRecordForDiscriminatedUnion body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadRecordNonDiscriminatedUnion.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadRecordNonDiscriminatedUnion.cs index 07b9b93e2b..3f5b49f012 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadRecordNonDiscriminatedUnion.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadRecordNonDiscriminatedUnion.cs @@ -23,9 +23,9 @@ public partial class SpreadRecordNonDiscriminatedUnion public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(SpreadRecordForNonDiscriminatedUnion body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadRecordNonDiscriminatedUnion2.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadRecordNonDiscriminatedUnion2.cs index 2d3b75f64f..17e8b7d6e5 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadRecordNonDiscriminatedUnion2.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadRecordNonDiscriminatedUnion2.cs @@ -23,9 +23,9 @@ public partial class SpreadRecordNonDiscriminatedUnion2 public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(SpreadRecordForNonDiscriminatedUnion2 body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadRecordNonDiscriminatedUnion3.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadRecordNonDiscriminatedUnion3.cs index bcca824907..211cdab6b1 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadRecordNonDiscriminatedUnion3.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadRecordNonDiscriminatedUnion3.cs @@ -23,9 +23,9 @@ public partial class SpreadRecordNonDiscriminatedUnion3 public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(SpreadRecordForNonDiscriminatedUnion3 body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadRecordUnion.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadRecordUnion.cs index a6951fe412..9ef74e8a29 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadRecordUnion.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadRecordUnion.cs @@ -23,9 +23,9 @@ public partial class SpreadRecordUnion public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(SpreadRecordForUnion body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadString.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadString.cs index 2b95b3a97c..2184755c79 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadString.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/additional-properties/src/Generated/SpreadString.cs @@ -23,9 +23,9 @@ public partial class SpreadString public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(SpreadStringRecord body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/Bytes.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/Bytes.cs index 4db1dc799c..768a7ce959 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/Bytes.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/Bytes.cs @@ -31,12 +31,12 @@ public partial class Bytes public virtual Task> GetNullAsync() => throw null; - public virtual ClientResult PatchNonNull(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PatchNonNull(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PatchNonNullAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PatchNonNullAsync(BinaryContent content, RequestOptions options = null) => throw null; - public virtual ClientResult PatchNull(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PatchNull(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PatchNullAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PatchNullAsync(BinaryContent content, RequestOptions options = null) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/CollectionsByte.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/CollectionsByte.cs index cd7b959909..9fe736ccd2 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/CollectionsByte.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/CollectionsByte.cs @@ -31,12 +31,12 @@ public partial class CollectionsByte public virtual Task> GetNullAsync() => throw null; - public virtual ClientResult PatchNonNull(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PatchNonNull(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PatchNonNullAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PatchNonNullAsync(BinaryContent content, RequestOptions options = null) => throw null; - public virtual ClientResult PatchNull(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PatchNull(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PatchNullAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PatchNullAsync(BinaryContent content, RequestOptions options = null) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/CollectionsModel.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/CollectionsModel.cs index d5b104ccc3..2711df7d48 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/CollectionsModel.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/CollectionsModel.cs @@ -31,12 +31,12 @@ public partial class CollectionsModel public virtual Task> GetNullAsync() => throw null; - public virtual ClientResult PatchNonNull(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PatchNonNull(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PatchNonNullAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PatchNonNullAsync(BinaryContent content, RequestOptions options = null) => throw null; - public virtual ClientResult PatchNull(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PatchNull(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PatchNullAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PatchNullAsync(BinaryContent content, RequestOptions options = null) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/CollectionsString.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/CollectionsString.cs index e8ab9c0720..6d9cf5eafc 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/CollectionsString.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/CollectionsString.cs @@ -31,12 +31,12 @@ public partial class CollectionsString public virtual Task> GetNullAsync() => throw null; - public virtual ClientResult PatchNonNull(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PatchNonNull(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PatchNonNullAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PatchNonNullAsync(BinaryContent content, RequestOptions options = null) => throw null; - public virtual ClientResult PatchNull(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PatchNull(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PatchNullAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PatchNullAsync(BinaryContent content, RequestOptions options = null) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/Datetime.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/Datetime.cs index fc875ac29d..199437bb99 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/Datetime.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/Datetime.cs @@ -31,12 +31,12 @@ public partial class Datetime public virtual Task> GetNullAsync() => throw null; - public virtual ClientResult PatchNonNull(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PatchNonNull(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PatchNonNullAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PatchNonNullAsync(BinaryContent content, RequestOptions options = null) => throw null; - public virtual ClientResult PatchNull(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PatchNull(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PatchNullAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PatchNullAsync(BinaryContent content, RequestOptions options = null) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/Duration.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/Duration.cs index 197390c3c3..4e9811bc15 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/Duration.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/Duration.cs @@ -31,12 +31,12 @@ public partial class Duration public virtual Task> GetNullAsync() => throw null; - public virtual ClientResult PatchNonNull(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PatchNonNull(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PatchNonNullAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PatchNonNullAsync(BinaryContent content, RequestOptions options = null) => throw null; - public virtual ClientResult PatchNull(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PatchNull(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PatchNullAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PatchNullAsync(BinaryContent content, RequestOptions options = null) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/String.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/String.cs index 9745906d23..4200ac88e6 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/String.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/nullable/src/Generated/String.cs @@ -31,12 +31,12 @@ public partial class String public virtual Task> GetNullAsync() => throw null; - public virtual ClientResult PatchNonNull(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PatchNonNull(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PatchNonNullAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PatchNonNullAsync(BinaryContent content, RequestOptions options = null) => throw null; - public virtual ClientResult PatchNull(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PatchNull(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PatchNullAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PatchNullAsync(BinaryContent content, RequestOptions options = null) => throw null; } } diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/BooleanLiteral.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/BooleanLiteral.cs index ed940ad961..89b635ef72 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/BooleanLiteral.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/BooleanLiteral.cs @@ -31,17 +31,17 @@ public partial class BooleanLiteral public virtual Task> GetDefaultAsync() => throw null; - public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutAll(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAllAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAllAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutAll(BooleanLiteralProperty body) => throw null; public virtual Task PutAllAsync(BooleanLiteralProperty body) => throw null; - public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutDefault(BooleanLiteralProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/Bytes.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/Bytes.cs index d1c9c09ea9..b9f4ea6ad5 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/Bytes.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/Bytes.cs @@ -31,17 +31,17 @@ public partial class Bytes public virtual Task> GetDefaultAsync() => throw null; - public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutAll(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAllAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAllAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutAll(BytesProperty body) => throw null; public virtual Task PutAllAsync(BytesProperty body) => throw null; - public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutDefault(BytesProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/CollectionsByte.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/CollectionsByte.cs index 4cbd1f8cb2..db5c69e1ad 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/CollectionsByte.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/CollectionsByte.cs @@ -31,17 +31,17 @@ public partial class CollectionsByte public virtual Task> GetDefaultAsync() => throw null; - public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutAll(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAllAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAllAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutAll(CollectionsByteProperty body) => throw null; public virtual Task PutAllAsync(CollectionsByteProperty body) => throw null; - public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutDefault(CollectionsByteProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/CollectionsModel.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/CollectionsModel.cs index 6b3cbef1b4..60319eba33 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/CollectionsModel.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/CollectionsModel.cs @@ -31,17 +31,17 @@ public partial class CollectionsModel public virtual Task> GetDefaultAsync() => throw null; - public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutAll(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAllAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAllAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutAll(CollectionsModelProperty body) => throw null; public virtual Task PutAllAsync(CollectionsModelProperty body) => throw null; - public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutDefault(CollectionsModelProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/Datetime.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/Datetime.cs index 89b236ff2d..277d8a96b2 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/Datetime.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/Datetime.cs @@ -31,17 +31,17 @@ public partial class Datetime public virtual Task> GetDefaultAsync() => throw null; - public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutAll(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAllAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAllAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutAll(DatetimeProperty body) => throw null; public virtual Task PutAllAsync(DatetimeProperty body) => throw null; - public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutDefault(DatetimeProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/Duration.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/Duration.cs index 8d82dffa25..d922fbcc97 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/Duration.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/Duration.cs @@ -31,17 +31,17 @@ public partial class Duration public virtual Task> GetDefaultAsync() => throw null; - public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutAll(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAllAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAllAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutAll(DurationProperty body) => throw null; public virtual Task PutAllAsync(DurationProperty body) => throw null; - public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutDefault(DurationProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/FloatLiteral.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/FloatLiteral.cs index 9ed91b0367..42b672cb25 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/FloatLiteral.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/FloatLiteral.cs @@ -31,17 +31,17 @@ public partial class FloatLiteral public virtual Task> GetDefaultAsync() => throw null; - public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutAll(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAllAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAllAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutAll(FloatLiteralProperty body) => throw null; public virtual Task PutAllAsync(FloatLiteralProperty body) => throw null; - public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutDefault(FloatLiteralProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/IntLiteral.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/IntLiteral.cs index d9ffb6712a..b292cefcdd 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/IntLiteral.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/IntLiteral.cs @@ -31,17 +31,17 @@ public partial class IntLiteral public virtual Task> GetDefaultAsync() => throw null; - public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutAll(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAllAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAllAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutAll(IntLiteralProperty body) => throw null; public virtual Task PutAllAsync(IntLiteralProperty body) => throw null; - public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutDefault(IntLiteralProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/PlainDate.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/PlainDate.cs index 0a685dce54..1a3aaeebc9 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/PlainDate.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/PlainDate.cs @@ -31,17 +31,17 @@ public partial class PlainDate public virtual Task> GetDefaultAsync() => throw null; - public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutAll(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAllAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAllAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutAll(PlainDateProperty body) => throw null; public virtual Task PutAllAsync(PlainDateProperty body) => throw null; - public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutDefault(PlainDateProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/PlainTime.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/PlainTime.cs index 2eb66b62a9..34533d2ea3 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/PlainTime.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/PlainTime.cs @@ -31,17 +31,17 @@ public partial class PlainTime public virtual Task> GetDefaultAsync() => throw null; - public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutAll(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAllAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAllAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutAll(PlainTimeProperty body) => throw null; public virtual Task PutAllAsync(PlainTimeProperty body) => throw null; - public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutDefault(PlainTimeProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/RequiredAndOptional.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/RequiredAndOptional.cs index 91e5fd158f..9ff15de82f 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/RequiredAndOptional.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/RequiredAndOptional.cs @@ -31,17 +31,17 @@ public partial class RequiredAndOptional public virtual Task> GetRequiredOnlyAsync() => throw null; - public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutAll(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAllAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAllAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutAll(RequiredAndOptionalProperty body) => throw null; public virtual Task PutAllAsync(RequiredAndOptionalProperty body) => throw null; - public virtual ClientResult PutRequiredOnly(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutRequiredOnly(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutRequiredOnlyAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutRequiredOnlyAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutRequiredOnly(RequiredAndOptionalProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/String.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/String.cs index d62a726a8d..7dd747d353 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/String.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/String.cs @@ -31,17 +31,17 @@ public partial class String public virtual Task> GetDefaultAsync() => throw null; - public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutAll(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAllAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAllAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutAll(StringProperty body) => throw null; public virtual Task PutAllAsync(StringProperty body) => throw null; - public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutDefault(StringProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/StringLiteral.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/StringLiteral.cs index d829db3daa..4cea493959 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/StringLiteral.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/StringLiteral.cs @@ -31,17 +31,17 @@ public partial class StringLiteral public virtual Task> GetDefaultAsync() => throw null; - public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutAll(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAllAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAllAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutAll(StringLiteralProperty body) => throw null; public virtual Task PutAllAsync(StringLiteralProperty body) => throw null; - public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutDefault(StringLiteralProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/UnionFloatLiteral.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/UnionFloatLiteral.cs index 0ce9d65d5b..f81af35ab9 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/UnionFloatLiteral.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/UnionFloatLiteral.cs @@ -31,17 +31,17 @@ public partial class UnionFloatLiteral public virtual Task> GetDefaultAsync() => throw null; - public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutAll(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAllAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAllAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutAll(UnionFloatLiteralProperty body) => throw null; public virtual Task PutAllAsync(UnionFloatLiteralProperty body) => throw null; - public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutDefault(UnionFloatLiteralProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/UnionIntLiteral.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/UnionIntLiteral.cs index c20252ba27..251fd4cebf 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/UnionIntLiteral.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/UnionIntLiteral.cs @@ -31,17 +31,17 @@ public partial class UnionIntLiteral public virtual Task> GetDefaultAsync() => throw null; - public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutAll(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAllAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAllAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutAll(UnionIntLiteralProperty body) => throw null; public virtual Task PutAllAsync(UnionIntLiteralProperty body) => throw null; - public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutDefault(UnionIntLiteralProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/UnionStringLiteral.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/UnionStringLiteral.cs index e4daa5d561..d52cc68830 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/UnionStringLiteral.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/optionality/src/Generated/UnionStringLiteral.cs @@ -31,17 +31,17 @@ public partial class UnionStringLiteral public virtual Task> GetDefaultAsync() => throw null; - public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutAll(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAllAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAllAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutAll(UnionStringLiteralProperty body) => throw null; public virtual Task PutAllAsync(UnionStringLiteralProperty body) => throw null; - public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutDefaultAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult PutDefault(UnionStringLiteralProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Boolean.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Boolean.cs index 8699ac1dec..5f62435294 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Boolean.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Boolean.cs @@ -23,9 +23,9 @@ public partial class Boolean public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(BooleanProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/BooleanLiteral.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/BooleanLiteral.cs index d9b6fb6f5a..51309f09d7 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/BooleanLiteral.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/BooleanLiteral.cs @@ -23,9 +23,9 @@ public partial class BooleanLiteral public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(BooleanLiteralProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Bytes.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Bytes.cs index 3c599469b4..edffc83517 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Bytes.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Bytes.cs @@ -23,9 +23,9 @@ public partial class Bytes public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(BytesProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/CollectionsInt.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/CollectionsInt.cs index df0f479289..034bf6ca52 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/CollectionsInt.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/CollectionsInt.cs @@ -23,9 +23,9 @@ public partial class CollectionsInt public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(CollectionsIntProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/CollectionsModel.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/CollectionsModel.cs index 233d0c095b..8a2eb161cd 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/CollectionsModel.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/CollectionsModel.cs @@ -23,9 +23,9 @@ public partial class CollectionsModel public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(CollectionsModelProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/CollectionsString.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/CollectionsString.cs index 38d61fecee..b4bd59a4af 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/CollectionsString.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/CollectionsString.cs @@ -23,9 +23,9 @@ public partial class CollectionsString public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(CollectionsStringProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Datetime.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Datetime.cs index 6ae6c319d0..27eb232b77 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Datetime.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Datetime.cs @@ -23,9 +23,9 @@ public partial class Datetime public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(DatetimeProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Decimal.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Decimal.cs index 0039424c7d..8efa918e47 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Decimal.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Decimal.cs @@ -23,9 +23,9 @@ public partial class Decimal public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(DecimalProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Decimal128.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Decimal128.cs index 027d0c812c..5766e12a26 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Decimal128.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Decimal128.cs @@ -23,9 +23,9 @@ public partial class Decimal128 public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(Decimal128Property body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/DictionaryString.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/DictionaryString.cs index 53683df2a3..986b9205bf 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/DictionaryString.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/DictionaryString.cs @@ -23,9 +23,9 @@ public partial class DictionaryString public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(DictionaryStringProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Duration.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Duration.cs index 44f2d494ca..154d95a728 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Duration.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Duration.cs @@ -23,9 +23,9 @@ public partial class Duration public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(DurationProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Enum.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Enum.cs index 8bef5a2da5..b552a578e7 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Enum.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Enum.cs @@ -23,9 +23,9 @@ public partial class Enum public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(EnumProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/ExtensibleEnum.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/ExtensibleEnum.cs index a6d858ad82..ed86dc509a 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/ExtensibleEnum.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/ExtensibleEnum.cs @@ -23,9 +23,9 @@ public partial class ExtensibleEnum public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(ExtensibleEnumProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Float.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Float.cs index 04ba616edb..ce46d7e6ce 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Float.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Float.cs @@ -23,9 +23,9 @@ public partial class Float public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(FloatProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/FloatLiteral.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/FloatLiteral.cs index 28ef3225f1..8825112c31 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/FloatLiteral.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/FloatLiteral.cs @@ -23,9 +23,9 @@ public partial class FloatLiteral public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(FloatLiteralProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Int.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Int.cs index 96a50b822f..1f230dd034 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Int.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Int.cs @@ -23,9 +23,9 @@ public partial class Int public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IntProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/IntLiteral.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/IntLiteral.cs index 91b46850ff..a1bf82fba3 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/IntLiteral.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/IntLiteral.cs @@ -23,9 +23,9 @@ public partial class IntLiteral public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(IntLiteralProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Model.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Model.cs index 1dea94fb1c..573ebd5bd1 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Model.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Model.cs @@ -23,9 +23,9 @@ public partial class Model public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(ModelProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Never.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Never.cs index 1552ad8c5b..4948048e88 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Never.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/Never.cs @@ -23,9 +23,9 @@ public partial class Never public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(NeverProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/String.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/String.cs index 8ae79da41d..9092c405c0 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/String.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/String.cs @@ -23,9 +23,9 @@ public partial class String public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(StringProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/StringLiteral.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/StringLiteral.cs index 98fcddc68c..49f0038dcc 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/StringLiteral.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/StringLiteral.cs @@ -23,9 +23,9 @@ public partial class StringLiteral public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(StringLiteralProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnionEnumValue.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnionEnumValue.cs index d9d9639a81..346003457d 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnionEnumValue.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnionEnumValue.cs @@ -23,9 +23,9 @@ public partial class UnionEnumValue public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(UnionEnumValueProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnionFloatLiteral.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnionFloatLiteral.cs index 44adc43c64..f954f82c71 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnionFloatLiteral.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnionFloatLiteral.cs @@ -23,9 +23,9 @@ public partial class UnionFloatLiteral public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(UnionFloatLiteralProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnionIntLiteral.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnionIntLiteral.cs index a5a9b6db8e..8e026b2df1 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnionIntLiteral.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnionIntLiteral.cs @@ -23,9 +23,9 @@ public partial class UnionIntLiteral public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(UnionIntLiteralProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnionStringLiteral.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnionStringLiteral.cs index 48dadba6f5..ac7090a1d8 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnionStringLiteral.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnionStringLiteral.cs @@ -23,9 +23,9 @@ public partial class UnionStringLiteral public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(UnionStringLiteralProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnknownArray.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnknownArray.cs index a25ce8a7e2..c580551db6 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnknownArray.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnknownArray.cs @@ -23,9 +23,9 @@ public partial class UnknownArray public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(UnknownArrayProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnknownDict.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnknownDict.cs index 60dc82bb67..0dff48aa15 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnknownDict.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnknownDict.cs @@ -23,9 +23,9 @@ public partial class UnknownDict public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(UnknownDictProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnknownInt.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnknownInt.cs index e703f1f3ff..e8dc4b2369 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnknownInt.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnknownInt.cs @@ -23,9 +23,9 @@ public partial class UnknownInt public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(UnknownIntProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnknownString.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnknownString.cs index 8ee87dd7f7..b108878822 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnknownString.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/property/value-types/src/Generated/UnknownString.cs @@ -23,9 +23,9 @@ public partial class UnknownString public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(UnknownStringProperty body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/Boolean.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/Boolean.cs index 962be88e31..f1e35010f9 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/Boolean.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/Boolean.cs @@ -22,9 +22,9 @@ public partial class Boolean public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(bool body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/Decimal128Type.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/Decimal128Type.cs index 1295fc1e98..e76352b183 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/Decimal128Type.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/Decimal128Type.cs @@ -22,9 +22,9 @@ public partial class Decimal128Type public virtual Task> ResponseBodyAsync() => throw null; - public virtual ClientResult RequestBody(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult RequestBody(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task RequestBodyAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task RequestBodyAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult RequestBody(decimal body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/Decimal128Verify.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/Decimal128Verify.cs index 30e7300e10..95f37cbbf0 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/Decimal128Verify.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/Decimal128Verify.cs @@ -23,9 +23,9 @@ public partial class Decimal128Verify public virtual Task>> PrepareVerifyAsync() => throw null; - public virtual ClientResult Verify(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Verify(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task VerifyAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task VerifyAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Verify(decimal body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/DecimalType.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/DecimalType.cs index 7afe850f9d..b7a3d00e3e 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/DecimalType.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/DecimalType.cs @@ -22,9 +22,9 @@ public partial class DecimalType public virtual Task> ResponseBodyAsync() => throw null; - public virtual ClientResult RequestBody(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult RequestBody(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task RequestBodyAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task RequestBodyAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult RequestBody(decimal body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/DecimalVerify.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/DecimalVerify.cs index 4a9c0d6d33..b7ec4700e0 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/DecimalVerify.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/DecimalVerify.cs @@ -23,9 +23,9 @@ public partial class DecimalVerify public virtual Task>> PrepareVerifyAsync() => throw null; - public virtual ClientResult Verify(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Verify(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task VerifyAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task VerifyAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Verify(decimal body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/String.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/String.cs index bc4eed911f..89aa1bbf8e 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/String.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/String.cs @@ -22,9 +22,9 @@ public partial class String public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(string body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/Unknown.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/Unknown.cs index 0af3b0b542..3ab840a2e5 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/Unknown.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/scalar/src/Generated/Unknown.cs @@ -23,9 +23,9 @@ public partial class Unknown public virtual Task> GetAsync() => throw null; - public virtual ClientResult Put(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Put(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task PutAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task PutAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Put(BinaryData body) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/EnumsOnly.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/EnumsOnly.cs index 2d7181605e..147f4ede08 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/EnumsOnly.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/EnumsOnly.cs @@ -23,9 +23,9 @@ public partial class EnumsOnly public virtual Task> GetAsync() => throw null; - public virtual ClientResult Send(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Send(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SendAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task SendAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Send(EnumsOnlyCases prop) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/FloatsOnly.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/FloatsOnly.cs index eb62eff82f..c5bef127db 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/FloatsOnly.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/FloatsOnly.cs @@ -23,9 +23,9 @@ public partial class FloatsOnly public virtual Task> GetAsync() => throw null; - public virtual ClientResult Send(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Send(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SendAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task SendAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Send(GetResponseProp1 prop) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/IntsOnly.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/IntsOnly.cs index 7331c2c3d0..51d7da1796 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/IntsOnly.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/IntsOnly.cs @@ -23,9 +23,9 @@ public partial class IntsOnly public virtual Task> GetAsync() => throw null; - public virtual ClientResult Send(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Send(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SendAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task SendAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Send(GetResponseProp2 prop) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/MixedLiterals.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/MixedLiterals.cs index d3e5337aec..b933843704 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/MixedLiterals.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/MixedLiterals.cs @@ -23,9 +23,9 @@ public partial class MixedLiterals public virtual Task> GetAsync() => throw null; - public virtual ClientResult Send(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Send(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SendAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task SendAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Send(MixedLiteralsCases prop) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/MixedTypes.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/MixedTypes.cs index ee595fc604..290033e2ca 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/MixedTypes.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/MixedTypes.cs @@ -23,9 +23,9 @@ public partial class MixedTypes public virtual Task> GetAsync() => throw null; - public virtual ClientResult Send(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Send(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SendAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task SendAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Send(MixedTypesCases prop) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/ModelsOnly.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/ModelsOnly.cs index d76bcd43ba..9c15803e9a 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/ModelsOnly.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/ModelsOnly.cs @@ -24,9 +24,9 @@ public partial class ModelsOnly public virtual Task> GetAsync() => throw null; - public virtual ClientResult Send(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Send(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SendAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task SendAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Send(BinaryData prop) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/StringAndArray.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/StringAndArray.cs index 6ef208a2de..e76e9988a5 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/StringAndArray.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/StringAndArray.cs @@ -23,9 +23,9 @@ public partial class StringAndArray public virtual Task> GetAsync() => throw null; - public virtual ClientResult Send(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Send(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SendAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task SendAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Send(StringAndArrayCases prop) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/StringExtensible.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/StringExtensible.cs index 570bba66e8..89077fb6d0 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/StringExtensible.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/StringExtensible.cs @@ -23,9 +23,9 @@ public partial class StringExtensible public virtual Task> GetAsync() => throw null; - public virtual ClientResult Send(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Send(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SendAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task SendAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Send(GetResponseProp3 prop) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/StringExtensibleNamed.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/StringExtensibleNamed.cs index 17725f4afd..24537d758d 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/StringExtensibleNamed.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/StringExtensibleNamed.cs @@ -23,9 +23,9 @@ public partial class StringExtensibleNamed public virtual Task> GetAsync() => throw null; - public virtual ClientResult Send(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Send(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SendAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task SendAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Send(StringExtensibleNamedUnion prop) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/StringsOnly.cs b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/StringsOnly.cs index 228157d6ba..de0858c7cd 100644 --- a/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/StringsOnly.cs +++ b/packages/http-client-csharp/generator/TestProjects/CadlRanch/http/type/union/src/Generated/StringsOnly.cs @@ -23,9 +23,9 @@ public partial class StringsOnly public virtual Task> GetAsync() => throw null; - public virtual ClientResult Send(BinaryContent content, RequestOptions options) => throw null; + public virtual ClientResult Send(BinaryContent content, RequestOptions options = null) => throw null; - public virtual Task SendAsync(BinaryContent content, RequestOptions options) => throw null; + public virtual Task SendAsync(BinaryContent content, RequestOptions options = null) => throw null; public virtual ClientResult Send(GetResponseProp4 prop) => throw null; diff --git a/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/src/Generated/UnbrandedTypeSpecClient.cs b/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/src/Generated/UnbrandedTypeSpecClient.cs index b7b7de193e..30fcf8ece5 100644 --- a/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/src/Generated/UnbrandedTypeSpecClient.cs +++ b/packages/http-client-csharp/generator/TestProjects/Local/Unbranded-TypeSpec/src/Generated/UnbrandedTypeSpecClient.cs @@ -148,7 +148,7 @@ public virtual async Task> SayHiAsync(string headParameter, /// , or is null. /// Service returned a non-success status code. /// The response returned from the service. - public virtual ClientResult HelloAgain(string p2, string p1, BinaryContent content, RequestOptions options) + public virtual ClientResult HelloAgain(string p2, string p1, BinaryContent content, RequestOptions options = null) { Argument.AssertNotNull(p2, nameof(p2)); Argument.AssertNotNull(p1, nameof(p1)); @@ -173,7 +173,7 @@ public virtual ClientResult HelloAgain(string p2, string p1, BinaryContent conte /// , or is null. /// Service returned a non-success status code. /// The response returned from the service. - public virtual async Task HelloAgainAsync(string p2, string p1, BinaryContent content, RequestOptions options) + public virtual async Task HelloAgainAsync(string p2, string p1, BinaryContent content, RequestOptions options = null) { Argument.AssertNotNull(p2, nameof(p2)); Argument.AssertNotNull(p1, nameof(p1)); @@ -230,7 +230,7 @@ public virtual async Task> HelloAgainAsync(string p /// , or is null. /// Service returned a non-success status code. /// The response returned from the service. - public virtual ClientResult NoContentType(string p2, string p1, BinaryContent content, RequestOptions options) + public virtual ClientResult NoContentType(string p2, string p1, BinaryContent content, RequestOptions options = null) { Argument.AssertNotNull(p2, nameof(p2)); Argument.AssertNotNull(p1, nameof(p1)); @@ -255,7 +255,7 @@ public virtual ClientResult NoContentType(string p2, string p1, BinaryContent co /// , or is null. /// Service returned a non-success status code. /// The response returned from the service. - public virtual async Task NoContentTypeAsync(string p2, string p1, BinaryContent content, RequestOptions options) + public virtual async Task NoContentTypeAsync(string p2, string p1, BinaryContent content, RequestOptions options = null) { Argument.AssertNotNull(p2, nameof(p2)); Argument.AssertNotNull(p1, nameof(p1)); @@ -328,7 +328,7 @@ public virtual async Task> HelloDemo2Async() /// is null. /// Service returned a non-success status code. /// The response returned from the service. - public virtual ClientResult CreateLiteral(BinaryContent content, RequestOptions options) + public virtual ClientResult CreateLiteral(BinaryContent content, RequestOptions options = null) { Argument.AssertNotNull(content, nameof(content)); @@ -349,7 +349,7 @@ public virtual ClientResult CreateLiteral(BinaryContent content, RequestOptions /// is null. /// Service returned a non-success status code. /// The response returned from the service. - public virtual async Task CreateLiteralAsync(BinaryContent content, RequestOptions options) + public virtual async Task CreateLiteralAsync(BinaryContent content, RequestOptions options = null) { Argument.AssertNotNull(content, nameof(content)); @@ -532,7 +532,7 @@ public virtual async Task TopAction2Async(RequestOptions options) /// is null. /// Service returned a non-success status code. /// The response returned from the service. - public virtual ClientResult PatchAction(BinaryContent content, RequestOptions options) + public virtual ClientResult PatchAction(BinaryContent content, RequestOptions options = null) { Argument.AssertNotNull(content, nameof(content)); @@ -553,7 +553,7 @@ public virtual ClientResult PatchAction(BinaryContent content, RequestOptions op /// is null. /// Service returned a non-success status code. /// The response returned from the service. - public virtual async Task PatchActionAsync(BinaryContent content, RequestOptions options) + public virtual async Task PatchActionAsync(BinaryContent content, RequestOptions options = null) { Argument.AssertNotNull(content, nameof(content)); @@ -574,7 +574,7 @@ public virtual async Task PatchActionAsync(BinaryContent content, /// is null. /// Service returned a non-success status code. /// The response returned from the service. - public virtual ClientResult AnonymousBody(BinaryContent content, RequestOptions options) + public virtual ClientResult AnonymousBody(BinaryContent content, RequestOptions options = null) { Argument.AssertNotNull(content, nameof(content)); @@ -595,7 +595,7 @@ public virtual ClientResult AnonymousBody(BinaryContent content, RequestOptions /// is null. /// Service returned a non-success status code. /// The response returned from the service. - public virtual async Task AnonymousBodyAsync(BinaryContent content, RequestOptions options) + public virtual async Task AnonymousBodyAsync(BinaryContent content, RequestOptions options = null) { Argument.AssertNotNull(content, nameof(content)); @@ -698,7 +698,7 @@ public virtual async Task> AnonymousBodyAsync(string name, B /// is null. /// Service returned a non-success status code. /// The response returned from the service. - public virtual ClientResult FriendlyModel(BinaryContent content, RequestOptions options) + public virtual ClientResult FriendlyModel(BinaryContent content, RequestOptions options = null) { Argument.AssertNotNull(content, nameof(content)); @@ -719,7 +719,7 @@ public virtual ClientResult FriendlyModel(BinaryContent content, RequestOptions /// is null. /// Service returned a non-success status code. /// The response returned from the service. - public virtual async Task FriendlyModelAsync(BinaryContent content, RequestOptions options) + public virtual async Task FriendlyModelAsync(BinaryContent content, RequestOptions options = null) { Argument.AssertNotNull(content, nameof(content)); @@ -814,7 +814,7 @@ public virtual async Task AddTimeHeaderAsync() /// is null. /// Service returned a non-success status code. /// The response returned from the service. - public virtual ClientResult ProjectedNameModel(BinaryContent content, RequestOptions options) + public virtual ClientResult ProjectedNameModel(BinaryContent content, RequestOptions options = null) { Argument.AssertNotNull(content, nameof(content)); @@ -835,7 +835,7 @@ public virtual ClientResult ProjectedNameModel(BinaryContent content, RequestOpt /// is null. /// Service returned a non-success status code. /// The response returned from the service. - public virtual async Task ProjectedNameModelAsync(BinaryContent content, RequestOptions options) + public virtual async Task ProjectedNameModelAsync(BinaryContent content, RequestOptions options = null) { Argument.AssertNotNull(content, nameof(content)); @@ -998,7 +998,7 @@ public virtual async Task> GetUnknownValueAsync(string acce /// is null. /// Service returned a non-success status code. /// The response returned from the service. - public virtual ClientResult InternalProtocol(BinaryContent content, RequestOptions options) + public virtual ClientResult InternalProtocol(BinaryContent content, RequestOptions options = null) { Argument.AssertNotNull(content, nameof(content)); @@ -1019,7 +1019,7 @@ public virtual ClientResult InternalProtocol(BinaryContent content, RequestOptio /// is null. /// Service returned a non-success status code. /// The response returned from the service. - public virtual async Task InternalProtocolAsync(BinaryContent content, RequestOptions options) + public virtual async Task InternalProtocolAsync(BinaryContent content, RequestOptions options = null) { Argument.AssertNotNull(content, nameof(content));