adopt http/type/property/optionality (#4267)

Fixes https://github.com/microsoft/typespec/issues/4009
This commit is contained in:
m-nash 2024-08-25 22:06:43 -07:00 коммит произвёл GitHub
Родитель b27efa97c4
Коммит b4005cdcbb
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
70 изменённых файлов: 8484 добавлений и 5 удалений

Просмотреть файл

@ -76,7 +76,6 @@ $failingSpecs = @(
Join-Path 'http' 'type' 'model' 'inheritance' 'not-discriminated'
Join-Path 'http' 'type' 'model' 'inheritance' 'recursive'
Join-Path 'http' 'type' 'property' 'additional-properties'
Join-Path 'http' 'type' 'property' 'optionality'
Join-Path 'http' 'type' 'property' 'value-types'
)

Просмотреть файл

@ -110,6 +110,11 @@
"commandName": "Executable",
"executablePath": "$(SolutionDir)/../dist/generator/Microsoft.Generator.CSharp.exe"
},
"http-type-property-optionality": {
"commandLineArgs": "$(SolutionDir)/TestProjects/CadlRanch/http/type/property/optionality -p StubLibraryPlugin",
"commandName": "Executable",
"executablePath": "$(SolutionDir)/../dist/generator/Microsoft.Generator.CSharp.exe"
},
"http-type-scalar": {
"commandLineArgs": "$(SolutionDir)/TestProjects/CadlRanch/http/type/scalar -p StubLibraryPlugin",
"commandName": "Executable",

Просмотреть файл

@ -5,7 +5,6 @@ using System;
using System.ClientModel;
using System.IO;
using System.Threading.Tasks;
using AutoRest.TestServer.Tests.Infrastructure;
using Encode.Bytes;
using Encode.Bytes.Models;
using NUnit.Framework;

Просмотреть файл

@ -7,7 +7,6 @@ using System.Linq;
using System.Threading.Tasks;
using System.Xml;
using _Type.Property.Nullable;
using AutoRest.TestServer.Tests.Infrastructure;
using NUnit.Framework;
namespace TestProjects.CadlRanch.Tests.Http._Type.Property.Nullable

Просмотреть файл

@ -0,0 +1,544 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Threading.Tasks;
using System.Xml;
using _Type.Property.Optional;
using _Type.Property.Optional.Models;
using NUnit.Framework;
namespace TestProjects.CadlRanch.Tests.Http._Type.Property.Optionality
{
internal class OptionalityTests : CadlRanchTestBase
{
[CadlRanchTest]
public Task BooleanLiteralGetAll() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetBooleanLiteralClient().GetAllAsync();
Assert.AreEqual(true, response.Value.Property);
});
[CadlRanchTest]
public Task BooleanLiteralGetDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetBooleanLiteralClient().GetDefaultAsync();
Assert.AreEqual(null, response.Value.Property);
});
[CadlRanchTest]
public Task BooleanLiteralPutAll() => Test(async (host) =>
{
BooleanLiteralProperty data = new()
{
Property = true
};
var response = await new OptionalClient(host, null).GetBooleanLiteralClient().PutAllAsync(data);
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task BooleanLiteralPutDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetBooleanLiteralClient().PutDefaultAsync(new BooleanLiteralProperty());
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task StringGetAll() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetStringClient().GetAllAsync();
Assert.AreEqual("hello", response.Value.Property);
});
[CadlRanchTest]
public Task StringGetDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetStringClient().GetDefaultAsync();
Assert.AreEqual(null, response.Value.Property);
});
[CadlRanchTest]
public Task StringPutAll() => Test(async (host) =>
{
StringProperty data = new()
{
Property = "hello"
};
var response = await new OptionalClient(host, null).GetStringClient().PutAllAsync(data);
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task StringPutDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetStringClient().PutDefaultAsync(new StringProperty());
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task BytesGetAll() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetBytesClient().GetAllAsync();
BinaryDataAssert.AreEqual(BinaryData.FromString("hello, world!"), response.Value.Property);
});
[CadlRanchTest]
public Task BytesGetDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetBytesClient().GetDefaultAsync();
Assert.AreEqual(null, response.Value.Property);
});
[CadlRanchTest]
public Task BytesPutAll() => Test(async (host) =>
{
BytesProperty data = new()
{
Property = BinaryData.FromString("hello, world!")
};
var response = await new OptionalClient(host, null).GetBytesClient().PutAllAsync(data);
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task BytesPutDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetBytesClient().PutDefaultAsync(new BytesProperty());
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task DatetimeGetAll() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetDatetimeClient().GetAllAsync();
Assert.AreEqual(DateTimeOffset.Parse("2022-08-26T18:38:00Z"), response.Value.Property);
});
[CadlRanchTest]
public Task DatetimeGetDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetDatetimeClient().GetDefaultAsync();
Assert.AreEqual(null, response.Value.Property);
});
[CadlRanchTest]
public Task DatetimePutAll() => Test(async (host) =>
{
DatetimeProperty data = new()
{
Property = DateTimeOffset.Parse("2022-08-26T18:38:00Z")
};
var response = await new OptionalClient(host, null).GetDatetimeClient().PutAllAsync(data);
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task DatetimePutDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetDatetimeClient().PutDefaultAsync(new DatetimeProperty());
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task PlaindateGetAll() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetPlainDateClient().GetAllAsync();
var expectedDate = new DateTimeOffset(2022, 12, 12, 8, 0, 0, TimeSpan.FromHours(8));
Assert.AreEqual(expectedDate, response.Value.Property!.Value.ToOffset(TimeSpan.FromHours(8)));
});
[CadlRanchTest]
public Task PlaindateGetDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetPlainDateClient().GetDefaultAsync();
Assert.AreEqual(null, response.Value.Property);
});
[CadlRanchTest]
public Task PlaindatePutAll() => Test(async (host) =>
{
PlainDateProperty data = new()
{
Property = DateTimeOffset.Parse("2022-12-12")
};
var response = await new OptionalClient(host, null).GetPlainDateClient().PutAllAsync(data);
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task PlaindatePutDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetPlainDateClient().PutDefaultAsync(new PlainDateProperty());
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task PlaintimeGetAll() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetPlainTimeClient().GetAllAsync();
Assert.AreEqual(TimeSpan.Parse("13:06:12"), response.Value.Property);
});
[CadlRanchTest]
public Task PlaintimeGetDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetPlainTimeClient().GetDefaultAsync();
Assert.AreEqual(null, response.Value.Property);
});
[CadlRanchTest]
public Task PlaintimePutAll() => Test(async (host) =>
{
PlainTimeProperty data = new()
{
Property = TimeSpan.Parse("13:06:12")
};
var response = await new OptionalClient(host, null).GetPlainTimeClient().PutAllAsync(data);
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task PlaintimePutDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetPlainTimeClient().PutDefaultAsync(new PlainTimeProperty());
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task DurationGetAll() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetDurationClient().GetAllAsync();
Assert.AreEqual(XmlConvert.ToTimeSpan("P123DT22H14M12.011S"), response.Value.Property);
});
[CadlRanchTest]
public Task DurationGetDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetDurationClient().GetDefaultAsync();
Assert.AreEqual(null, response.Value.Property);
});
[CadlRanchTest]
public Task DurationPutAll() => Test(async (host) =>
{
DurationProperty data = new()
{
Property = XmlConvert.ToTimeSpan("P123DT22H14M12.011S")
};
var response = await new OptionalClient(host, null).GetDurationClient().PutAllAsync(data);
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task DurationPutDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetDurationClient().PutDefaultAsync(new DurationProperty());
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task CollectionsByteGetAll() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetCollectionsByteClient().GetAllAsync();
BinaryDataAssert.AreEqual(BinaryData.FromString("hello, world!"), response.Value.Property[0]);
BinaryDataAssert.AreEqual(BinaryData.FromString("hello, world!"), response.Value.Property[1]);
});
[CadlRanchTest]
public Task CollectionsByteGetDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetCollectionsByteClient().GetDefaultAsync();
Assert.AreEqual(0, response.Value.Property.Count);
});
[CadlRanchTest]
public Task CollectionsBytePutAll() => Test(async (host) =>
{
CollectionsByteProperty data = new();
data.Property.Add(BinaryData.FromString("hello, world!"));
data.Property.Add(BinaryData.FromString("hello, world!"));
var response = await new OptionalClient(host, null).GetCollectionsByteClient().PutAllAsync(data);
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task CollectionsBytePutDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetCollectionsByteClient().PutDefaultAsync(new CollectionsByteProperty());
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task CollectionsModelGetAll() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetCollectionsModelClient().GetAllAsync();
var result = response.Value;
Assert.AreEqual("hello", result.Property[0].Property);
Assert.AreEqual("world", result.Property[1].Property);
Assert.AreEqual(2, result.Property.Count);
});
[CadlRanchTest]
public Task CollectionsModelGetDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetCollectionsModelClient().GetDefaultAsync();
Assert.AreEqual(0, response.Value.Property.Count);
});
[CadlRanchTest]
public Task CollectionsModelPutAll() => Test(async (host) =>
{
CollectionsModelProperty data = new();
data.Property.Add(new StringProperty()
{
Property = "hello"
});
data.Property.Add(new StringProperty()
{
Property = "world"
});
var response = await new OptionalClient(host, null).GetCollectionsModelClient().PutAllAsync(data);
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task CollectionsModelPutDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetCollectionsModelClient().PutDefaultAsync(new CollectionsModelProperty());
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task RequiredAndOptionalGetAll() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetRequiredAndOptionalClient().GetAllAsync();
var result = response.Value;
Assert.AreEqual("hello", result.OptionalProperty);
Assert.AreEqual(42, result.RequiredProperty);
});
[CadlRanchTest]
public Task RequiredAndOptionalGetRequiredOnly() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetRequiredAndOptionalClient().GetRequiredOnlyAsync();
var result = response.Value;
Assert.AreEqual(null, result.OptionalProperty);
Assert.AreEqual(42, result.RequiredProperty);
});
[CadlRanchTest]
public Task RequiredAndOptionalPutAll() => Test(async (host) =>
{
var content = new RequiredAndOptionalProperty(42)
{
OptionalProperty = "hello"
};
var response = await new OptionalClient(host, null).GetRequiredAndOptionalClient().PutAllAsync(content);
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task RequiredAndOptionalPutRequiredOnly() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetRequiredAndOptionalClient().PutRequiredOnlyAsync(new RequiredAndOptionalProperty(42));
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task FloatLiteralGetAll() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetFloatLiteralClient().GetAllAsync();
Assert.AreEqual(FloatLiteralPropertyProperty._125, response.Value.Property);
});
[CadlRanchTest]
public Task FloatLiteralGetDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetFloatLiteralClient().GetDefaultAsync();
Assert.AreEqual(null, response.Value.Property);
});
[CadlRanchTest]
public Task FloatLiteralPutAll() => Test(async (host) =>
{
FloatLiteralProperty data = new()
{
Property = new FloatLiteralPropertyProperty(1.25f)
};
var response = await new OptionalClient(host, null).GetFloatLiteralClient().PutAllAsync(data);
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task FloatLiteralPutDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetFloatLiteralClient().PutDefaultAsync(new FloatLiteralProperty());
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task IntLiteralGetAll() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetIntLiteralClient().GetAllAsync();
Assert.AreEqual(IntLiteralPropertyProperty._1, response.Value.Property);
});
[CadlRanchTest]
public Task IntLiteralGetDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetIntLiteralClient().GetDefaultAsync();
Assert.AreEqual(null, response.Value.Property);
});
[CadlRanchTest]
public Task IntLiteralPutAll() => Test(async (host) =>
{
IntLiteralProperty data = new()
{
Property = 1
};
var response = await new OptionalClient(host, null).GetIntLiteralClient().PutAllAsync(data);
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task IntLiteralPutDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetIntLiteralClient().PutDefaultAsync(new IntLiteralProperty());
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task StringLiteralGetAll() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetStringLiteralClient().GetAllAsync();
Assert.AreEqual(StringLiteralPropertyProperty.Hello, response.Value.Property);
});
[CadlRanchTest]
public Task StringLiteralGetDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetStringLiteralClient().GetDefaultAsync();
Assert.AreEqual(null, response.Value.Property);
});
[CadlRanchTest]
public Task StringLiteralPutAll() => Test(async (host) =>
{
StringLiteralProperty data = new()
{
Property = "hello"
};
var response = await new OptionalClient(host, null).GetStringLiteralClient().PutAllAsync(data);
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task StringLiteralPutDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetStringLiteralClient().PutDefaultAsync(new StringLiteralProperty());
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task UnionFloatLiteralGetAll() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetUnionFloatLiteralClient().GetAllAsync();
Assert.AreEqual(UnionFloatLiteralPropertyProperty._2375, response.Value.Property);
});
[CadlRanchTest]
public Task UnionFloatLiteralGetDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetUnionFloatLiteralClient().GetDefaultAsync();
Assert.AreEqual(null, response.Value.Property);
});
[CadlRanchTest]
public Task UnionFloatLiteralPutAll() => Test(async (host) =>
{
UnionFloatLiteralProperty data = new()
{
Property = UnionFloatLiteralPropertyProperty._2375
};
var response = await new OptionalClient(host, null).GetUnionFloatLiteralClient().PutAllAsync(data);
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task UnionFloatLiteralPutDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetUnionFloatLiteralClient().PutDefaultAsync(new UnionFloatLiteralProperty());
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task UnionIntLiteralGetAll() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetUnionIntLiteralClient().GetAllAsync();
Assert.AreEqual(UnionIntLiteralPropertyProperty._2, response.Value.Property);
});
[CadlRanchTest]
public Task UnionIntLiteralGetDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetUnionIntLiteralClient().GetDefaultAsync();
Assert.AreEqual(null, response.Value.Property);
});
[CadlRanchTest]
public Task UnionIntLiteralGutAll() => Test(async (host) =>
{
UnionIntLiteralProperty data = new()
{
Property = UnionIntLiteralPropertyProperty._2
};
var response = await new OptionalClient(host, null).GetUnionIntLiteralClient().PutAllAsync(data);
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task UnionIntLiteralPutDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetUnionIntLiteralClient().PutDefaultAsync(new UnionIntLiteralProperty());
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task UnionStringLiteralGetAll() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetUnionStringLiteralClient().GetAllAsync();
Assert.AreEqual(UnionStringLiteralPropertyProperty.World, response.Value.Property);
});
[CadlRanchTest]
public Task UnionStringLiteralGetDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetUnionStringLiteralClient().GetDefaultAsync();
Assert.AreEqual(null, response.Value.Property);
});
[CadlRanchTest]
public Task UnionStringLiteralPutAll() => Test(async (host) =>
{
UnionStringLiteralProperty data = new()
{
Property = UnionStringLiteralPropertyProperty.World,
};
var response = await new OptionalClient(host, null).GetUnionStringLiteralClient().PutAllAsync(data);
Assert.AreEqual(204, response.GetRawResponse().Status);
});
[CadlRanchTest]
public Task UnionStringLiteralPutDefault() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetUnionStringLiteralClient().PutDefaultAsync(new UnionStringLiteralProperty());
Assert.AreEqual(204, response.GetRawResponse().Status);
});
}
}

Просмотреть файл

@ -7,7 +7,6 @@ using System.Collections.Generic;
using System.Threading.Tasks;
using _Type.Union;
using _Type.Union.Models;
using AutoRest.TestServer.Tests.Infrastructure;
using NUnit.Framework;
namespace TestProjects.CadlRanch.Tests.Http._Type.Union

Просмотреть файл

@ -4,7 +4,7 @@
using System;
using NUnit.Framework;
namespace AutoRest.TestServer.Tests.Infrastructure
namespace TestProjects.CadlRanch.Tests
{
public static class BinaryDataAssert
{

Просмотреть файл

@ -0,0 +1,6 @@
{
"output-folder": ".",
"namespace": "Type.Property.Optional",
"library-name": "Type.Property.Optional",
"use-model-reader-writer": true
}

Просмотреть файл

@ -0,0 +1,48 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29709.97
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "_Type.Property.Optional", "src\_Type.Property.Optional.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.Build.0 = Release|Any CPU
{8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.Build.0 = Release|Any CPU
{A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.Build.0 = Release|Any CPU
{FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.Build.0 = Release|Any CPU
{85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.Build.0 = Release|Any CPU
{28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.Build.0 = Debug|Any CPU
{28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.ActiveCfg = Release|Any CPU
{28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU
{1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE}
EndGlobalSection
EndGlobal

Просмотреть файл

@ -0,0 +1,50 @@
// <auto-generated/>
#nullable disable
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Threading.Tasks;
using _Type.Property.Optional.Models;
namespace _Type.Property.Optional
{
public partial class BooleanLiteral
{
protected BooleanLiteral() => throw null;
public ClientPipeline Pipeline => throw null;
public virtual ClientResult GetAll(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetAllAsync(RequestOptions options) => throw null;
public virtual ClientResult<BooleanLiteralProperty> GetAll() => throw null;
public virtual Task<ClientResult<BooleanLiteralProperty>> GetAllAsync() => throw null;
public virtual ClientResult GetDefault(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetDefaultAsync(RequestOptions options) => throw null;
public virtual ClientResult<BooleanLiteralProperty> GetDefault() => throw null;
public virtual Task<ClientResult<BooleanLiteralProperty>> GetDefaultAsync() => throw null;
public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutAllAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutAll(BooleanLiteralProperty body) => throw null;
public virtual Task<ClientResult> PutAllAsync(BooleanLiteralProperty body) => throw null;
public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutDefault(BooleanLiteralProperty body) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(BooleanLiteralProperty body) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,50 @@
// <auto-generated/>
#nullable disable
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Threading.Tasks;
using _Type.Property.Optional.Models;
namespace _Type.Property.Optional
{
public partial class Bytes
{
protected Bytes() => throw null;
public ClientPipeline Pipeline => throw null;
public virtual ClientResult GetAll(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetAllAsync(RequestOptions options) => throw null;
public virtual ClientResult<BytesProperty> GetAll() => throw null;
public virtual Task<ClientResult<BytesProperty>> GetAllAsync() => throw null;
public virtual ClientResult GetDefault(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetDefaultAsync(RequestOptions options) => throw null;
public virtual ClientResult<BytesProperty> GetDefault() => throw null;
public virtual Task<ClientResult<BytesProperty>> GetDefaultAsync() => throw null;
public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutAllAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutAll(BytesProperty body) => throw null;
public virtual Task<ClientResult> PutAllAsync(BytesProperty body) => throw null;
public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutDefault(BytesProperty body) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(BytesProperty body) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,50 @@
// <auto-generated/>
#nullable disable
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Threading.Tasks;
using _Type.Property.Optional.Models;
namespace _Type.Property.Optional
{
public partial class CollectionsByte
{
protected CollectionsByte() => throw null;
public ClientPipeline Pipeline => throw null;
public virtual ClientResult GetAll(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetAllAsync(RequestOptions options) => throw null;
public virtual ClientResult<CollectionsByteProperty> GetAll() => throw null;
public virtual Task<ClientResult<CollectionsByteProperty>> GetAllAsync() => throw null;
public virtual ClientResult GetDefault(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetDefaultAsync(RequestOptions options) => throw null;
public virtual ClientResult<CollectionsByteProperty> GetDefault() => throw null;
public virtual Task<ClientResult<CollectionsByteProperty>> GetDefaultAsync() => throw null;
public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutAllAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutAll(CollectionsByteProperty body) => throw null;
public virtual Task<ClientResult> PutAllAsync(CollectionsByteProperty body) => throw null;
public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutDefault(CollectionsByteProperty body) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(CollectionsByteProperty body) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,50 @@
// <auto-generated/>
#nullable disable
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Threading.Tasks;
using _Type.Property.Optional.Models;
namespace _Type.Property.Optional
{
public partial class CollectionsModel
{
protected CollectionsModel() => throw null;
public ClientPipeline Pipeline => throw null;
public virtual ClientResult GetAll(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetAllAsync(RequestOptions options) => throw null;
public virtual ClientResult<CollectionsModelProperty> GetAll() => throw null;
public virtual Task<ClientResult<CollectionsModelProperty>> GetAllAsync() => throw null;
public virtual ClientResult GetDefault(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetDefaultAsync(RequestOptions options) => throw null;
public virtual ClientResult<CollectionsModelProperty> GetDefault() => throw null;
public virtual Task<ClientResult<CollectionsModelProperty>> GetDefaultAsync() => throw null;
public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutAllAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutAll(CollectionsModelProperty body) => throw null;
public virtual Task<ClientResult> PutAllAsync(CollectionsModelProperty body) => throw null;
public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutDefault(CollectionsModelProperty body) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(CollectionsModelProperty body) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,50 @@
// <auto-generated/>
#nullable disable
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Threading.Tasks;
using _Type.Property.Optional.Models;
namespace _Type.Property.Optional
{
public partial class Datetime
{
protected Datetime() => throw null;
public ClientPipeline Pipeline => throw null;
public virtual ClientResult GetAll(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetAllAsync(RequestOptions options) => throw null;
public virtual ClientResult<DatetimeProperty> GetAll() => throw null;
public virtual Task<ClientResult<DatetimeProperty>> GetAllAsync() => throw null;
public virtual ClientResult GetDefault(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetDefaultAsync(RequestOptions options) => throw null;
public virtual ClientResult<DatetimeProperty> GetDefault() => throw null;
public virtual Task<ClientResult<DatetimeProperty>> GetDefaultAsync() => throw null;
public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutAllAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutAll(DatetimeProperty body) => throw null;
public virtual Task<ClientResult> PutAllAsync(DatetimeProperty body) => throw null;
public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutDefault(DatetimeProperty body) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(DatetimeProperty body) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,50 @@
// <auto-generated/>
#nullable disable
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Threading.Tasks;
using _Type.Property.Optional.Models;
namespace _Type.Property.Optional
{
public partial class Duration
{
protected Duration() => throw null;
public ClientPipeline Pipeline => throw null;
public virtual ClientResult GetAll(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetAllAsync(RequestOptions options) => throw null;
public virtual ClientResult<DurationProperty> GetAll() => throw null;
public virtual Task<ClientResult<DurationProperty>> GetAllAsync() => throw null;
public virtual ClientResult GetDefault(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetDefaultAsync(RequestOptions options) => throw null;
public virtual ClientResult<DurationProperty> GetDefault() => throw null;
public virtual Task<ClientResult<DurationProperty>> GetDefaultAsync() => throw null;
public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutAllAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutAll(DurationProperty body) => throw null;
public virtual Task<ClientResult> PutAllAsync(DurationProperty body) => throw null;
public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutDefault(DurationProperty body) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(DurationProperty body) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,50 @@
// <auto-generated/>
#nullable disable
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Threading.Tasks;
using _Type.Property.Optional.Models;
namespace _Type.Property.Optional
{
public partial class FloatLiteral
{
protected FloatLiteral() => throw null;
public ClientPipeline Pipeline => throw null;
public virtual ClientResult GetAll(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetAllAsync(RequestOptions options) => throw null;
public virtual ClientResult<FloatLiteralProperty> GetAll() => throw null;
public virtual Task<ClientResult<FloatLiteralProperty>> GetAllAsync() => throw null;
public virtual ClientResult GetDefault(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetDefaultAsync(RequestOptions options) => throw null;
public virtual ClientResult<FloatLiteralProperty> GetDefault() => throw null;
public virtual Task<ClientResult<FloatLiteralProperty>> GetDefaultAsync() => throw null;
public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutAllAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutAll(FloatLiteralProperty body) => throw null;
public virtual Task<ClientResult> PutAllAsync(FloatLiteralProperty body) => throw null;
public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutDefault(FloatLiteralProperty body) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(FloatLiteralProperty body) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,50 @@
// <auto-generated/>
#nullable disable
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Threading.Tasks;
using _Type.Property.Optional.Models;
namespace _Type.Property.Optional
{
public partial class IntLiteral
{
protected IntLiteral() => throw null;
public ClientPipeline Pipeline => throw null;
public virtual ClientResult GetAll(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetAllAsync(RequestOptions options) => throw null;
public virtual ClientResult<IntLiteralProperty> GetAll() => throw null;
public virtual Task<ClientResult<IntLiteralProperty>> GetAllAsync() => throw null;
public virtual ClientResult GetDefault(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetDefaultAsync(RequestOptions options) => throw null;
public virtual ClientResult<IntLiteralProperty> GetDefault() => throw null;
public virtual Task<ClientResult<IntLiteralProperty>> GetDefaultAsync() => throw null;
public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutAllAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutAll(IntLiteralProperty body) => throw null;
public virtual Task<ClientResult> PutAllAsync(IntLiteralProperty body) => throw null;
public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutDefault(IntLiteralProperty body) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(IntLiteralProperty body) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,36 @@
// <auto-generated/>
#nullable disable
using System;
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Text.Json;
namespace _Type.Property.Optional.Models
{
public partial class BooleanLiteralProperty : IJsonModel<BooleanLiteralProperty>
{
void IJsonModel<BooleanLiteralProperty>.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
BooleanLiteralProperty IJsonModel<BooleanLiteralProperty>.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
protected virtual BooleanLiteralProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
BinaryData IPersistableModel<BooleanLiteralProperty>.Write(ModelReaderWriterOptions options) => throw null;
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null;
BooleanLiteralProperty IPersistableModel<BooleanLiteralProperty>.Create(BinaryData data, ModelReaderWriterOptions options) => throw null;
protected virtual BooleanLiteralProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
string IPersistableModel<BooleanLiteralProperty>.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
public static implicit operator BinaryContent(BooleanLiteralProperty booleanLiteralProperty) => throw null;
public static explicit operator BooleanLiteralProperty(ClientResult result) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,18 @@
// <auto-generated/>
#nullable disable
namespace _Type.Property.Optional.Models
{
public partial class BooleanLiteralProperty
{
public BooleanLiteralProperty() => throw null;
public bool? Property
{
get => throw null;
set => throw null;
}
}
}

Просмотреть файл

@ -0,0 +1,36 @@
// <auto-generated/>
#nullable disable
using System;
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Text.Json;
namespace _Type.Property.Optional.Models
{
public partial class BytesProperty : IJsonModel<BytesProperty>
{
void IJsonModel<BytesProperty>.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
BytesProperty IJsonModel<BytesProperty>.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
protected virtual BytesProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
BinaryData IPersistableModel<BytesProperty>.Write(ModelReaderWriterOptions options) => throw null;
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null;
BytesProperty IPersistableModel<BytesProperty>.Create(BinaryData data, ModelReaderWriterOptions options) => throw null;
protected virtual BytesProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
string IPersistableModel<BytesProperty>.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
public static implicit operator BinaryContent(BytesProperty bytesProperty) => throw null;
public static explicit operator BytesProperty(ClientResult result) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,20 @@
// <auto-generated/>
#nullable disable
using System;
namespace _Type.Property.Optional.Models
{
public partial class BytesProperty
{
public BytesProperty() => throw null;
public BinaryData Property
{
get => throw null;
set => throw null;
}
}
}

Просмотреть файл

@ -0,0 +1,36 @@
// <auto-generated/>
#nullable disable
using System;
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Text.Json;
namespace _Type.Property.Optional.Models
{
public partial class CollectionsByteProperty : IJsonModel<CollectionsByteProperty>
{
void IJsonModel<CollectionsByteProperty>.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
CollectionsByteProperty IJsonModel<CollectionsByteProperty>.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
protected virtual CollectionsByteProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
BinaryData IPersistableModel<CollectionsByteProperty>.Write(ModelReaderWriterOptions options) => throw null;
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null;
CollectionsByteProperty IPersistableModel<CollectionsByteProperty>.Create(BinaryData data, ModelReaderWriterOptions options) => throw null;
protected virtual CollectionsByteProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
string IPersistableModel<CollectionsByteProperty>.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
public static implicit operator BinaryContent(CollectionsByteProperty collectionsByteProperty) => throw null;
public static explicit operator CollectionsByteProperty(ClientResult result) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,16 @@
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
namespace _Type.Property.Optional.Models
{
public partial class CollectionsByteProperty
{
public CollectionsByteProperty() => throw null;
public IList<BinaryData> Property => throw null;
}
}

Просмотреть файл

@ -0,0 +1,36 @@
// <auto-generated/>
#nullable disable
using System;
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Text.Json;
namespace _Type.Property.Optional.Models
{
public partial class CollectionsModelProperty : IJsonModel<CollectionsModelProperty>
{
void IJsonModel<CollectionsModelProperty>.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
CollectionsModelProperty IJsonModel<CollectionsModelProperty>.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
protected virtual CollectionsModelProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
BinaryData IPersistableModel<CollectionsModelProperty>.Write(ModelReaderWriterOptions options) => throw null;
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null;
CollectionsModelProperty IPersistableModel<CollectionsModelProperty>.Create(BinaryData data, ModelReaderWriterOptions options) => throw null;
protected virtual CollectionsModelProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
string IPersistableModel<CollectionsModelProperty>.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
public static implicit operator BinaryContent(CollectionsModelProperty collectionsModelProperty) => throw null;
public static explicit operator CollectionsModelProperty(ClientResult result) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,15 @@
// <auto-generated/>
#nullable disable
using System.Collections.Generic;
namespace _Type.Property.Optional.Models
{
public partial class CollectionsModelProperty
{
public CollectionsModelProperty() => throw null;
public IList<StringProperty> Property => throw null;
}
}

Просмотреть файл

@ -0,0 +1,36 @@
// <auto-generated/>
#nullable disable
using System;
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Text.Json;
namespace _Type.Property.Optional.Models
{
public partial class DatetimeProperty : IJsonModel<DatetimeProperty>
{
void IJsonModel<DatetimeProperty>.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
DatetimeProperty IJsonModel<DatetimeProperty>.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
protected virtual DatetimeProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
BinaryData IPersistableModel<DatetimeProperty>.Write(ModelReaderWriterOptions options) => throw null;
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null;
DatetimeProperty IPersistableModel<DatetimeProperty>.Create(BinaryData data, ModelReaderWriterOptions options) => throw null;
protected virtual DatetimeProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
string IPersistableModel<DatetimeProperty>.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
public static implicit operator BinaryContent(DatetimeProperty datetimeProperty) => throw null;
public static explicit operator DatetimeProperty(ClientResult result) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,20 @@
// <auto-generated/>
#nullable disable
using System;
namespace _Type.Property.Optional.Models
{
public partial class DatetimeProperty
{
public DatetimeProperty() => throw null;
public DateTimeOffset? Property
{
get => throw null;
set => throw null;
}
}
}

Просмотреть файл

@ -0,0 +1,36 @@
// <auto-generated/>
#nullable disable
using System;
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Text.Json;
namespace _Type.Property.Optional.Models
{
public partial class DurationProperty : IJsonModel<DurationProperty>
{
void IJsonModel<DurationProperty>.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
DurationProperty IJsonModel<DurationProperty>.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
protected virtual DurationProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
BinaryData IPersistableModel<DurationProperty>.Write(ModelReaderWriterOptions options) => throw null;
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null;
DurationProperty IPersistableModel<DurationProperty>.Create(BinaryData data, ModelReaderWriterOptions options) => throw null;
protected virtual DurationProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
string IPersistableModel<DurationProperty>.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
public static implicit operator BinaryContent(DurationProperty durationProperty) => throw null;
public static explicit operator DurationProperty(ClientResult result) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,20 @@
// <auto-generated/>
#nullable disable
using System;
namespace _Type.Property.Optional.Models
{
public partial class DurationProperty
{
public DurationProperty() => throw null;
public TimeSpan? Property
{
get => throw null;
set => throw null;
}
}
}

Просмотреть файл

@ -0,0 +1,36 @@
// <auto-generated/>
#nullable disable
using System;
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Text.Json;
namespace _Type.Property.Optional.Models
{
public partial class FloatLiteralProperty : IJsonModel<FloatLiteralProperty>
{
void IJsonModel<FloatLiteralProperty>.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
FloatLiteralProperty IJsonModel<FloatLiteralProperty>.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
protected virtual FloatLiteralProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
BinaryData IPersistableModel<FloatLiteralProperty>.Write(ModelReaderWriterOptions options) => throw null;
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null;
FloatLiteralProperty IPersistableModel<FloatLiteralProperty>.Create(BinaryData data, ModelReaderWriterOptions options) => throw null;
protected virtual FloatLiteralProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
string IPersistableModel<FloatLiteralProperty>.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
public static implicit operator BinaryContent(FloatLiteralProperty floatLiteralProperty) => throw null;
public static explicit operator FloatLiteralProperty(ClientResult result) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,18 @@
// <auto-generated/>
#nullable disable
namespace _Type.Property.Optional.Models
{
public partial class FloatLiteralProperty
{
public FloatLiteralProperty() => throw null;
public FloatLiteralPropertyProperty? Property
{
get => throw null;
set => throw null;
}
}
}

Просмотреть файл

@ -0,0 +1,10 @@
// <auto-generated/>
#nullable disable
namespace _Type.Property.Optional.Models
{
public readonly partial struct FloatLiteralPropertyProperty
{
}
}

Просмотреть файл

@ -0,0 +1,31 @@
// <auto-generated/>
#nullable disable
using System;
using System.ComponentModel;
namespace _Type.Property.Optional.Models
{
public readonly partial struct FloatLiteralPropertyProperty : IEquatable<FloatLiteralPropertyProperty>
{
public FloatLiteralPropertyProperty(float value) => throw null;
public static FloatLiteralPropertyProperty _125 => throw null;
public static bool operator ==(FloatLiteralPropertyProperty left, FloatLiteralPropertyProperty right) => throw null;
public static bool operator !=(FloatLiteralPropertyProperty left, FloatLiteralPropertyProperty right) => throw null;
public static implicit operator FloatLiteralPropertyProperty(float value) => throw null;
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object obj) => throw null;
public bool Equals(FloatLiteralPropertyProperty other) => throw null;
public override int GetHashCode() => throw null;
public override string ToString() => throw null;
}
}

Просмотреть файл

@ -0,0 +1,36 @@
// <auto-generated/>
#nullable disable
using System;
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Text.Json;
namespace _Type.Property.Optional.Models
{
public partial class IntLiteralProperty : IJsonModel<IntLiteralProperty>
{
void IJsonModel<IntLiteralProperty>.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
IntLiteralProperty IJsonModel<IntLiteralProperty>.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
protected virtual IntLiteralProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
BinaryData IPersistableModel<IntLiteralProperty>.Write(ModelReaderWriterOptions options) => throw null;
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null;
IntLiteralProperty IPersistableModel<IntLiteralProperty>.Create(BinaryData data, ModelReaderWriterOptions options) => throw null;
protected virtual IntLiteralProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
string IPersistableModel<IntLiteralProperty>.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
public static implicit operator BinaryContent(IntLiteralProperty intLiteralProperty) => throw null;
public static explicit operator IntLiteralProperty(ClientResult result) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,18 @@
// <auto-generated/>
#nullable disable
namespace _Type.Property.Optional.Models
{
public partial class IntLiteralProperty
{
public IntLiteralProperty() => throw null;
public IntLiteralPropertyProperty? Property
{
get => throw null;
set => throw null;
}
}
}

Просмотреть файл

@ -0,0 +1,10 @@
// <auto-generated/>
#nullable disable
namespace _Type.Property.Optional.Models
{
public readonly partial struct IntLiteralPropertyProperty
{
}
}

Просмотреть файл

@ -0,0 +1,31 @@
// <auto-generated/>
#nullable disable
using System;
using System.ComponentModel;
namespace _Type.Property.Optional.Models
{
public readonly partial struct IntLiteralPropertyProperty : IEquatable<IntLiteralPropertyProperty>
{
public IntLiteralPropertyProperty(int value) => throw null;
public static IntLiteralPropertyProperty _1 => throw null;
public static bool operator ==(IntLiteralPropertyProperty left, IntLiteralPropertyProperty right) => throw null;
public static bool operator !=(IntLiteralPropertyProperty left, IntLiteralPropertyProperty right) => throw null;
public static implicit operator IntLiteralPropertyProperty(int value) => throw null;
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object obj) => throw null;
public bool Equals(IntLiteralPropertyProperty other) => throw null;
public override int GetHashCode() => throw null;
public override string ToString() => throw null;
}
}

Просмотреть файл

@ -0,0 +1,36 @@
// <auto-generated/>
#nullable disable
using System;
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Text.Json;
namespace _Type.Property.Optional.Models
{
public partial class PlainDateProperty : IJsonModel<PlainDateProperty>
{
void IJsonModel<PlainDateProperty>.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
PlainDateProperty IJsonModel<PlainDateProperty>.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
protected virtual PlainDateProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
BinaryData IPersistableModel<PlainDateProperty>.Write(ModelReaderWriterOptions options) => throw null;
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null;
PlainDateProperty IPersistableModel<PlainDateProperty>.Create(BinaryData data, ModelReaderWriterOptions options) => throw null;
protected virtual PlainDateProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
string IPersistableModel<PlainDateProperty>.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
public static implicit operator BinaryContent(PlainDateProperty plainDateProperty) => throw null;
public static explicit operator PlainDateProperty(ClientResult result) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,20 @@
// <auto-generated/>
#nullable disable
using System;
namespace _Type.Property.Optional.Models
{
public partial class PlainDateProperty
{
public PlainDateProperty() => throw null;
public DateTimeOffset? Property
{
get => throw null;
set => throw null;
}
}
}

Просмотреть файл

@ -0,0 +1,36 @@
// <auto-generated/>
#nullable disable
using System;
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Text.Json;
namespace _Type.Property.Optional.Models
{
public partial class PlainTimeProperty : IJsonModel<PlainTimeProperty>
{
void IJsonModel<PlainTimeProperty>.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
PlainTimeProperty IJsonModel<PlainTimeProperty>.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
protected virtual PlainTimeProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
BinaryData IPersistableModel<PlainTimeProperty>.Write(ModelReaderWriterOptions options) => throw null;
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null;
PlainTimeProperty IPersistableModel<PlainTimeProperty>.Create(BinaryData data, ModelReaderWriterOptions options) => throw null;
protected virtual PlainTimeProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
string IPersistableModel<PlainTimeProperty>.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
public static implicit operator BinaryContent(PlainTimeProperty plainTimeProperty) => throw null;
public static explicit operator PlainTimeProperty(ClientResult result) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,20 @@
// <auto-generated/>
#nullable disable
using System;
namespace _Type.Property.Optional.Models
{
public partial class PlainTimeProperty
{
public PlainTimeProperty() => throw null;
public TimeSpan? Property
{
get => throw null;
set => throw null;
}
}
}

Просмотреть файл

@ -0,0 +1,36 @@
// <auto-generated/>
#nullable disable
using System;
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Text.Json;
namespace _Type.Property.Optional.Models
{
public partial class RequiredAndOptionalProperty : IJsonModel<RequiredAndOptionalProperty>
{
void IJsonModel<RequiredAndOptionalProperty>.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
RequiredAndOptionalProperty IJsonModel<RequiredAndOptionalProperty>.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
protected virtual RequiredAndOptionalProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
BinaryData IPersistableModel<RequiredAndOptionalProperty>.Write(ModelReaderWriterOptions options) => throw null;
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null;
RequiredAndOptionalProperty IPersistableModel<RequiredAndOptionalProperty>.Create(BinaryData data, ModelReaderWriterOptions options) => throw null;
protected virtual RequiredAndOptionalProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
string IPersistableModel<RequiredAndOptionalProperty>.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
public static implicit operator BinaryContent(RequiredAndOptionalProperty requiredAndOptionalProperty) => throw null;
public static explicit operator RequiredAndOptionalProperty(ClientResult result) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,25 @@
// <auto-generated/>
#nullable disable
namespace _Type.Property.Optional.Models
{
public partial class RequiredAndOptionalProperty
{
public RequiredAndOptionalProperty(int requiredProperty) => throw null;
public string OptionalProperty
{
get => throw null;
set => throw null;
}
public int RequiredProperty
{
get => throw null;
set => throw null;
}
}
}

Просмотреть файл

@ -0,0 +1,36 @@
// <auto-generated/>
#nullable disable
using System;
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Text.Json;
namespace _Type.Property.Optional.Models
{
public partial class StringLiteralProperty : IJsonModel<StringLiteralProperty>
{
void IJsonModel<StringLiteralProperty>.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
StringLiteralProperty IJsonModel<StringLiteralProperty>.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
protected virtual StringLiteralProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
BinaryData IPersistableModel<StringLiteralProperty>.Write(ModelReaderWriterOptions options) => throw null;
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null;
StringLiteralProperty IPersistableModel<StringLiteralProperty>.Create(BinaryData data, ModelReaderWriterOptions options) => throw null;
protected virtual StringLiteralProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
string IPersistableModel<StringLiteralProperty>.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
public static implicit operator BinaryContent(StringLiteralProperty stringLiteralProperty) => throw null;
public static explicit operator StringLiteralProperty(ClientResult result) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,18 @@
// <auto-generated/>
#nullable disable
namespace _Type.Property.Optional.Models
{
public partial class StringLiteralProperty
{
public StringLiteralProperty() => throw null;
public StringLiteralPropertyProperty? Property
{
get => throw null;
set => throw null;
}
}
}

Просмотреть файл

@ -0,0 +1,31 @@
// <auto-generated/>
#nullable disable
using System;
using System.ComponentModel;
namespace _Type.Property.Optional.Models
{
public readonly partial struct StringLiteralPropertyProperty : IEquatable<StringLiteralPropertyProperty>
{
public StringLiteralPropertyProperty(string value) => throw null;
public static StringLiteralPropertyProperty Hello => throw null;
public static bool operator ==(StringLiteralPropertyProperty left, StringLiteralPropertyProperty right) => throw null;
public static bool operator !=(StringLiteralPropertyProperty left, StringLiteralPropertyProperty right) => throw null;
public static implicit operator StringLiteralPropertyProperty(string value) => throw null;
[EditorBrowsable(EditorBrowsableState.Never)]
public override bool Equals(object obj) => throw null;
public bool Equals(StringLiteralPropertyProperty other) => throw null;
public override int GetHashCode() => throw null;
public override string ToString() => throw null;
}
}

Просмотреть файл

@ -0,0 +1,36 @@
// <auto-generated/>
#nullable disable
using System;
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Text.Json;
namespace _Type.Property.Optional.Models
{
public partial class StringProperty : IJsonModel<StringProperty>
{
void IJsonModel<StringProperty>.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
StringProperty IJsonModel<StringProperty>.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
protected virtual StringProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
BinaryData IPersistableModel<StringProperty>.Write(ModelReaderWriterOptions options) => throw null;
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null;
StringProperty IPersistableModel<StringProperty>.Create(BinaryData data, ModelReaderWriterOptions options) => throw null;
protected virtual StringProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
string IPersistableModel<StringProperty>.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
public static implicit operator BinaryContent(StringProperty stringProperty) => throw null;
public static explicit operator StringProperty(ClientResult result) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,18 @@
// <auto-generated/>
#nullable disable
namespace _Type.Property.Optional.Models
{
public partial class StringProperty
{
public StringProperty() => throw null;
public string Property
{
get => throw null;
set => throw null;
}
}
}

Просмотреть файл

@ -0,0 +1,36 @@
// <auto-generated/>
#nullable disable
using System;
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Text.Json;
namespace _Type.Property.Optional.Models
{
public partial class UnionFloatLiteralProperty : IJsonModel<UnionFloatLiteralProperty>
{
void IJsonModel<UnionFloatLiteralProperty>.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
UnionFloatLiteralProperty IJsonModel<UnionFloatLiteralProperty>.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
protected virtual UnionFloatLiteralProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
BinaryData IPersistableModel<UnionFloatLiteralProperty>.Write(ModelReaderWriterOptions options) => throw null;
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null;
UnionFloatLiteralProperty IPersistableModel<UnionFloatLiteralProperty>.Create(BinaryData data, ModelReaderWriterOptions options) => throw null;
protected virtual UnionFloatLiteralProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
string IPersistableModel<UnionFloatLiteralProperty>.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
public static implicit operator BinaryContent(UnionFloatLiteralProperty unionFloatLiteralProperty) => throw null;
public static explicit operator UnionFloatLiteralProperty(ClientResult result) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,18 @@
// <auto-generated/>
#nullable disable
namespace _Type.Property.Optional.Models
{
public partial class UnionFloatLiteralProperty
{
public UnionFloatLiteralProperty() => throw null;
public UnionFloatLiteralPropertyProperty? Property
{
get => throw null;
set => throw null;
}
}
}

Просмотреть файл

@ -0,0 +1,14 @@
// <auto-generated/>
#nullable disable
namespace _Type.Property.Optional.Models
{
public enum UnionFloatLiteralPropertyProperty
{
/// <summary> _125. </summary>
_125,
/// <summary> _2375. </summary>
_2375
}
}

Просмотреть файл

@ -0,0 +1,36 @@
// <auto-generated/>
#nullable disable
using System;
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Text.Json;
namespace _Type.Property.Optional.Models
{
public partial class UnionIntLiteralProperty : IJsonModel<UnionIntLiteralProperty>
{
void IJsonModel<UnionIntLiteralProperty>.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
UnionIntLiteralProperty IJsonModel<UnionIntLiteralProperty>.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
protected virtual UnionIntLiteralProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
BinaryData IPersistableModel<UnionIntLiteralProperty>.Write(ModelReaderWriterOptions options) => throw null;
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null;
UnionIntLiteralProperty IPersistableModel<UnionIntLiteralProperty>.Create(BinaryData data, ModelReaderWriterOptions options) => throw null;
protected virtual UnionIntLiteralProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
string IPersistableModel<UnionIntLiteralProperty>.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
public static implicit operator BinaryContent(UnionIntLiteralProperty unionIntLiteralProperty) => throw null;
public static explicit operator UnionIntLiteralProperty(ClientResult result) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,18 @@
// <auto-generated/>
#nullable disable
namespace _Type.Property.Optional.Models
{
public partial class UnionIntLiteralProperty
{
public UnionIntLiteralProperty() => throw null;
public UnionIntLiteralPropertyProperty? Property
{
get => throw null;
set => throw null;
}
}
}

Просмотреть файл

@ -0,0 +1,14 @@
// <auto-generated/>
#nullable disable
namespace _Type.Property.Optional.Models
{
public enum UnionIntLiteralPropertyProperty
{
/// <summary> _1. </summary>
_1 = 1,
/// <summary> _2. </summary>
_2 = 2
}
}

Просмотреть файл

@ -0,0 +1,36 @@
// <auto-generated/>
#nullable disable
using System;
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Text.Json;
namespace _Type.Property.Optional.Models
{
public partial class UnionStringLiteralProperty : IJsonModel<UnionStringLiteralProperty>
{
void IJsonModel<UnionStringLiteralProperty>.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
UnionStringLiteralProperty IJsonModel<UnionStringLiteralProperty>.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
protected virtual UnionStringLiteralProperty JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
BinaryData IPersistableModel<UnionStringLiteralProperty>.Write(ModelReaderWriterOptions options) => throw null;
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null;
UnionStringLiteralProperty IPersistableModel<UnionStringLiteralProperty>.Create(BinaryData data, ModelReaderWriterOptions options) => throw null;
protected virtual UnionStringLiteralProperty PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
string IPersistableModel<UnionStringLiteralProperty>.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
public static implicit operator BinaryContent(UnionStringLiteralProperty unionStringLiteralProperty) => throw null;
public static explicit operator UnionStringLiteralProperty(ClientResult result) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,18 @@
// <auto-generated/>
#nullable disable
namespace _Type.Property.Optional.Models
{
public partial class UnionStringLiteralProperty
{
public UnionStringLiteralProperty() => throw null;
public UnionStringLiteralPropertyProperty? Property
{
get => throw null;
set => throw null;
}
}
}

Просмотреть файл

@ -0,0 +1,14 @@
// <auto-generated/>
#nullable disable
namespace _Type.Property.Optional.Models
{
public enum UnionStringLiteralPropertyProperty
{
/// <summary> Hello. </summary>
Hello,
/// <summary> World. </summary>
World
}
}

Просмотреть файл

@ -0,0 +1,50 @@
// <auto-generated/>
#nullable disable
using System;
using System.ClientModel.Primitives;
namespace _Type.Property.Optional
{
public partial class OptionalClient
{
public OptionalClient() : this(new Uri("http://localhost:3000"), new OptionalClientOptions()) => throw null;
public OptionalClient(Uri endpoint, OptionalClientOptions options) => throw null;
public ClientPipeline Pipeline => throw null;
public virtual String GetStringClient() => throw null;
public virtual Bytes GetBytesClient() => throw null;
public virtual Datetime GetDatetimeClient() => throw null;
public virtual Duration GetDurationClient() => throw null;
public virtual PlainDate GetPlainDateClient() => throw null;
public virtual PlainTime GetPlainTimeClient() => throw null;
public virtual CollectionsByte GetCollectionsByteClient() => throw null;
public virtual CollectionsModel GetCollectionsModelClient() => throw null;
public virtual StringLiteral GetStringLiteralClient() => throw null;
public virtual IntLiteral GetIntLiteralClient() => throw null;
public virtual FloatLiteral GetFloatLiteralClient() => throw null;
public virtual BooleanLiteral GetBooleanLiteralClient() => throw null;
public virtual UnionStringLiteral GetUnionStringLiteralClient() => throw null;
public virtual UnionIntLiteral GetUnionIntLiteralClient() => throw null;
public virtual UnionFloatLiteral GetUnionFloatLiteralClient() => throw null;
public virtual RequiredAndOptional GetRequiredAndOptionalClient() => throw null;
}
}

Просмотреть файл

@ -0,0 +1,12 @@
// <auto-generated/>
#nullable disable
using System.ClientModel.Primitives;
namespace _Type.Property.Optional
{
public partial class OptionalClientOptions : ClientPipelineOptions
{
}
}

Просмотреть файл

@ -0,0 +1,50 @@
// <auto-generated/>
#nullable disable
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Threading.Tasks;
using _Type.Property.Optional.Models;
namespace _Type.Property.Optional
{
public partial class PlainDate
{
protected PlainDate() => throw null;
public ClientPipeline Pipeline => throw null;
public virtual ClientResult GetAll(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetAllAsync(RequestOptions options) => throw null;
public virtual ClientResult<PlainDateProperty> GetAll() => throw null;
public virtual Task<ClientResult<PlainDateProperty>> GetAllAsync() => throw null;
public virtual ClientResult GetDefault(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetDefaultAsync(RequestOptions options) => throw null;
public virtual ClientResult<PlainDateProperty> GetDefault() => throw null;
public virtual Task<ClientResult<PlainDateProperty>> GetDefaultAsync() => throw null;
public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutAllAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutAll(PlainDateProperty body) => throw null;
public virtual Task<ClientResult> PutAllAsync(PlainDateProperty body) => throw null;
public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutDefault(PlainDateProperty body) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(PlainDateProperty body) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,50 @@
// <auto-generated/>
#nullable disable
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Threading.Tasks;
using _Type.Property.Optional.Models;
namespace _Type.Property.Optional
{
public partial class PlainTime
{
protected PlainTime() => throw null;
public ClientPipeline Pipeline => throw null;
public virtual ClientResult GetAll(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetAllAsync(RequestOptions options) => throw null;
public virtual ClientResult<PlainTimeProperty> GetAll() => throw null;
public virtual Task<ClientResult<PlainTimeProperty>> GetAllAsync() => throw null;
public virtual ClientResult GetDefault(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetDefaultAsync(RequestOptions options) => throw null;
public virtual ClientResult<PlainTimeProperty> GetDefault() => throw null;
public virtual Task<ClientResult<PlainTimeProperty>> GetDefaultAsync() => throw null;
public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutAllAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutAll(PlainTimeProperty body) => throw null;
public virtual Task<ClientResult> PutAllAsync(PlainTimeProperty body) => throw null;
public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutDefault(PlainTimeProperty body) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(PlainTimeProperty body) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,50 @@
// <auto-generated/>
#nullable disable
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Threading.Tasks;
using _Type.Property.Optional.Models;
namespace _Type.Property.Optional
{
public partial class RequiredAndOptional
{
protected RequiredAndOptional() => throw null;
public ClientPipeline Pipeline => throw null;
public virtual ClientResult GetAll(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetAllAsync(RequestOptions options) => throw null;
public virtual ClientResult<RequiredAndOptionalProperty> GetAll() => throw null;
public virtual Task<ClientResult<RequiredAndOptionalProperty>> GetAllAsync() => throw null;
public virtual ClientResult GetRequiredOnly(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetRequiredOnlyAsync(RequestOptions options) => throw null;
public virtual ClientResult<RequiredAndOptionalProperty> GetRequiredOnly() => throw null;
public virtual Task<ClientResult<RequiredAndOptionalProperty>> GetRequiredOnlyAsync() => throw null;
public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutAllAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutAll(RequiredAndOptionalProperty body) => throw null;
public virtual Task<ClientResult> PutAllAsync(RequiredAndOptionalProperty body) => throw null;
public virtual ClientResult PutRequiredOnly(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutRequiredOnlyAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutRequiredOnly(RequiredAndOptionalProperty body) => throw null;
public virtual Task<ClientResult> PutRequiredOnlyAsync(RequiredAndOptionalProperty body) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,50 @@
// <auto-generated/>
#nullable disable
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Threading.Tasks;
using _Type.Property.Optional.Models;
namespace _Type.Property.Optional
{
public partial class String
{
protected String() => throw null;
public ClientPipeline Pipeline => throw null;
public virtual ClientResult GetAll(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetAllAsync(RequestOptions options) => throw null;
public virtual ClientResult<StringProperty> GetAll() => throw null;
public virtual Task<ClientResult<StringProperty>> GetAllAsync() => throw null;
public virtual ClientResult GetDefault(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetDefaultAsync(RequestOptions options) => throw null;
public virtual ClientResult<StringProperty> GetDefault() => throw null;
public virtual Task<ClientResult<StringProperty>> GetDefaultAsync() => throw null;
public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutAllAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutAll(StringProperty body) => throw null;
public virtual Task<ClientResult> PutAllAsync(StringProperty body) => throw null;
public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutDefault(StringProperty body) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(StringProperty body) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,50 @@
// <auto-generated/>
#nullable disable
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Threading.Tasks;
using _Type.Property.Optional.Models;
namespace _Type.Property.Optional
{
public partial class StringLiteral
{
protected StringLiteral() => throw null;
public ClientPipeline Pipeline => throw null;
public virtual ClientResult GetAll(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetAllAsync(RequestOptions options) => throw null;
public virtual ClientResult<StringLiteralProperty> GetAll() => throw null;
public virtual Task<ClientResult<StringLiteralProperty>> GetAllAsync() => throw null;
public virtual ClientResult GetDefault(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetDefaultAsync(RequestOptions options) => throw null;
public virtual ClientResult<StringLiteralProperty> GetDefault() => throw null;
public virtual Task<ClientResult<StringLiteralProperty>> GetDefaultAsync() => throw null;
public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutAllAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutAll(StringLiteralProperty body) => throw null;
public virtual Task<ClientResult> PutAllAsync(StringLiteralProperty body) => throw null;
public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutDefault(StringLiteralProperty body) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(StringLiteralProperty body) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,44 @@
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
namespace _Type.Property.Optional.Models
{
public static partial class TypePropertyOptionalModelFactory
{
public static RequiredAndOptionalProperty RequiredAndOptionalProperty(string optionalProperty = default, int requiredProperty = default) => throw null;
public static UnionFloatLiteralProperty UnionFloatLiteralProperty(UnionFloatLiteralPropertyProperty? @property = default) => throw null;
public static UnionIntLiteralProperty UnionIntLiteralProperty(UnionIntLiteralPropertyProperty? @property = default) => throw null;
public static UnionStringLiteralProperty UnionStringLiteralProperty(UnionStringLiteralPropertyProperty? @property = default) => throw null;
public static BooleanLiteralProperty BooleanLiteralProperty(bool? @property = default) => throw null;
public static FloatLiteralProperty FloatLiteralProperty(FloatLiteralPropertyProperty? @property = default) => throw null;
public static IntLiteralProperty IntLiteralProperty(IntLiteralPropertyProperty? @property = default) => throw null;
public static StringLiteralProperty StringLiteralProperty(StringLiteralPropertyProperty? @property = default) => throw null;
public static CollectionsModelProperty CollectionsModelProperty(IEnumerable<StringProperty> @property = default) => throw null;
public static StringProperty StringProperty(string @property = default) => throw null;
public static CollectionsByteProperty CollectionsByteProperty(IEnumerable<BinaryData> @property = default) => throw null;
public static PlainTimeProperty PlainTimeProperty(TimeSpan? @property = default) => throw null;
public static PlainDateProperty PlainDateProperty(DateTimeOffset? @property = default) => throw null;
public static DurationProperty DurationProperty(TimeSpan? @property = default) => throw null;
public static DatetimeProperty DatetimeProperty(DateTimeOffset? @property = default) => throw null;
public static BytesProperty BytesProperty(BinaryData @property = default) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,50 @@
// <auto-generated/>
#nullable disable
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Threading.Tasks;
using _Type.Property.Optional.Models;
namespace _Type.Property.Optional
{
public partial class UnionFloatLiteral
{
protected UnionFloatLiteral() => throw null;
public ClientPipeline Pipeline => throw null;
public virtual ClientResult GetAll(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetAllAsync(RequestOptions options) => throw null;
public virtual ClientResult<UnionFloatLiteralProperty> GetAll() => throw null;
public virtual Task<ClientResult<UnionFloatLiteralProperty>> GetAllAsync() => throw null;
public virtual ClientResult GetDefault(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetDefaultAsync(RequestOptions options) => throw null;
public virtual ClientResult<UnionFloatLiteralProperty> GetDefault() => throw null;
public virtual Task<ClientResult<UnionFloatLiteralProperty>> GetDefaultAsync() => throw null;
public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutAllAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutAll(UnionFloatLiteralProperty body) => throw null;
public virtual Task<ClientResult> PutAllAsync(UnionFloatLiteralProperty body) => throw null;
public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutDefault(UnionFloatLiteralProperty body) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(UnionFloatLiteralProperty body) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,50 @@
// <auto-generated/>
#nullable disable
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Threading.Tasks;
using _Type.Property.Optional.Models;
namespace _Type.Property.Optional
{
public partial class UnionIntLiteral
{
protected UnionIntLiteral() => throw null;
public ClientPipeline Pipeline => throw null;
public virtual ClientResult GetAll(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetAllAsync(RequestOptions options) => throw null;
public virtual ClientResult<UnionIntLiteralProperty> GetAll() => throw null;
public virtual Task<ClientResult<UnionIntLiteralProperty>> GetAllAsync() => throw null;
public virtual ClientResult GetDefault(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetDefaultAsync(RequestOptions options) => throw null;
public virtual ClientResult<UnionIntLiteralProperty> GetDefault() => throw null;
public virtual Task<ClientResult<UnionIntLiteralProperty>> GetDefaultAsync() => throw null;
public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutAllAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutAll(UnionIntLiteralProperty body) => throw null;
public virtual Task<ClientResult> PutAllAsync(UnionIntLiteralProperty body) => throw null;
public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutDefault(UnionIntLiteralProperty body) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(UnionIntLiteralProperty body) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,50 @@
// <auto-generated/>
#nullable disable
using System.ClientModel;
using System.ClientModel.Primitives;
using System.Threading.Tasks;
using _Type.Property.Optional.Models;
namespace _Type.Property.Optional
{
public partial class UnionStringLiteral
{
protected UnionStringLiteral() => throw null;
public ClientPipeline Pipeline => throw null;
public virtual ClientResult GetAll(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetAllAsync(RequestOptions options) => throw null;
public virtual ClientResult<UnionStringLiteralProperty> GetAll() => throw null;
public virtual Task<ClientResult<UnionStringLiteralProperty>> GetAllAsync() => throw null;
public virtual ClientResult GetDefault(RequestOptions options) => throw null;
public virtual Task<ClientResult> GetDefaultAsync(RequestOptions options) => throw null;
public virtual ClientResult<UnionStringLiteralProperty> GetDefault() => throw null;
public virtual Task<ClientResult<UnionStringLiteralProperty>> GetDefaultAsync() => throw null;
public virtual ClientResult PutAll(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutAllAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutAll(UnionStringLiteralProperty body) => throw null;
public virtual Task<ClientResult> PutAllAsync(UnionStringLiteralProperty body) => throw null;
public virtual ClientResult PutDefault(BinaryContent content, RequestOptions options) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(BinaryContent content, RequestOptions options) => throw null;
public virtual ClientResult PutDefault(UnionStringLiteralProperty body) => throw null;
public virtual Task<ClientResult> PutDefaultAsync(UnionStringLiteralProperty body) => throw null;
}
}

Просмотреть файл

@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>This is the _Type.Property.Optional client library for developing .NET applications with rich experience.</Description>
<AssemblyTitle>SDK Code Generation _Type.Property.Optional</AssemblyTitle>
<Version>1.0.0-beta.1</Version>
<PackageTags>_Type.Property.Optional</PackageTags>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>latest</LangVersion>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.ClientModel" Version="1.1.0-beta.4" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />
</ItemGroup>
</Project>

Разница между файлами не показана из-за своего большого размера Загрузить разницу