Skip to content

Commit 0cf1e82

Browse files
committed
C#: Re-generate stubs.
1 parent 8cd7778 commit 0cf1e82

File tree

449 files changed

+7662
-2117
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

449 files changed

+7662
-2117
lines changed

csharp/ql/test/resources/stubs/Amazon.Lambda.APIGatewayEvents/2.7.1/Amazon.Lambda.APIGatewayEvents.cs renamed to csharp/ql/test/resources/stubs/Amazon.Lambda.APIGatewayEvents/2.7.3/Amazon.Lambda.APIGatewayEvents.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public class IAMPolicyStatement
3131
public System.Collections.Generic.IDictionary<string, System.Collections.Generic.IDictionary<string, object>> Condition { get => throw null; set { } }
3232
public IAMPolicyStatement() => throw null;
3333
public string Effect { get => throw null; set { } }
34+
public System.Collections.Generic.HashSet<string> NotResource { get => throw null; set { } }
3435
public System.Collections.Generic.HashSet<string> Resource { get => throw null; set { } }
3536
}
3637
public System.Collections.Generic.List<Amazon.Lambda.APIGatewayEvents.APIGatewayCustomAuthorizerPolicy.IAMPolicyStatement> Statement { get => throw null; set { } }

csharp/ql/test/resources/stubs/Amazon.Lambda.APIGatewayEvents/2.7.1/Amazon.Lambda.APIGatewayEvents.csproj renamed to csharp/ql/test/resources/stubs/Amazon.Lambda.APIGatewayEvents/2.7.3/Amazon.Lambda.APIGatewayEvents.csproj

File renamed without changes.

csharp/ql/test/resources/stubs/Amazon.Lambda.Core/2.5.0/Amazon.Lambda.Core.cs renamed to csharp/ql/test/resources/stubs/Amazon.Lambda.Core/2.8.0/Amazon.Lambda.Core.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ public interface ILambdaContext
3838
string LogStreamName { get; }
3939
int MemoryLimitInMB { get; }
4040
System.TimeSpan RemainingTime { get; }
41+
virtual string TenantId { get => throw null; }
42+
virtual string TraceId { get => throw null; }
4143
}
4244
public interface ILambdaLogger
4345
{
@@ -76,13 +78,22 @@ public interface ILambdaSerializer
7678
public static class LambdaLogger
7779
{
7880
public static void Log(string message) => throw null;
81+
public static void Log(string level, string message, params object[] args) => throw null;
82+
public static void Log(Amazon.Lambda.Core.LogLevel level, string message, params object[] args) => throw null;
83+
public static void Log(string level, System.Exception exception, string message, params object[] args) => throw null;
84+
public static void Log(Amazon.Lambda.Core.LogLevel level, System.Exception exception, string message, params object[] args) => throw null;
7985
}
8086
[System.AttributeUsage((System.AttributeTargets)65, AllowMultiple = false)]
8187
public sealed class LambdaSerializerAttribute : System.Attribute
8288
{
8389
public LambdaSerializerAttribute(System.Type serializerType) => throw null;
8490
public System.Type SerializerType { get => throw null; set { } }
8591
}
92+
public class LambdaTraceProvider
93+
{
94+
public LambdaTraceProvider() => throw null;
95+
public static string CurrentTraceId { get => throw null; }
96+
}
8697
public enum LogLevel
8798
{
8899
Trace = 0,

csharp/ql/test/resources/stubs/Amazon.Lambda.Core/2.5.0/Amazon.Lambda.Core.csproj renamed to csharp/ql/test/resources/stubs/Amazon.Lambda.Core/2.8.0/Amazon.Lambda.Core.csproj

File renamed without changes.

csharp/ql/test/resources/stubs/Antlr3.Runtime/3.5.1/Antlr3.Runtime.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<ProjectReference Include="../../NETStandard.Library/1.6.1/NETStandard.Library.csproj" />
10+
<ProjectReference Include="../../NETStandard.Library/1.6.0/NETStandard.Library.csproj" />
1111
<ProjectReference Include="../../_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj" />
1212
</ItemGroup>
1313
</Project>

csharp/ql/test/resources/stubs/Azure.Core/1.38.0/Azure.Core.csproj

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

csharp/ql/test/resources/stubs/Azure.Core/1.38.0/Azure.Core.cs renamed to csharp/ql/test/resources/stubs/Azure.Core/1.47.1/Azure.Core.cs

Lines changed: 44 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file contains auto-generated code.
2-
// Generated from `Azure.Core, Version=1.38.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8`.
2+
// Generated from `Azure.Core, Version=1.47.1.0, Culture=neutral, PublicKeyToken=92742159e12e44c8`.
33
namespace Azure
44
{
55
public abstract class AsyncPageable<T> : System.Collections.Generic.IAsyncEnumerable<T>
@@ -22,11 +22,10 @@ public static partial class AzureCoreExtensions
2222
public static System.Threading.Tasks.ValueTask<T> ToObjectAsync<T>(this System.BinaryData data, Azure.Core.Serialization.ObjectSerializer serializer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) => throw null;
2323
public static object ToObjectFromJson(this System.BinaryData data) => throw null;
2424
}
25-
public class AzureKeyCredential
25+
public class AzureKeyCredential : System.ClientModel.ApiKeyCredential
2626
{
27-
public AzureKeyCredential(string key) => throw null;
27+
public AzureKeyCredential(string key) : base(default(string)) => throw null;
2828
public string Key { get => throw null; }
29-
public void Update(string key) => throw null;
3029
}
3130
public class AzureNamedKeyCredential
3231
{
@@ -46,10 +45,19 @@ namespace Core
4645
public struct AccessToken
4746
{
4847
public AccessToken(string accessToken, System.DateTimeOffset expiresOn) => throw null;
48+
public AccessToken(string accessToken, System.DateTimeOffset expiresOn, System.DateTimeOffset? refreshOn) => throw null;
49+
public AccessToken(string accessToken, System.DateTimeOffset expiresOn, System.DateTimeOffset? refreshOn, string tokenType) => throw null;
4950
public override bool Equals(object obj) => throw null;
5051
public System.DateTimeOffset ExpiresOn { get => throw null; }
5152
public override int GetHashCode() => throw null;
53+
public System.DateTimeOffset? RefreshOn { get => throw null; }
5254
public string Token { get => throw null; }
55+
public string TokenType { get => throw null; }
56+
}
57+
public class AzureCoreContext : System.ClientModel.Primitives.ModelReaderWriterContext
58+
{
59+
public static Azure.Core.AzureCoreContext Default { get => throw null; }
60+
protected override bool TryGetTypeBuilderCore(System.Type type, out System.ClientModel.Primitives.ModelReaderWriterTypeBuilder builder) => throw null;
5361
}
5462
public struct AzureLocation : System.IEquatable<Azure.Core.AzureLocation>
5563
{
@@ -90,6 +98,7 @@ public struct AzureLocation : System.IEquatable<Azure.Core.AzureLocation>
9098
public static Azure.Core.AzureLocation JapanWest { get => throw null; }
9199
public static Azure.Core.AzureLocation KoreaCentral { get => throw null; }
92100
public static Azure.Core.AzureLocation KoreaSouth { get => throw null; }
101+
public static Azure.Core.AzureLocation MexicoCentral { get => throw null; }
93102
public string Name { get => throw null; }
94103
public static Azure.Core.AzureLocation NorthCentralUS { get => throw null; }
95104
public static Azure.Core.AzureLocation NorthEurope { get => throw null; }
@@ -106,6 +115,7 @@ public struct AzureLocation : System.IEquatable<Azure.Core.AzureLocation>
106115
public static Azure.Core.AzureLocation SouthCentralUS { get => throw null; }
107116
public static Azure.Core.AzureLocation SoutheastAsia { get => throw null; }
108117
public static Azure.Core.AzureLocation SouthIndia { get => throw null; }
118+
public static Azure.Core.AzureLocation SpainCentral { get => throw null; }
109119
public static Azure.Core.AzureLocation SwedenCentral { get => throw null; }
110120
public static Azure.Core.AzureLocation SwedenSouth { get => throw null; }
111121
public static Azure.Core.AzureLocation SwitzerlandNorth { get => throw null; }
@@ -194,6 +204,7 @@ public class AzureEventSourceListener : System.Diagnostics.Tracing.EventListener
194204
{
195205
public static Azure.Core.Diagnostics.AzureEventSourceListener CreateConsoleLogger(System.Diagnostics.Tracing.EventLevel level = default(System.Diagnostics.Tracing.EventLevel)) => throw null;
196206
public static Azure.Core.Diagnostics.AzureEventSourceListener CreateTraceLogger(System.Diagnostics.Tracing.EventLevel level = default(System.Diagnostics.Tracing.EventLevel)) => throw null;
207+
public AzureEventSourceListener(System.Action<System.Diagnostics.Tracing.EventWrittenEventArgs> log, System.Diagnostics.Tracing.EventLevel level) => throw null;
197208
public AzureEventSourceListener(System.Action<System.Diagnostics.Tracing.EventWrittenEventArgs, string> log, System.Diagnostics.Tracing.EventLevel level) => throw null;
198209
protected override sealed void OnEventSourceCreated(System.Diagnostics.Tracing.EventSource eventSource) => throw null;
199210
protected override sealed void OnEventWritten(System.Diagnostics.Tracing.EventWrittenEventArgs eventData) => throw null;
@@ -317,14 +328,20 @@ public enum GeoObjectType
317328
MultiLineString = 5,
318329
GeometryCollection = 6,
319330
}
320-
public sealed class GeoPoint : Azure.Core.GeoJson.GeoObject
331+
public sealed class GeoPoint : Azure.Core.GeoJson.GeoObject, System.ClientModel.Primitives.IJsonModel<Azure.Core.GeoJson.GeoPoint>, System.ClientModel.Primitives.IPersistableModel<Azure.Core.GeoJson.GeoPoint>
321332
{
322333
public Azure.Core.GeoJson.GeoPosition Coordinates { get => throw null; }
334+
Azure.Core.GeoJson.GeoPoint System.ClientModel.Primitives.IJsonModel<Azure.Core.GeoJson.GeoPoint>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) => throw null;
335+
Azure.Core.GeoJson.GeoPoint System.ClientModel.Primitives.IPersistableModel<Azure.Core.GeoJson.GeoPoint>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) => throw null;
336+
public GeoPoint() => throw null;
323337
public GeoPoint(double longitude, double latitude) => throw null;
324338
public GeoPoint(double longitude, double latitude, double? altitude) => throw null;
325339
public GeoPoint(Azure.Core.GeoJson.GeoPosition position) => throw null;
326340
public GeoPoint(Azure.Core.GeoJson.GeoPosition position, Azure.Core.GeoJson.GeoBoundingBox boundingBox, System.Collections.Generic.IReadOnlyDictionary<string, object> customProperties) => throw null;
341+
string System.ClientModel.Primitives.IPersistableModel<Azure.Core.GeoJson.GeoPoint>.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) => throw null;
327342
public override Azure.Core.GeoJson.GeoObjectType Type { get => throw null; }
343+
void System.ClientModel.Primitives.IJsonModel<Azure.Core.GeoJson.GeoPoint>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) => throw null;
344+
System.BinaryData System.ClientModel.Primitives.IPersistableModel<Azure.Core.GeoJson.GeoPoint>.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) => throw null;
328345
}
329346
public sealed class GeoPointCollection : Azure.Core.GeoJson.GeoObject, System.Collections.Generic.IEnumerable<Azure.Core.GeoJson.GeoPoint>, System.Collections.IEnumerable, System.Collections.Generic.IReadOnlyCollection<Azure.Core.GeoJson.GeoPoint>, System.Collections.Generic.IReadOnlyList<Azure.Core.GeoJson.GeoPoint>
330347
{
@@ -612,6 +629,7 @@ public abstract class RequestContent : System.IDisposable
612629
public static Azure.Core.RequestContent Create(object serializable) => throw null;
613630
public static Azure.Core.RequestContent Create(object serializable, Azure.Core.Serialization.ObjectSerializer serializer) => throw null;
614631
public static Azure.Core.RequestContent Create(object serializable, Azure.Core.Serialization.JsonPropertyNames propertyNameFormat, string dateTimeFormat = default(string)) => throw null;
632+
public static Azure.Core.RequestContent Create<T>(T model, System.ClientModel.Primitives.ModelReaderWriterOptions options = default(System.ClientModel.Primitives.ModelReaderWriterOptions)) where T : System.ClientModel.Primitives.IPersistableModel<T> => throw null;
615633
protected RequestContent() => throw null;
616634
public abstract void Dispose();
617635
public static implicit operator Azure.Core.RequestContent(string content) => throw null;
@@ -837,21 +855,29 @@ public class TelemetryDetails
837855
public TelemetryDetails(System.Reflection.Assembly assembly, string applicationId = default(string)) => throw null;
838856
public override string ToString() => throw null;
839857
}
840-
public abstract class TokenCredential
858+
public abstract class TokenCredential : System.ClientModel.AuthenticationTokenProvider
841859
{
860+
public override System.ClientModel.Primitives.GetTokenOptions CreateTokenOptions(System.Collections.Generic.IReadOnlyDictionary<string, object> properties) => throw null;
842861
protected TokenCredential() => throw null;
843862
public abstract Azure.Core.AccessToken GetToken(Azure.Core.TokenRequestContext requestContext, System.Threading.CancellationToken cancellationToken);
863+
public override System.ClientModel.Primitives.AuthenticationToken GetToken(System.ClientModel.Primitives.GetTokenOptions properties, System.Threading.CancellationToken cancellationToken) => throw null;
844864
public abstract System.Threading.Tasks.ValueTask<Azure.Core.AccessToken> GetTokenAsync(Azure.Core.TokenRequestContext requestContext, System.Threading.CancellationToken cancellationToken);
865+
public override System.Threading.Tasks.ValueTask<System.ClientModel.Primitives.AuthenticationToken> GetTokenAsync(System.ClientModel.Primitives.GetTokenOptions properties, System.Threading.CancellationToken cancellationToken) => throw null;
845866
}
846867
public struct TokenRequestContext
847868
{
848869
public string Claims { get => throw null; }
849870
public TokenRequestContext(string[] scopes, string parentRequestId) => throw null;
850871
public TokenRequestContext(string[] scopes, string parentRequestId, string claims) => throw null;
851872
public TokenRequestContext(string[] scopes, string parentRequestId, string claims, string tenantId) => throw null;
852-
public TokenRequestContext(string[] scopes, string parentRequestId = default(string), string claims = default(string), string tenantId = default(string), bool isCaeEnabled = default(bool)) => throw null;
873+
public TokenRequestContext(string[] scopes, string parentRequestId, string claims, string tenantId, bool isCaeEnabled) => throw null;
874+
public TokenRequestContext(string[] scopes, string parentRequestId = default(string), string claims = default(string), string tenantId = default(string), bool isCaeEnabled = default(bool), bool isProofOfPossessionEnabled = default(bool), string proofOfPossessionNonce = default(string), System.Uri requestUri = default(System.Uri), string requestMethod = default(string)) => throw null;
853875
public bool IsCaeEnabled { get => throw null; }
876+
public bool IsProofOfPossessionEnabled { get => throw null; }
854877
public string ParentRequestId { get => throw null; }
878+
public string ProofOfPossessionNonce { get => throw null; }
879+
public string ResourceRequestMethod { get => throw null; }
880+
public System.Uri ResourceRequestUri { get => throw null; }
855881
public string[] Scopes { get => throw null; }
856882
public string TenantId { get => throw null; }
857883
}
@@ -969,6 +995,10 @@ public abstract class Operation
969995
public virtual Azure.Core.RehydrationToken? GetRehydrationToken() => throw null;
970996
public abstract bool HasCompleted { get; }
971997
public abstract string Id { get; }
998+
public static Azure.Operation<T> Rehydrate<T>(Azure.Core.Pipeline.HttpPipeline pipeline, Azure.Core.RehydrationToken rehydrationToken, Azure.Core.ClientOptions options = default(Azure.Core.ClientOptions)) where T : System.ClientModel.Primitives.IPersistableModel<T> => throw null;
999+
public static Azure.Operation Rehydrate(Azure.Core.Pipeline.HttpPipeline pipeline, Azure.Core.RehydrationToken rehydrationToken, Azure.Core.ClientOptions options = default(Azure.Core.ClientOptions)) => throw null;
1000+
public static System.Threading.Tasks.Task<Azure.Operation<T>> RehydrateAsync<T>(Azure.Core.Pipeline.HttpPipeline pipeline, Azure.Core.RehydrationToken rehydrationToken, Azure.Core.ClientOptions options = default(Azure.Core.ClientOptions)) where T : System.ClientModel.Primitives.IPersistableModel<T> => throw null;
1001+
public static System.Threading.Tasks.Task<Azure.Operation> RehydrateAsync(Azure.Core.Pipeline.HttpPipeline pipeline, Azure.Core.RehydrationToken rehydrationToken, Azure.Core.ClientOptions options = default(Azure.Core.ClientOptions)) => throw null;
9721002
public override string ToString() => throw null;
9731003
public abstract Azure.Response UpdateStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
9741004
public abstract System.Threading.Tasks.ValueTask<Azure.Response> UpdateStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
@@ -1083,12 +1113,18 @@ public abstract class Response<T> : Azure.NullableResponse<T>
10831113
public static implicit operator T(Azure.Response<T> response) => throw null;
10841114
public override T Value { get => throw null; }
10851115
}
1086-
public sealed class ResponseError
1116+
public sealed class ResponseError : System.ClientModel.Primitives.IJsonModel<Azure.ResponseError>, System.ClientModel.Primitives.IPersistableModel<Azure.ResponseError>
10871117
{
10881118
public string Code { get => throw null; }
1119+
Azure.ResponseError System.ClientModel.Primitives.IJsonModel<Azure.ResponseError>.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) => throw null;
1120+
Azure.ResponseError System.ClientModel.Primitives.IPersistableModel<Azure.ResponseError>.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) => throw null;
1121+
public ResponseError() => throw null;
10891122
public ResponseError(string code, string message) => throw null;
1123+
string System.ClientModel.Primitives.IPersistableModel<Azure.ResponseError>.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) => throw null;
10901124
public string Message { get => throw null; }
10911125
public override string ToString() => throw null;
1126+
void System.ClientModel.Primitives.IJsonModel<Azure.ResponseError>.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) => throw null;
1127+
System.BinaryData System.ClientModel.Primitives.IPersistableModel<Azure.ResponseError>.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) => throw null;
10921128
}
10931129
public class SyncAsyncEventArgs : System.EventArgs
10941130
{

0 commit comments

Comments
 (0)