Skip to content

Commit fbbfaf5

Browse files
committed
geenrate script
1 parent 6606677 commit fbbfaf5

29 files changed

+82
-2329
lines changed

packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/ArrayClient.RestClient.cs

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/ArrayClient.cs

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,18 @@
44

55
using System;
66
using System.ClientModel.Primitives;
7-
using System.Threading;
87
using Encode._Array._Property;
98

109
namespace Encode._Array
1110
{
12-
/// <summary> Test for encode decorator on array. </summary>
1311
public partial class ArrayClient
1412
{
15-
private readonly Uri _endpoint;
16-
private Property _cachedProperty;
13+
public ArrayClient() : this(new Uri("http://localhost:3000"), new ArrayClientOptions()) => throw null;
1714

18-
/// <summary> Initializes a new instance of ArrayClient. </summary>
19-
public ArrayClient() : this(new Uri("http://localhost:3000"), new ArrayClientOptions())
20-
{
21-
}
15+
public ArrayClient(Uri endpoint, ArrayClientOptions options) => throw null;
2216

23-
/// <summary> Initializes a new instance of ArrayClient. </summary>
24-
/// <param name="endpoint"> Service endpoint. </param>
25-
/// <param name="options"> The options for configuring the client. </param>
26-
/// <exception cref="ArgumentNullException"> <paramref name="endpoint"/> is null. </exception>
27-
public ArrayClient(Uri endpoint, ArrayClientOptions options)
28-
{
29-
Argument.AssertNotNull(endpoint, nameof(endpoint));
17+
public ClientPipeline Pipeline => throw null;
3018

31-
options ??= new ArrayClientOptions();
32-
33-
_endpoint = endpoint;
34-
Pipeline = ClientPipeline.Create(options, Array.Empty<PipelinePolicy>(), new PipelinePolicy[] { new UserAgentPolicy(typeof(ArrayClient).Assembly) }, Array.Empty<PipelinePolicy>());
35-
}
36-
37-
/// <summary> The HTTP pipeline for sending and receiving REST requests and responses. </summary>
38-
public ClientPipeline Pipeline { get; }
39-
40-
/// <summary> Initializes a new instance of Property. </summary>
41-
public virtual Property GetPropertyClient()
42-
{
43-
return Volatile.Read(ref _cachedProperty) ?? Interlocked.CompareExchange(ref _cachedProperty, new Property(Pipeline, _endpoint), null) ?? _cachedProperty;
44-
}
19+
public virtual Property GetPropertyClient() => throw null;
4520
}
4621
}

packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/ArrayClientOptions.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
namespace Encode._Array
88
{
9-
/// <summary> Client options for <see cref="ArrayClient"/>. </summary>
109
public partial class ArrayClientOptions : ClientPipelineOptions
1110
{
1211
}

packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/EncodeArrayModelFactory.cs

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,51 +3,17 @@
33
#nullable disable
44

55
using System.Collections.Generic;
6-
using System.Linq;
76

87
namespace Encode._Array
98
{
10-
/// <summary> A factory class for creating instances of the models for mocking. </summary>
119
public static partial class EncodeArrayModelFactory
1210
{
13-
/// <summary> The CommaDelimitedArrayProperty. </summary>
14-
/// <param name="value"></param>
15-
/// <returns> A new <see cref="_Array.CommaDelimitedArrayProperty"/> instance for mocking. </returns>
16-
public static CommaDelimitedArrayProperty CommaDelimitedArrayProperty(IEnumerable<string> value = default)
17-
{
18-
value ??= new ChangeTrackingList<string>();
11+
public static CommaDelimitedArrayProperty CommaDelimitedArrayProperty(IEnumerable<string> value = default) => throw null;
1912

20-
return new CommaDelimitedArrayProperty(value.ToList(), additionalBinaryDataProperties: null);
21-
}
13+
public static SpaceDelimitedArrayProperty SpaceDelimitedArrayProperty(IEnumerable<string> value = default) => throw null;
2214

23-
/// <summary> The SpaceDelimitedArrayProperty. </summary>
24-
/// <param name="value"></param>
25-
/// <returns> A new <see cref="_Array.SpaceDelimitedArrayProperty"/> instance for mocking. </returns>
26-
public static SpaceDelimitedArrayProperty SpaceDelimitedArrayProperty(IEnumerable<string> value = default)
27-
{
28-
value ??= new ChangeTrackingList<string>();
15+
public static PipeDelimitedArrayProperty PipeDelimitedArrayProperty(IEnumerable<string> value = default) => throw null;
2916

30-
return new SpaceDelimitedArrayProperty(value.ToList(), additionalBinaryDataProperties: null);
31-
}
32-
33-
/// <summary> The PipeDelimitedArrayProperty. </summary>
34-
/// <param name="value"></param>
35-
/// <returns> A new <see cref="_Array.PipeDelimitedArrayProperty"/> instance for mocking. </returns>
36-
public static PipeDelimitedArrayProperty PipeDelimitedArrayProperty(IEnumerable<string> value = default)
37-
{
38-
value ??= new ChangeTrackingList<string>();
39-
40-
return new PipeDelimitedArrayProperty(value.ToList(), additionalBinaryDataProperties: null);
41-
}
42-
43-
/// <summary> The NewlineDelimitedArrayProperty. </summary>
44-
/// <param name="value"></param>
45-
/// <returns> A new <see cref="_Array.NewlineDelimitedArrayProperty"/> instance for mocking. </returns>
46-
public static NewlineDelimitedArrayProperty NewlineDelimitedArrayProperty(IEnumerable<string> value = default)
47-
{
48-
value ??= new ChangeTrackingList<string>();
49-
50-
return new NewlineDelimitedArrayProperty(value.ToList(), additionalBinaryDataProperties: null);
51-
}
17+
public static NewlineDelimitedArrayProperty NewlineDelimitedArrayProperty(IEnumerable<string> value = default) => throw null;
5218
}
5319
}

packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Internal/Argument.cs

Lines changed: 0 additions & 71 deletions
This file was deleted.

packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Internal/CancellationTokenExtensions.cs

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/http-client-csharp/generator/TestProjects/Spector/http/encode/array/src/Generated/Internal/ChangeTrackingDictionary.cs

Lines changed: 0 additions & 186 deletions
This file was deleted.

0 commit comments

Comments
 (0)