diff --git a/sdk/core/Azure.Core.TestFramework/src/Azure.Core.TestFramework.csproj b/sdk/core/Azure.Core.TestFramework/src/Azure.Core.TestFramework.csproj
index df96d31e9076..519da9c09fa5 100644
--- a/sdk/core/Azure.Core.TestFramework/src/Azure.Core.TestFramework.csproj
+++ b/sdk/core/Azure.Core.TestFramework/src/Azure.Core.TestFramework.csproj
@@ -4,7 +4,6 @@
true
-
@@ -40,4 +39,8 @@
<_Parameter2>$(NuGetPackageRoot)\azure.sdk.tools.testproxy\$(TestProxyVersion)\tools\net6.0\any\Azure.Sdk.Tools.TestProxy.dll
+
+
+
+
diff --git a/sdk/core/Azure.Core/Azure.Core.sln b/sdk/core/Azure.Core/Azure.Core.sln
index 194fb4694ad2..e7b54032ec97 100644
--- a/sdk/core/Azure.Core/Azure.Core.sln
+++ b/sdk/core/Azure.Core/Azure.Core.sln
@@ -53,15 +53,15 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.Tests.Public", "
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.Tests.Common", "tests\common\Azure.Core.Tests.Common.csproj", "{0EEDF53F-120A-45B1-8468-A97A0D46DBAC}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.ClientModel", "..\System.ClientModel\src\System.ClientModel.csproj", "{70B67A2C-3CA5-44A0-AF2D-51241A0076E2}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.ClientModel", "..\System.ClientModel\src\System.ClientModel.csproj", "{0EDC2FDC-6326-431D-86D2-02997F341934}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.ClientModel.Tests.Client", "..\System.ClientModel\tests\client\System.ClientModel.Tests.Client.csproj", "{062EA07F-5F75-4447-9453-44FF8A99EF1B}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.ClientModel.Tests", "..\System.ClientModel\tests\System.ClientModel.Tests.csproj", "{55DBB83B-70E5-4591-BB74-668D8662FECB}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.ClientModel.Tests.Internal", "..\System.ClientModel\tests\internal\System.ClientModel.Tests.Internal.csproj", "{23F1EA7A-8576-4877-9B1D-1F1FDADB0EE9}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.ClientModel.Tests.Client", "..\System.ClientModel\tests\client\System.ClientModel.Tests.Client.csproj", "{82EA00A5-B7C2-4F2F-A2CA-72F2FC43C086}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.ClientModel.Tests.Internal.Perf", "..\System.ClientModel\tests\internal.perf\System.ClientModel.Tests.Internal.Perf.csproj", "{2E79B809-C520-4A07-8BC2-23C43B4D3C35}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.ClientModel.Tests.Internal", "..\System.ClientModel\tests\internal\System.ClientModel.Tests.Internal.csproj", "{F1C58999-5F6E-4FFD-B3F3-A7DF64935FD9}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.ClientModel.Tests", "..\System.ClientModel\tests\System.ClientModel.Tests.csproj", "{F317D37D-AA38-4557-A724-6ADA56281B77}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "System.ClientModel.Tests.Internal.Perf", "..\System.ClientModel\tests\internal.perf\System.ClientModel.Tests.Internal.Perf.csproj", "{14F5E486-2C03-4293-ACA7-47B3E069956E}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -141,26 +141,26 @@ Global
{0EEDF53F-120A-45B1-8468-A97A0D46DBAC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0EEDF53F-120A-45B1-8468-A97A0D46DBAC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0EEDF53F-120A-45B1-8468-A97A0D46DBAC}.Release|Any CPU.Build.0 = Release|Any CPU
- {70B67A2C-3CA5-44A0-AF2D-51241A0076E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {70B67A2C-3CA5-44A0-AF2D-51241A0076E2}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {70B67A2C-3CA5-44A0-AF2D-51241A0076E2}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {70B67A2C-3CA5-44A0-AF2D-51241A0076E2}.Release|Any CPU.Build.0 = Release|Any CPU
- {062EA07F-5F75-4447-9453-44FF8A99EF1B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {062EA07F-5F75-4447-9453-44FF8A99EF1B}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {062EA07F-5F75-4447-9453-44FF8A99EF1B}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {062EA07F-5F75-4447-9453-44FF8A99EF1B}.Release|Any CPU.Build.0 = Release|Any CPU
- {23F1EA7A-8576-4877-9B1D-1F1FDADB0EE9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {23F1EA7A-8576-4877-9B1D-1F1FDADB0EE9}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {23F1EA7A-8576-4877-9B1D-1F1FDADB0EE9}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {23F1EA7A-8576-4877-9B1D-1F1FDADB0EE9}.Release|Any CPU.Build.0 = Release|Any CPU
- {2E79B809-C520-4A07-8BC2-23C43B4D3C35}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {2E79B809-C520-4A07-8BC2-23C43B4D3C35}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {2E79B809-C520-4A07-8BC2-23C43B4D3C35}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {2E79B809-C520-4A07-8BC2-23C43B4D3C35}.Release|Any CPU.Build.0 = Release|Any CPU
- {F317D37D-AA38-4557-A724-6ADA56281B77}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {F317D37D-AA38-4557-A724-6ADA56281B77}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {F317D37D-AA38-4557-A724-6ADA56281B77}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {F317D37D-AA38-4557-A724-6ADA56281B77}.Release|Any CPU.Build.0 = Release|Any CPU
+ {0EDC2FDC-6326-431D-86D2-02997F341934}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {0EDC2FDC-6326-431D-86D2-02997F341934}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {0EDC2FDC-6326-431D-86D2-02997F341934}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {0EDC2FDC-6326-431D-86D2-02997F341934}.Release|Any CPU.Build.0 = Release|Any CPU
+ {55DBB83B-70E5-4591-BB74-668D8662FECB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {55DBB83B-70E5-4591-BB74-668D8662FECB}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {55DBB83B-70E5-4591-BB74-668D8662FECB}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {55DBB83B-70E5-4591-BB74-668D8662FECB}.Release|Any CPU.Build.0 = Release|Any CPU
+ {82EA00A5-B7C2-4F2F-A2CA-72F2FC43C086}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {82EA00A5-B7C2-4F2F-A2CA-72F2FC43C086}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {82EA00A5-B7C2-4F2F-A2CA-72F2FC43C086}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {82EA00A5-B7C2-4F2F-A2CA-72F2FC43C086}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F1C58999-5F6E-4FFD-B3F3-A7DF64935FD9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F1C58999-5F6E-4FFD-B3F3-A7DF64935FD9}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F1C58999-5F6E-4FFD-B3F3-A7DF64935FD9}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F1C58999-5F6E-4FFD-B3F3-A7DF64935FD9}.Release|Any CPU.Build.0 = Release|Any CPU
+ {14F5E486-2C03-4293-ACA7-47B3E069956E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {14F5E486-2C03-4293-ACA7-47B3E069956E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {14F5E486-2C03-4293-ACA7-47B3E069956E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {14F5E486-2C03-4293-ACA7-47B3E069956E}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/sdk/core/Azure.Core/api/Azure.Core.net461.cs b/sdk/core/Azure.Core/api/Azure.Core.net461.cs
index 49995b0e56e3..7a173c401816 100644
--- a/sdk/core/Azure.Core/api/Azure.Core.net461.cs
+++ b/sdk/core/Azure.Core/api/Azure.Core.net461.cs
@@ -23,12 +23,11 @@ public static partial class AzureCoreExtensions
public static object? ToObjectFromJson(this System.BinaryData data) { throw null; }
public static T? ToObject(this System.BinaryData data, Azure.Core.Serialization.ObjectSerializer serializer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
}
- public partial class AzureKeyCredential
+ public partial class AzureKeyCredential : System.ClientModel.KeyCredential
{
- public AzureKeyCredential(string key) { }
+ public AzureKeyCredential(string key) : base (default(string)) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public string Key { get { throw null; } }
- public void Update(string key) { }
}
public partial class AzureNamedKeyCredential
{
@@ -115,16 +114,16 @@ public MatchConditions() { }
public Azure.ETag? IfMatch { get { throw null; } set { } }
public Azure.ETag? IfNoneMatch { get { throw null; } set { } }
}
- public abstract partial class NullableResponse
+ public abstract partial class NullableResponse : System.ClientModel.OptionalClientResult
{
- protected NullableResponse() { }
- public abstract bool HasValue { get; }
- public abstract T? Value { get; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ protected NullableResponse() : base (default(T), default(System.ClientModel.Primitives.PipelineResponse)) { }
+ protected NullableResponse(T? value, Azure.Response response) : base (default(T), default(System.ClientModel.Primitives.PipelineResponse)) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override bool Equals(object? obj) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override int GetHashCode() { throw null; }
- public abstract Azure.Response GetRawResponse();
+ public virtual new Azure.Response GetRawResponse() { throw null; }
public override string ToString() { throw null; }
}
public abstract partial class Operation
@@ -208,49 +207,47 @@ public RequestConditions() { }
public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
}
- public partial class RequestContext
+ public partial class RequestContext : System.ClientModel.Primitives.RequestOptions
{
public RequestContext() { }
- public System.Threading.CancellationToken CancellationToken { get { throw null; } set { } }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public Azure.ErrorOptions ErrorOptions { get { throw null; } set { } }
public void AddClassifier(Azure.Core.ResponseClassificationHandler classifier) { }
public void AddClassifier(int statusCode, bool isError) { }
public void AddPolicy(Azure.Core.Pipeline.HttpPipelinePolicy policy, Azure.Core.HttpPipelinePosition position) { }
public static implicit operator Azure.RequestContext (Azure.ErrorOptions options) { throw null; }
}
- public partial class RequestFailedException : System.Exception, System.Runtime.Serialization.ISerializable
+ public partial class RequestFailedException : System.ClientModel.ClientRequestException, System.Runtime.Serialization.ISerializable
{
- public RequestFailedException(Azure.Response response) { }
- public RequestFailedException(Azure.Response response, System.Exception? innerException) { }
- public RequestFailedException(Azure.Response response, System.Exception? innerException, Azure.Core.RequestFailedDetailsParser? detailsParser) { }
+ public RequestFailedException(Azure.Response response) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
+ public RequestFailedException(Azure.Response response, System.Exception? innerException) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
+ public RequestFailedException(Azure.Response response, System.Exception? innerException, Azure.Core.RequestFailedDetailsParser? detailsParser) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public RequestFailedException(int status, string message) { }
+ public RequestFailedException(int status, string message) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public RequestFailedException(int status, string message, System.Exception? innerException) { }
+ public RequestFailedException(int status, string message, System.Exception? innerException) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public RequestFailedException(int status, string message, string? errorCode, System.Exception? innerException) { }
- protected RequestFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
- public RequestFailedException(string message) { }
- public RequestFailedException(string message, System.Exception? innerException) { }
+ public RequestFailedException(int status, string message, string? errorCode, System.Exception? innerException) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
+ protected RequestFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
+ public RequestFailedException(string message) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
+ public RequestFailedException(string message, System.Exception? innerException) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
public string? ErrorCode { get { throw null; } }
- public int Status { get { throw null; } }
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
- public Azure.Response? GetRawResponse() { throw null; }
+ public new Azure.Response? GetRawResponse() { throw null; }
}
- public abstract partial class Response : System.IDisposable
+ public abstract partial class Response : System.ClientModel.Primitives.PipelineResponse
{
protected Response() { }
public abstract string ClientRequestId { get; set; }
- public virtual System.BinaryData Content { get { throw null; } }
- public abstract System.IO.Stream? ContentStream { get; set; }
- public virtual Azure.Core.ResponseHeaders Headers { get { throw null; } }
- public virtual bool IsError { get { throw null; } }
- public abstract string ReasonPhrase { get; }
- public abstract int Status { get; }
+ public virtual new System.BinaryData Content { get { throw null; } }
+ public virtual new Azure.Core.ResponseHeaders Headers { get { throw null; } }
protected internal abstract bool ContainsHeader(string name);
- public abstract void Dispose();
protected internal abstract System.Collections.Generic.IEnumerable EnumerateHeaders();
public static Azure.Response FromValue(T value, Azure.Response response) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ protected override System.ClientModel.Primitives.MessageHeaders GetHeadersCore() { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ protected sealed override void SetIsErrorCore(bool isError) { }
public override string ToString() { throw null; }
protected internal abstract bool TryGetHeader(string name, out string? value);
protected internal abstract bool TryGetHeaderValues(string name, out System.Collections.Generic.IEnumerable? values);
@@ -264,7 +261,9 @@ public ResponseError(string? code, string? message) { }
}
public abstract partial class Response : Azure.NullableResponse
{
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
protected Response() { }
+ protected Response(T value, Azure.Response response) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override bool HasValue { get { throw null; } }
public override T Value { get { throw null; } }
@@ -481,23 +480,19 @@ public static partial class Names
public static string XMsRequestId { get { throw null; } }
}
}
- public sealed partial class HttpMessage : System.IDisposable
+ public sealed partial class HttpMessage : System.ClientModel.Primitives.PipelineMessage
{
- public HttpMessage(Azure.Core.Request request, Azure.Core.ResponseClassifier responseClassifier) { }
+ public HttpMessage(Azure.Core.Request request, Azure.Core.ResponseClassifier responseClassifier) : base (default(System.ClientModel.Primitives.PipelineRequest)) { }
public bool BufferResponse { get { throw null; } set { } }
- public System.Threading.CancellationToken CancellationToken { get { throw null; } }
public bool HasResponse { get { throw null; } }
public System.TimeSpan? NetworkTimeout { get { throw null; } set { } }
public Azure.Core.MessageProcessingContext ProcessingContext { get { throw null; } }
- public Azure.Core.Request Request { get { throw null; } }
- public Azure.Response Response { get { throw null; } set { } }
+ public new Azure.Core.Request Request { get { throw null; } }
+ public new Azure.Response Response { get { throw null; } set { } }
public Azure.Core.ResponseClassifier ResponseClassifier { get { throw null; } set { } }
- public void Dispose() { }
public System.IO.Stream? ExtractResponseContent() { throw null; }
public void SetProperty(string name, object value) { }
- public void SetProperty(System.Type type, object value) { }
public bool TryGetProperty(string name, out object? value) { throw null; }
- public bool TryGetProperty(System.Type type, out object? value) { throw null; }
}
public enum HttpPipelinePosition
{
@@ -518,28 +513,34 @@ public static partial class MultipartResponse
public static Azure.Response[] Parse(Azure.Response response, bool expectCrLf, System.Threading.CancellationToken cancellationToken) { throw null; }
public static System.Threading.Tasks.Task ParseAsync(Azure.Response response, bool expectCrLf, System.Threading.CancellationToken cancellationToken) { throw null; }
}
- public abstract partial class Request : System.IDisposable
+ public abstract partial class Request : System.ClientModel.Primitives.PipelineRequest
{
protected Request() { }
- public abstract string ClientRequestId { get; set; }
- public virtual Azure.Core.RequestContent? Content { get { throw null; } set { } }
- public Azure.Core.RequestHeaders Headers { get { throw null; } }
- public virtual Azure.Core.RequestMethod Method { get { throw null; } set { } }
- public virtual Azure.Core.RequestUriBuilder Uri { get { throw null; } set { } }
+ public virtual string ClientRequestId { get { throw null; } set { } }
+ public virtual new Azure.Core.RequestContent? Content { get { throw null; } set { } }
+ public new Azure.Core.RequestHeaders Headers { get { throw null; } }
+ public virtual new Azure.Core.RequestMethod Method { get { throw null; } set { } }
+ public virtual new Azure.Core.RequestUriBuilder Uri { get { throw null; } set { } }
protected internal abstract void AddHeader(string name, string value);
protected internal abstract bool ContainsHeader(string name);
- public abstract void Dispose();
protected internal abstract System.Collections.Generic.IEnumerable EnumerateHeaders();
+ protected override System.ClientModel.BinaryContent? GetContentCore() { throw null; }
+ protected override System.ClientModel.Primitives.MessageHeaders GetHeadersCore() { throw null; }
+ protected override string GetMethodCore() { throw null; }
+ protected override System.Uri GetUriCore() { throw null; }
protected internal abstract bool RemoveHeader(string name);
+ protected override void SetContentCore(System.ClientModel.BinaryContent? content) { }
protected internal virtual void SetHeader(string name, string value) { }
+ protected override void SetMethodCore(string method) { }
+ protected override void SetUriCore(System.Uri uri) { }
protected internal abstract bool TryGetHeader(string name, out string? value);
protected internal abstract bool TryGetHeaderValues(string name, out System.Collections.Generic.IEnumerable? values);
}
- public abstract partial class RequestContent : System.IDisposable
+ public abstract partial class RequestContent : System.ClientModel.BinaryContent
{
protected RequestContent() { }
public static Azure.Core.RequestContent Create(Azure.Core.Serialization.DynamicData content) { throw null; }
- public static Azure.Core.RequestContent Create(System.BinaryData content) { throw null; }
+ public static new Azure.Core.RequestContent Create(System.BinaryData content) { throw null; }
public static Azure.Core.RequestContent Create(System.Buffers.ReadOnlySequence bytes) { throw null; }
public static Azure.Core.RequestContent Create(byte[] bytes) { throw null; }
public static Azure.Core.RequestContent Create(byte[] bytes, int index, int length) { throw null; }
@@ -549,13 +550,10 @@ protected RequestContent() { }
public static Azure.Core.RequestContent Create(object serializable, Azure.Core.Serialization.ObjectSerializer? serializer) { throw null; }
public static Azure.Core.RequestContent Create(System.ReadOnlyMemory bytes) { throw null; }
public static Azure.Core.RequestContent Create(string content) { throw null; }
- public abstract void Dispose();
+ public static Azure.Core.RequestContent Create(T model, System.ClientModel.Primitives.ModelReaderWriterOptions? options = null) where T : System.ClientModel.Primitives.IPersistableModel { throw null; }
public static implicit operator Azure.Core.RequestContent (Azure.Core.Serialization.DynamicData content) { throw null; }
public static implicit operator Azure.Core.RequestContent (System.BinaryData content) { throw null; }
public static implicit operator Azure.Core.RequestContent (string content) { throw null; }
- public abstract bool TryComputeLength(out long length);
- public abstract void WriteTo(System.IO.Stream stream, System.Threading.CancellationToken cancellation);
- public abstract System.Threading.Tasks.Task WriteToAsync(System.IO.Stream stream, System.Threading.CancellationToken cancellation);
}
public abstract partial class RequestFailedDetailsParser
{
@@ -679,7 +677,7 @@ public abstract partial class ResponseClassificationHandler
protected ResponseClassificationHandler() { }
public abstract bool TryClassify(Azure.Core.HttpMessage message, out bool isError);
}
- public partial class ResponseClassifier
+ public partial class ResponseClassifier : System.ClientModel.Primitives.PipelineMessageClassifier
{
public ResponseClassifier() { }
public virtual bool IsErrorResponse(Azure.Core.HttpMessage message) { throw null; }
@@ -1016,11 +1014,13 @@ public HttpPipelineOptions(Azure.Core.ClientOptions options) { }
public Azure.Core.RequestFailedDetailsParser RequestFailedDetailsParser { get { throw null; } set { } }
public Azure.Core.ResponseClassifier? ResponseClassifier { get { throw null; } set { } }
}
- public abstract partial class HttpPipelinePolicy
+ public abstract partial class HttpPipelinePolicy : System.ClientModel.Primitives.PipelinePolicy
{
protected HttpPipelinePolicy() { }
public abstract void Process(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline);
+ public sealed override void Process(System.ClientModel.Primitives.PipelineMessage message, System.Collections.Generic.IReadOnlyList pipeline, int currentIndex) { }
public abstract System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline);
+ public sealed override System.Threading.Tasks.ValueTask ProcessAsync(System.ClientModel.Primitives.PipelineMessage message, System.Collections.Generic.IReadOnlyList pipeline, int currentIndex) { throw null; }
protected static void ProcessNext(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline) { }
protected static System.Threading.Tasks.ValueTask ProcessNextAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline) { throw null; }
}
@@ -1056,14 +1056,14 @@ public static void SetAllowAutoRedirect(Azure.Core.HttpMessage message, bool all
public partial class RetryPolicy : Azure.Core.Pipeline.HttpPipelinePolicy
{
public RetryPolicy(int maxRetries = 3, Azure.Core.DelayStrategy? delayStrategy = null) { }
- protected internal virtual void OnRequestSent(Azure.Core.HttpMessage message) { }
- protected internal virtual System.Threading.Tasks.ValueTask OnRequestSentAsync(Azure.Core.HttpMessage message) { throw null; }
- protected internal virtual void OnSendingRequest(Azure.Core.HttpMessage message) { }
- protected internal virtual System.Threading.Tasks.ValueTask OnSendingRequestAsync(Azure.Core.HttpMessage message) { throw null; }
+ protected virtual void OnRequestSent(Azure.Core.HttpMessage message) { }
+ protected virtual System.Threading.Tasks.ValueTask OnRequestSentAsync(Azure.Core.HttpMessage message) { throw null; }
+ protected virtual void OnSendingRequest(Azure.Core.HttpMessage message) { }
+ protected virtual System.Threading.Tasks.ValueTask OnSendingRequestAsync(Azure.Core.HttpMessage message) { throw null; }
public override void Process(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline) { }
public override System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline) { throw null; }
- protected internal virtual bool ShouldRetry(Azure.Core.HttpMessage message, System.Exception? exception) { throw null; }
- protected internal virtual System.Threading.Tasks.ValueTask ShouldRetryAsync(Azure.Core.HttpMessage message, System.Exception? exception) { throw null; }
+ protected virtual bool ShouldRetry(Azure.Core.HttpMessage message, System.Exception? exception) { throw null; }
+ protected virtual System.Threading.Tasks.ValueTask ShouldRetryAsync(Azure.Core.HttpMessage message, System.Exception? exception) { throw null; }
}
public partial class ServerCertificateCustomValidationArgs
{
diff --git a/sdk/core/Azure.Core/api/Azure.Core.net472.cs b/sdk/core/Azure.Core/api/Azure.Core.net472.cs
index 49995b0e56e3..7a173c401816 100644
--- a/sdk/core/Azure.Core/api/Azure.Core.net472.cs
+++ b/sdk/core/Azure.Core/api/Azure.Core.net472.cs
@@ -23,12 +23,11 @@ public static partial class AzureCoreExtensions
public static object? ToObjectFromJson(this System.BinaryData data) { throw null; }
public static T? ToObject(this System.BinaryData data, Azure.Core.Serialization.ObjectSerializer serializer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
}
- public partial class AzureKeyCredential
+ public partial class AzureKeyCredential : System.ClientModel.KeyCredential
{
- public AzureKeyCredential(string key) { }
+ public AzureKeyCredential(string key) : base (default(string)) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public string Key { get { throw null; } }
- public void Update(string key) { }
}
public partial class AzureNamedKeyCredential
{
@@ -115,16 +114,16 @@ public MatchConditions() { }
public Azure.ETag? IfMatch { get { throw null; } set { } }
public Azure.ETag? IfNoneMatch { get { throw null; } set { } }
}
- public abstract partial class NullableResponse
+ public abstract partial class NullableResponse : System.ClientModel.OptionalClientResult
{
- protected NullableResponse() { }
- public abstract bool HasValue { get; }
- public abstract T? Value { get; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ protected NullableResponse() : base (default(T), default(System.ClientModel.Primitives.PipelineResponse)) { }
+ protected NullableResponse(T? value, Azure.Response response) : base (default(T), default(System.ClientModel.Primitives.PipelineResponse)) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override bool Equals(object? obj) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override int GetHashCode() { throw null; }
- public abstract Azure.Response GetRawResponse();
+ public virtual new Azure.Response GetRawResponse() { throw null; }
public override string ToString() { throw null; }
}
public abstract partial class Operation
@@ -208,49 +207,47 @@ public RequestConditions() { }
public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
}
- public partial class RequestContext
+ public partial class RequestContext : System.ClientModel.Primitives.RequestOptions
{
public RequestContext() { }
- public System.Threading.CancellationToken CancellationToken { get { throw null; } set { } }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public Azure.ErrorOptions ErrorOptions { get { throw null; } set { } }
public void AddClassifier(Azure.Core.ResponseClassificationHandler classifier) { }
public void AddClassifier(int statusCode, bool isError) { }
public void AddPolicy(Azure.Core.Pipeline.HttpPipelinePolicy policy, Azure.Core.HttpPipelinePosition position) { }
public static implicit operator Azure.RequestContext (Azure.ErrorOptions options) { throw null; }
}
- public partial class RequestFailedException : System.Exception, System.Runtime.Serialization.ISerializable
+ public partial class RequestFailedException : System.ClientModel.ClientRequestException, System.Runtime.Serialization.ISerializable
{
- public RequestFailedException(Azure.Response response) { }
- public RequestFailedException(Azure.Response response, System.Exception? innerException) { }
- public RequestFailedException(Azure.Response response, System.Exception? innerException, Azure.Core.RequestFailedDetailsParser? detailsParser) { }
+ public RequestFailedException(Azure.Response response) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
+ public RequestFailedException(Azure.Response response, System.Exception? innerException) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
+ public RequestFailedException(Azure.Response response, System.Exception? innerException, Azure.Core.RequestFailedDetailsParser? detailsParser) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public RequestFailedException(int status, string message) { }
+ public RequestFailedException(int status, string message) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public RequestFailedException(int status, string message, System.Exception? innerException) { }
+ public RequestFailedException(int status, string message, System.Exception? innerException) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public RequestFailedException(int status, string message, string? errorCode, System.Exception? innerException) { }
- protected RequestFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
- public RequestFailedException(string message) { }
- public RequestFailedException(string message, System.Exception? innerException) { }
+ public RequestFailedException(int status, string message, string? errorCode, System.Exception? innerException) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
+ protected RequestFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
+ public RequestFailedException(string message) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
+ public RequestFailedException(string message, System.Exception? innerException) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
public string? ErrorCode { get { throw null; } }
- public int Status { get { throw null; } }
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
- public Azure.Response? GetRawResponse() { throw null; }
+ public new Azure.Response? GetRawResponse() { throw null; }
}
- public abstract partial class Response : System.IDisposable
+ public abstract partial class Response : System.ClientModel.Primitives.PipelineResponse
{
protected Response() { }
public abstract string ClientRequestId { get; set; }
- public virtual System.BinaryData Content { get { throw null; } }
- public abstract System.IO.Stream? ContentStream { get; set; }
- public virtual Azure.Core.ResponseHeaders Headers { get { throw null; } }
- public virtual bool IsError { get { throw null; } }
- public abstract string ReasonPhrase { get; }
- public abstract int Status { get; }
+ public virtual new System.BinaryData Content { get { throw null; } }
+ public virtual new Azure.Core.ResponseHeaders Headers { get { throw null; } }
protected internal abstract bool ContainsHeader(string name);
- public abstract void Dispose();
protected internal abstract System.Collections.Generic.IEnumerable EnumerateHeaders();
public static Azure.Response FromValue(T value, Azure.Response response) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ protected override System.ClientModel.Primitives.MessageHeaders GetHeadersCore() { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ protected sealed override void SetIsErrorCore(bool isError) { }
public override string ToString() { throw null; }
protected internal abstract bool TryGetHeader(string name, out string? value);
protected internal abstract bool TryGetHeaderValues(string name, out System.Collections.Generic.IEnumerable? values);
@@ -264,7 +261,9 @@ public ResponseError(string? code, string? message) { }
}
public abstract partial class Response : Azure.NullableResponse
{
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
protected Response() { }
+ protected Response(T value, Azure.Response response) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override bool HasValue { get { throw null; } }
public override T Value { get { throw null; } }
@@ -481,23 +480,19 @@ public static partial class Names
public static string XMsRequestId { get { throw null; } }
}
}
- public sealed partial class HttpMessage : System.IDisposable
+ public sealed partial class HttpMessage : System.ClientModel.Primitives.PipelineMessage
{
- public HttpMessage(Azure.Core.Request request, Azure.Core.ResponseClassifier responseClassifier) { }
+ public HttpMessage(Azure.Core.Request request, Azure.Core.ResponseClassifier responseClassifier) : base (default(System.ClientModel.Primitives.PipelineRequest)) { }
public bool BufferResponse { get { throw null; } set { } }
- public System.Threading.CancellationToken CancellationToken { get { throw null; } }
public bool HasResponse { get { throw null; } }
public System.TimeSpan? NetworkTimeout { get { throw null; } set { } }
public Azure.Core.MessageProcessingContext ProcessingContext { get { throw null; } }
- public Azure.Core.Request Request { get { throw null; } }
- public Azure.Response Response { get { throw null; } set { } }
+ public new Azure.Core.Request Request { get { throw null; } }
+ public new Azure.Response Response { get { throw null; } set { } }
public Azure.Core.ResponseClassifier ResponseClassifier { get { throw null; } set { } }
- public void Dispose() { }
public System.IO.Stream? ExtractResponseContent() { throw null; }
public void SetProperty(string name, object value) { }
- public void SetProperty(System.Type type, object value) { }
public bool TryGetProperty(string name, out object? value) { throw null; }
- public bool TryGetProperty(System.Type type, out object? value) { throw null; }
}
public enum HttpPipelinePosition
{
@@ -518,28 +513,34 @@ public static partial class MultipartResponse
public static Azure.Response[] Parse(Azure.Response response, bool expectCrLf, System.Threading.CancellationToken cancellationToken) { throw null; }
public static System.Threading.Tasks.Task ParseAsync(Azure.Response response, bool expectCrLf, System.Threading.CancellationToken cancellationToken) { throw null; }
}
- public abstract partial class Request : System.IDisposable
+ public abstract partial class Request : System.ClientModel.Primitives.PipelineRequest
{
protected Request() { }
- public abstract string ClientRequestId { get; set; }
- public virtual Azure.Core.RequestContent? Content { get { throw null; } set { } }
- public Azure.Core.RequestHeaders Headers { get { throw null; } }
- public virtual Azure.Core.RequestMethod Method { get { throw null; } set { } }
- public virtual Azure.Core.RequestUriBuilder Uri { get { throw null; } set { } }
+ public virtual string ClientRequestId { get { throw null; } set { } }
+ public virtual new Azure.Core.RequestContent? Content { get { throw null; } set { } }
+ public new Azure.Core.RequestHeaders Headers { get { throw null; } }
+ public virtual new Azure.Core.RequestMethod Method { get { throw null; } set { } }
+ public virtual new Azure.Core.RequestUriBuilder Uri { get { throw null; } set { } }
protected internal abstract void AddHeader(string name, string value);
protected internal abstract bool ContainsHeader(string name);
- public abstract void Dispose();
protected internal abstract System.Collections.Generic.IEnumerable EnumerateHeaders();
+ protected override System.ClientModel.BinaryContent? GetContentCore() { throw null; }
+ protected override System.ClientModel.Primitives.MessageHeaders GetHeadersCore() { throw null; }
+ protected override string GetMethodCore() { throw null; }
+ protected override System.Uri GetUriCore() { throw null; }
protected internal abstract bool RemoveHeader(string name);
+ protected override void SetContentCore(System.ClientModel.BinaryContent? content) { }
protected internal virtual void SetHeader(string name, string value) { }
+ protected override void SetMethodCore(string method) { }
+ protected override void SetUriCore(System.Uri uri) { }
protected internal abstract bool TryGetHeader(string name, out string? value);
protected internal abstract bool TryGetHeaderValues(string name, out System.Collections.Generic.IEnumerable? values);
}
- public abstract partial class RequestContent : System.IDisposable
+ public abstract partial class RequestContent : System.ClientModel.BinaryContent
{
protected RequestContent() { }
public static Azure.Core.RequestContent Create(Azure.Core.Serialization.DynamicData content) { throw null; }
- public static Azure.Core.RequestContent Create(System.BinaryData content) { throw null; }
+ public static new Azure.Core.RequestContent Create(System.BinaryData content) { throw null; }
public static Azure.Core.RequestContent Create(System.Buffers.ReadOnlySequence bytes) { throw null; }
public static Azure.Core.RequestContent Create(byte[] bytes) { throw null; }
public static Azure.Core.RequestContent Create(byte[] bytes, int index, int length) { throw null; }
@@ -549,13 +550,10 @@ protected RequestContent() { }
public static Azure.Core.RequestContent Create(object serializable, Azure.Core.Serialization.ObjectSerializer? serializer) { throw null; }
public static Azure.Core.RequestContent Create(System.ReadOnlyMemory bytes) { throw null; }
public static Azure.Core.RequestContent Create(string content) { throw null; }
- public abstract void Dispose();
+ public static Azure.Core.RequestContent Create(T model, System.ClientModel.Primitives.ModelReaderWriterOptions? options = null) where T : System.ClientModel.Primitives.IPersistableModel { throw null; }
public static implicit operator Azure.Core.RequestContent (Azure.Core.Serialization.DynamicData content) { throw null; }
public static implicit operator Azure.Core.RequestContent (System.BinaryData content) { throw null; }
public static implicit operator Azure.Core.RequestContent (string content) { throw null; }
- public abstract bool TryComputeLength(out long length);
- public abstract void WriteTo(System.IO.Stream stream, System.Threading.CancellationToken cancellation);
- public abstract System.Threading.Tasks.Task WriteToAsync(System.IO.Stream stream, System.Threading.CancellationToken cancellation);
}
public abstract partial class RequestFailedDetailsParser
{
@@ -679,7 +677,7 @@ public abstract partial class ResponseClassificationHandler
protected ResponseClassificationHandler() { }
public abstract bool TryClassify(Azure.Core.HttpMessage message, out bool isError);
}
- public partial class ResponseClassifier
+ public partial class ResponseClassifier : System.ClientModel.Primitives.PipelineMessageClassifier
{
public ResponseClassifier() { }
public virtual bool IsErrorResponse(Azure.Core.HttpMessage message) { throw null; }
@@ -1016,11 +1014,13 @@ public HttpPipelineOptions(Azure.Core.ClientOptions options) { }
public Azure.Core.RequestFailedDetailsParser RequestFailedDetailsParser { get { throw null; } set { } }
public Azure.Core.ResponseClassifier? ResponseClassifier { get { throw null; } set { } }
}
- public abstract partial class HttpPipelinePolicy
+ public abstract partial class HttpPipelinePolicy : System.ClientModel.Primitives.PipelinePolicy
{
protected HttpPipelinePolicy() { }
public abstract void Process(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline);
+ public sealed override void Process(System.ClientModel.Primitives.PipelineMessage message, System.Collections.Generic.IReadOnlyList pipeline, int currentIndex) { }
public abstract System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline);
+ public sealed override System.Threading.Tasks.ValueTask ProcessAsync(System.ClientModel.Primitives.PipelineMessage message, System.Collections.Generic.IReadOnlyList pipeline, int currentIndex) { throw null; }
protected static void ProcessNext(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline) { }
protected static System.Threading.Tasks.ValueTask ProcessNextAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline) { throw null; }
}
@@ -1056,14 +1056,14 @@ public static void SetAllowAutoRedirect(Azure.Core.HttpMessage message, bool all
public partial class RetryPolicy : Azure.Core.Pipeline.HttpPipelinePolicy
{
public RetryPolicy(int maxRetries = 3, Azure.Core.DelayStrategy? delayStrategy = null) { }
- protected internal virtual void OnRequestSent(Azure.Core.HttpMessage message) { }
- protected internal virtual System.Threading.Tasks.ValueTask OnRequestSentAsync(Azure.Core.HttpMessage message) { throw null; }
- protected internal virtual void OnSendingRequest(Azure.Core.HttpMessage message) { }
- protected internal virtual System.Threading.Tasks.ValueTask OnSendingRequestAsync(Azure.Core.HttpMessage message) { throw null; }
+ protected virtual void OnRequestSent(Azure.Core.HttpMessage message) { }
+ protected virtual System.Threading.Tasks.ValueTask OnRequestSentAsync(Azure.Core.HttpMessage message) { throw null; }
+ protected virtual void OnSendingRequest(Azure.Core.HttpMessage message) { }
+ protected virtual System.Threading.Tasks.ValueTask OnSendingRequestAsync(Azure.Core.HttpMessage message) { throw null; }
public override void Process(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline) { }
public override System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline) { throw null; }
- protected internal virtual bool ShouldRetry(Azure.Core.HttpMessage message, System.Exception? exception) { throw null; }
- protected internal virtual System.Threading.Tasks.ValueTask ShouldRetryAsync(Azure.Core.HttpMessage message, System.Exception? exception) { throw null; }
+ protected virtual bool ShouldRetry(Azure.Core.HttpMessage message, System.Exception? exception) { throw null; }
+ protected virtual System.Threading.Tasks.ValueTask ShouldRetryAsync(Azure.Core.HttpMessage message, System.Exception? exception) { throw null; }
}
public partial class ServerCertificateCustomValidationArgs
{
diff --git a/sdk/core/Azure.Core/api/Azure.Core.net5.0.cs b/sdk/core/Azure.Core/api/Azure.Core.net5.0.cs
index 6d7fede912ff..062c6f721946 100644
--- a/sdk/core/Azure.Core/api/Azure.Core.net5.0.cs
+++ b/sdk/core/Azure.Core/api/Azure.Core.net5.0.cs
@@ -23,12 +23,11 @@ public static partial class AzureCoreExtensions
public static object? ToObjectFromJson(this System.BinaryData data) { throw null; }
public static T? ToObject(this System.BinaryData data, Azure.Core.Serialization.ObjectSerializer serializer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
}
- public partial class AzureKeyCredential
+ public partial class AzureKeyCredential : System.ClientModel.KeyCredential
{
- public AzureKeyCredential(string key) { }
+ public AzureKeyCredential(string key) : base (default(string)) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public string Key { get { throw null; } }
- public void Update(string key) { }
}
public partial class AzureNamedKeyCredential
{
@@ -115,16 +114,16 @@ public MatchConditions() { }
public Azure.ETag? IfMatch { get { throw null; } set { } }
public Azure.ETag? IfNoneMatch { get { throw null; } set { } }
}
- public abstract partial class NullableResponse
+ public abstract partial class NullableResponse : System.ClientModel.OptionalClientResult
{
- protected NullableResponse() { }
- public abstract bool HasValue { get; }
- public abstract T? Value { get; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ protected NullableResponse() : base (default(T), default(System.ClientModel.Primitives.PipelineResponse)) { }
+ protected NullableResponse(T? value, Azure.Response response) : base (default(T), default(System.ClientModel.Primitives.PipelineResponse)) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override bool Equals(object? obj) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override int GetHashCode() { throw null; }
- public abstract Azure.Response GetRawResponse();
+ public virtual new Azure.Response GetRawResponse() { throw null; }
public override string ToString() { throw null; }
}
public abstract partial class Operation
@@ -208,49 +207,46 @@ public RequestConditions() { }
public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
}
- public partial class RequestContext
+ public partial class RequestContext : System.ClientModel.RequestOptions
{
public RequestContext() { }
- public System.Threading.CancellationToken CancellationToken { get { throw null; } set { } }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public Azure.ErrorOptions ErrorOptions { get { throw null; } set { } }
public void AddClassifier(Azure.Core.ResponseClassificationHandler classifier) { }
public void AddClassifier(int statusCode, bool isError) { }
public void AddPolicy(Azure.Core.Pipeline.HttpPipelinePolicy policy, Azure.Core.HttpPipelinePosition position) { }
public static implicit operator Azure.RequestContext (Azure.ErrorOptions options) { throw null; }
}
- public partial class RequestFailedException : System.Exception, System.Runtime.Serialization.ISerializable
+ public partial class RequestFailedException : System.ClientModel.ClientRequestException, System.Runtime.Serialization.ISerializable
{
- public RequestFailedException(Azure.Response response) { }
- public RequestFailedException(Azure.Response response, System.Exception? innerException) { }
- public RequestFailedException(Azure.Response response, System.Exception? innerException, Azure.Core.RequestFailedDetailsParser? detailsParser) { }
+ public RequestFailedException(Azure.Response response) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
+ public RequestFailedException(Azure.Response response, System.Exception? innerException) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
+ public RequestFailedException(Azure.Response response, System.Exception? innerException, Azure.Core.RequestFailedDetailsParser? detailsParser) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public RequestFailedException(int status, string message) { }
+ public RequestFailedException(int status, string message) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public RequestFailedException(int status, string message, System.Exception? innerException) { }
+ public RequestFailedException(int status, string message, System.Exception? innerException) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public RequestFailedException(int status, string message, string? errorCode, System.Exception? innerException) { }
- protected RequestFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
- public RequestFailedException(string message) { }
- public RequestFailedException(string message, System.Exception? innerException) { }
+ public RequestFailedException(int status, string message, string? errorCode, System.Exception? innerException) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
+ protected RequestFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
+ public RequestFailedException(string message) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
+ public RequestFailedException(string message, System.Exception? innerException) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
public string? ErrorCode { get { throw null; } }
- public int Status { get { throw null; } }
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
- public Azure.Response? GetRawResponse() { throw null; }
+ public new Azure.Response? GetRawResponse() { throw null; }
}
- public abstract partial class Response : System.IDisposable
+ public abstract partial class Response : System.ClientModel.Primitives.PipelineResponse
{
protected Response() { }
public abstract string ClientRequestId { get; set; }
- public virtual System.BinaryData Content { get { throw null; } }
- public abstract System.IO.Stream? ContentStream { get; set; }
- public virtual Azure.Core.ResponseHeaders Headers { get { throw null; } }
- public virtual bool IsError { get { throw null; } }
- public abstract string ReasonPhrase { get; }
- public abstract int Status { get; }
+ public virtual new System.BinaryData Content { get { throw null; } }
+ public virtual new Azure.Core.ResponseHeaders Headers { get { throw null; } }
+ public virtual new bool IsError { get { throw null; } }
protected internal abstract bool ContainsHeader(string name);
- public abstract void Dispose();
protected internal abstract System.Collections.Generic.IEnumerable EnumerateHeaders();
public static Azure.Response FromValue(T value, Azure.Response response) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ protected override System.ClientModel.Primitives.MessageHeaders GetHeadersCore() { throw null; }
public override string ToString() { throw null; }
protected internal abstract bool TryGetHeader(string name, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] out string? value);
protected internal abstract bool TryGetHeaderValues(string name, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] out System.Collections.Generic.IEnumerable? values);
@@ -264,7 +260,9 @@ public ResponseError(string? code, string? message) { }
}
public abstract partial class Response : Azure.NullableResponse
{
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
protected Response() { }
+ protected Response(T value, Azure.Response response) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override bool HasValue { get { throw null; } }
public override T Value { get { throw null; } }
@@ -481,23 +479,19 @@ public static partial class Names
public static string XMsRequestId { get { throw null; } }
}
}
- public sealed partial class HttpMessage : System.IDisposable
+ public sealed partial class HttpMessage : System.ClientModel.Primitives.PipelineMessage
{
- public HttpMessage(Azure.Core.Request request, Azure.Core.ResponseClassifier responseClassifier) { }
+ public HttpMessage(Azure.Core.Request request, Azure.Core.ResponseClassifier responseClassifier) : base (default(System.ClientModel.Primitives.PipelineRequest)) { }
public bool BufferResponse { get { throw null; } set { } }
- public System.Threading.CancellationToken CancellationToken { get { throw null; } }
public bool HasResponse { get { throw null; } }
public System.TimeSpan? NetworkTimeout { get { throw null; } set { } }
public Azure.Core.MessageProcessingContext ProcessingContext { get { throw null; } }
- public Azure.Core.Request Request { get { throw null; } }
- public Azure.Response Response { get { throw null; } set { } }
+ public new Azure.Core.Request Request { get { throw null; } }
+ public new Azure.Response Response { get { throw null; } set { } }
public Azure.Core.ResponseClassifier ResponseClassifier { get { throw null; } set { } }
- public void Dispose() { }
public System.IO.Stream? ExtractResponseContent() { throw null; }
public void SetProperty(string name, object value) { }
- public void SetProperty(System.Type type, object value) { }
public bool TryGetProperty(string name, out object? value) { throw null; }
- public bool TryGetProperty(System.Type type, out object? value) { throw null; }
}
public enum HttpPipelinePosition
{
@@ -518,28 +512,34 @@ public static partial class MultipartResponse
public static Azure.Response[] Parse(Azure.Response response, bool expectCrLf, System.Threading.CancellationToken cancellationToken) { throw null; }
public static System.Threading.Tasks.Task ParseAsync(Azure.Response response, bool expectCrLf, System.Threading.CancellationToken cancellationToken) { throw null; }
}
- public abstract partial class Request : System.IDisposable
+ public abstract partial class Request : System.ClientModel.Primitives.PipelineRequest
{
protected Request() { }
- public abstract string ClientRequestId { get; set; }
- public virtual Azure.Core.RequestContent? Content { get { throw null; } set { } }
- public Azure.Core.RequestHeaders Headers { get { throw null; } }
- public virtual Azure.Core.RequestMethod Method { get { throw null; } set { } }
- public virtual Azure.Core.RequestUriBuilder Uri { get { throw null; } set { } }
+ public virtual string ClientRequestId { get { throw null; } set { } }
+ public virtual new Azure.Core.RequestContent? Content { get { throw null; } set { } }
+ public new Azure.Core.RequestHeaders Headers { get { throw null; } }
+ public virtual new Azure.Core.RequestMethod Method { get { throw null; } set { } }
+ public virtual new Azure.Core.RequestUriBuilder Uri { get { throw null; } set { } }
protected internal abstract void AddHeader(string name, string value);
protected internal abstract bool ContainsHeader(string name);
- public abstract void Dispose();
protected internal abstract System.Collections.Generic.IEnumerable EnumerateHeaders();
+ protected override System.ClientModel.BinaryContent? GetContentCore() { throw null; }
+ protected override System.ClientModel.Primitives.MessageHeaders GetHeadersCore() { throw null; }
+ protected override string GetMethodCore() { throw null; }
+ protected override System.Uri GetUriCore() { throw null; }
protected internal abstract bool RemoveHeader(string name);
+ protected override void SetContentCore(System.ClientModel.BinaryContent? content) { }
protected internal virtual void SetHeader(string name, string value) { }
+ protected override void SetMethodCore(string method) { }
+ protected override void SetUriCore(System.Uri uri) { }
protected internal abstract bool TryGetHeader(string name, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] out string? value);
protected internal abstract bool TryGetHeaderValues(string name, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] out System.Collections.Generic.IEnumerable? values);
}
- public abstract partial class RequestContent : System.IDisposable
+ public abstract partial class RequestContent : System.ClientModel.BinaryContent
{
protected RequestContent() { }
public static Azure.Core.RequestContent Create(Azure.Core.Serialization.DynamicData content) { throw null; }
- public static Azure.Core.RequestContent Create(System.BinaryData content) { throw null; }
+ public static new Azure.Core.RequestContent Create(System.BinaryData content) { throw null; }
public static Azure.Core.RequestContent Create(System.Buffers.ReadOnlySequence bytes) { throw null; }
public static Azure.Core.RequestContent Create(byte[] bytes) { throw null; }
public static Azure.Core.RequestContent Create(byte[] bytes, int index, int length) { throw null; }
@@ -552,13 +552,10 @@ protected RequestContent() { }
public static Azure.Core.RequestContent Create(object serializable, Azure.Core.Serialization.ObjectSerializer? serializer) { throw null; }
public static Azure.Core.RequestContent Create(System.ReadOnlyMemory bytes) { throw null; }
public static Azure.Core.RequestContent Create(string content) { throw null; }
- public abstract void Dispose();
+ public static Azure.Core.RequestContent Create(T model, System.ClientModel.ModelReaderWriterOptions? options = null) where T : System.ClientModel.Primitives.IPersistableModel { throw null; }
public static implicit operator Azure.Core.RequestContent (Azure.Core.Serialization.DynamicData content) { throw null; }
public static implicit operator Azure.Core.RequestContent (System.BinaryData content) { throw null; }
public static implicit operator Azure.Core.RequestContent (string content) { throw null; }
- public abstract bool TryComputeLength(out long length);
- public abstract void WriteTo(System.IO.Stream stream, System.Threading.CancellationToken cancellation);
- public abstract System.Threading.Tasks.Task WriteToAsync(System.IO.Stream stream, System.Threading.CancellationToken cancellation);
}
public abstract partial class RequestFailedDetailsParser
{
@@ -682,7 +679,7 @@ public abstract partial class ResponseClassificationHandler
protected ResponseClassificationHandler() { }
public abstract bool TryClassify(Azure.Core.HttpMessage message, out bool isError);
}
- public partial class ResponseClassifier
+ public partial class ResponseClassifier : System.ClientModel.Primitives.PipelineMessageClassifier
{
public ResponseClassifier() { }
public virtual bool IsErrorResponse(Azure.Core.HttpMessage message) { throw null; }
@@ -1019,11 +1016,13 @@ public HttpPipelineOptions(Azure.Core.ClientOptions options) { }
public Azure.Core.RequestFailedDetailsParser RequestFailedDetailsParser { get { throw null; } set { } }
public Azure.Core.ResponseClassifier? ResponseClassifier { get { throw null; } set { } }
}
- public abstract partial class HttpPipelinePolicy
+ public abstract partial class HttpPipelinePolicy : System.ClientModel.Primitives.PipelinePolicy
{
protected HttpPipelinePolicy() { }
public abstract void Process(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline);
+ public override void Process(System.ClientModel.Primitives.PipelineMessage message, System.Collections.Generic.IEnumerable pipeline) { }
public abstract System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline);
+ public override System.Threading.Tasks.ValueTask ProcessAsync(System.ClientModel.Primitives.PipelineMessage message, System.Collections.Generic.IEnumerable pipeline) { throw null; }
protected static void ProcessNext(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline) { }
protected static System.Threading.Tasks.ValueTask ProcessNextAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline) { throw null; }
}
@@ -1059,14 +1058,14 @@ public static void SetAllowAutoRedirect(Azure.Core.HttpMessage message, bool all
public partial class RetryPolicy : Azure.Core.Pipeline.HttpPipelinePolicy
{
public RetryPolicy(int maxRetries = 3, Azure.Core.DelayStrategy? delayStrategy = null) { }
- protected internal virtual void OnRequestSent(Azure.Core.HttpMessage message) { }
- protected internal virtual System.Threading.Tasks.ValueTask OnRequestSentAsync(Azure.Core.HttpMessage message) { throw null; }
- protected internal virtual void OnSendingRequest(Azure.Core.HttpMessage message) { }
- protected internal virtual System.Threading.Tasks.ValueTask OnSendingRequestAsync(Azure.Core.HttpMessage message) { throw null; }
+ protected virtual void OnRequestSent(Azure.Core.HttpMessage message) { }
+ protected virtual System.Threading.Tasks.ValueTask OnRequestSentAsync(Azure.Core.HttpMessage message) { throw null; }
+ protected virtual void OnSendingRequest(Azure.Core.HttpMessage message) { }
+ protected virtual System.Threading.Tasks.ValueTask OnSendingRequestAsync(Azure.Core.HttpMessage message) { throw null; }
public override void Process(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline) { }
public override System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline) { throw null; }
- protected internal virtual bool ShouldRetry(Azure.Core.HttpMessage message, System.Exception? exception) { throw null; }
- protected internal virtual System.Threading.Tasks.ValueTask ShouldRetryAsync(Azure.Core.HttpMessage message, System.Exception? exception) { throw null; }
+ protected virtual bool ShouldRetry(Azure.Core.HttpMessage message, System.Exception? exception) { throw null; }
+ protected virtual System.Threading.Tasks.ValueTask ShouldRetryAsync(Azure.Core.HttpMessage message, System.Exception? exception) { throw null; }
}
public partial class ServerCertificateCustomValidationArgs
{
diff --git a/sdk/core/Azure.Core/api/Azure.Core.net6.0.cs b/sdk/core/Azure.Core/api/Azure.Core.net6.0.cs
index 16d3e7cb99ce..c4a378ec5ceb 100644
--- a/sdk/core/Azure.Core/api/Azure.Core.net6.0.cs
+++ b/sdk/core/Azure.Core/api/Azure.Core.net6.0.cs
@@ -23,12 +23,11 @@ public static partial class AzureCoreExtensions
public static object? ToObjectFromJson(this System.BinaryData data) { throw null; }
public static T? ToObject(this System.BinaryData data, Azure.Core.Serialization.ObjectSerializer serializer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
}
- public partial class AzureKeyCredential
+ public partial class AzureKeyCredential : System.ClientModel.KeyCredential
{
- public AzureKeyCredential(string key) { }
+ public AzureKeyCredential(string key) : base (default(string)) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public string Key { get { throw null; } }
- public void Update(string key) { }
}
public partial class AzureNamedKeyCredential
{
@@ -115,16 +114,16 @@ public MatchConditions() { }
public Azure.ETag? IfMatch { get { throw null; } set { } }
public Azure.ETag? IfNoneMatch { get { throw null; } set { } }
}
- public abstract partial class NullableResponse
+ public abstract partial class NullableResponse : System.ClientModel.OptionalClientResult
{
- protected NullableResponse() { }
- public abstract bool HasValue { get; }
- public abstract T? Value { get; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ protected NullableResponse() : base (default(T), default(System.ClientModel.Primitives.PipelineResponse)) { }
+ protected NullableResponse(T? value, Azure.Response response) : base (default(T), default(System.ClientModel.Primitives.PipelineResponse)) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override bool Equals(object? obj) { throw null; }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override int GetHashCode() { throw null; }
- public abstract Azure.Response GetRawResponse();
+ public virtual new Azure.Response GetRawResponse() { throw null; }
public override string ToString() { throw null; }
}
public abstract partial class Operation
@@ -208,49 +207,47 @@ public RequestConditions() { }
public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
}
- public partial class RequestContext
+ public partial class RequestContext : System.ClientModel.Primitives.RequestOptions
{
public RequestContext() { }
- public System.Threading.CancellationToken CancellationToken { get { throw null; } set { } }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public Azure.ErrorOptions ErrorOptions { get { throw null; } set { } }
public void AddClassifier(Azure.Core.ResponseClassificationHandler classifier) { }
public void AddClassifier(int statusCode, bool isError) { }
public void AddPolicy(Azure.Core.Pipeline.HttpPipelinePolicy policy, Azure.Core.HttpPipelinePosition position) { }
public static implicit operator Azure.RequestContext (Azure.ErrorOptions options) { throw null; }
}
- public partial class RequestFailedException : System.Exception, System.Runtime.Serialization.ISerializable
+ public partial class RequestFailedException : System.ClientModel.ClientRequestException, System.Runtime.Serialization.ISerializable
{
- public RequestFailedException(Azure.Response response) { }
- public RequestFailedException(Azure.Response response, System.Exception? innerException) { }
- public RequestFailedException(Azure.Response response, System.Exception? innerException, Azure.Core.RequestFailedDetailsParser? detailsParser) { }
+ public RequestFailedException(Azure.Response response) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
+ public RequestFailedException(Azure.Response response, System.Exception? innerException) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
+ public RequestFailedException(Azure.Response response, System.Exception? innerException, Azure.Core.RequestFailedDetailsParser? detailsParser) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public RequestFailedException(int status, string message) { }
+ public RequestFailedException(int status, string message) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public RequestFailedException(int status, string message, System.Exception? innerException) { }
+ public RequestFailedException(int status, string message, System.Exception? innerException) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public RequestFailedException(int status, string message, string? errorCode, System.Exception? innerException) { }
- protected RequestFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
- public RequestFailedException(string message) { }
- public RequestFailedException(string message, System.Exception? innerException) { }
+ public RequestFailedException(int status, string message, string? errorCode, System.Exception? innerException) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
+ protected RequestFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
+ public RequestFailedException(string message) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
+ public RequestFailedException(string message, System.Exception? innerException) : base (default(System.ClientModel.Primitives.PipelineResponse), default(string), default(System.Exception)) { }
public string? ErrorCode { get { throw null; } }
- public int Status { get { throw null; } }
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
- public Azure.Response? GetRawResponse() { throw null; }
+ public new Azure.Response? GetRawResponse() { throw null; }
}
- public abstract partial class Response : System.IDisposable
+ public abstract partial class Response : System.ClientModel.Primitives.PipelineResponse
{
protected Response() { }
public abstract string ClientRequestId { get; set; }
- public virtual System.BinaryData Content { get { throw null; } }
- public abstract System.IO.Stream? ContentStream { get; set; }
- public virtual Azure.Core.ResponseHeaders Headers { get { throw null; } }
- public virtual bool IsError { get { throw null; } }
- public abstract string ReasonPhrase { get; }
- public abstract int Status { get; }
+ public virtual new System.BinaryData Content { get { throw null; } }
+ public virtual new Azure.Core.ResponseHeaders Headers { get { throw null; } }
protected internal abstract bool ContainsHeader(string name);
- public abstract void Dispose();
protected internal abstract System.Collections.Generic.IEnumerable EnumerateHeaders();
public static Azure.Response FromValue(T value, Azure.Response response) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ protected override System.ClientModel.Primitives.MessageHeaders GetHeadersCore() { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ protected sealed override void SetIsErrorCore(bool isError) { }
public override string ToString() { throw null; }
protected internal abstract bool TryGetHeader(string name, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] out string? value);
protected internal abstract bool TryGetHeaderValues(string name, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] out System.Collections.Generic.IEnumerable? values);
@@ -264,7 +261,9 @@ public ResponseError(string? code, string? message) { }
}
public abstract partial class Response : Azure.NullableResponse
{
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
protected Response() { }
+ protected Response(T value, Azure.Response response) { }
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public override bool HasValue { get { throw null; } }
public override T Value { get { throw null; } }
@@ -481,23 +480,19 @@ public static partial class Names
public static string XMsRequestId { get { throw null; } }
}
}
- public sealed partial class HttpMessage : System.IDisposable
+ public sealed partial class HttpMessage : System.ClientModel.Primitives.PipelineMessage
{
- public HttpMessage(Azure.Core.Request request, Azure.Core.ResponseClassifier responseClassifier) { }
+ public HttpMessage(Azure.Core.Request request, Azure.Core.ResponseClassifier responseClassifier) : base (default(System.ClientModel.Primitives.PipelineRequest)) { }
public bool BufferResponse { get { throw null; } set { } }
- public System.Threading.CancellationToken CancellationToken { get { throw null; } }
public bool HasResponse { get { throw null; } }
public System.TimeSpan? NetworkTimeout { get { throw null; } set { } }
public Azure.Core.MessageProcessingContext ProcessingContext { get { throw null; } }
- public Azure.Core.Request Request { get { throw null; } }
- public Azure.Response Response { get { throw null; } set { } }
+ public new Azure.Core.Request Request { get { throw null; } }
+ public new Azure.Response Response { get { throw null; } set { } }
public Azure.Core.ResponseClassifier ResponseClassifier { get { throw null; } set { } }
- public void Dispose() { }
public System.IO.Stream? ExtractResponseContent() { throw null; }
public void SetProperty(string name, object value) { }
- public void SetProperty(System.Type type, object value) { }
public bool TryGetProperty(string name, out object? value) { throw null; }
- public bool TryGetProperty(System.Type type, out object? value) { throw null; }
}
public enum HttpPipelinePosition
{
@@ -518,28 +513,34 @@ public static partial class MultipartResponse
public static Azure.Response[] Parse(Azure.Response response, bool expectCrLf, System.Threading.CancellationToken cancellationToken) { throw null; }
public static System.Threading.Tasks.Task ParseAsync(Azure.Response response, bool expectCrLf, System.Threading.CancellationToken cancellationToken) { throw null; }
}
- public abstract partial class Request : System.IDisposable
+ public abstract partial class Request : System.ClientModel.Primitives.PipelineRequest
{
protected Request() { }
- public abstract string ClientRequestId { get; set; }
- public virtual Azure.Core.RequestContent? Content { get { throw null; } set { } }
- public Azure.Core.RequestHeaders Headers { get { throw null; } }
- public virtual Azure.Core.RequestMethod Method { get { throw null; } set { } }
- public virtual Azure.Core.RequestUriBuilder Uri { get { throw null; } set { } }
+ public virtual string ClientRequestId { get { throw null; } set { } }
+ public virtual new Azure.Core.RequestContent? Content { get { throw null; } set { } }
+ public new Azure.Core.RequestHeaders Headers { get { throw null; } }
+ public virtual new Azure.Core.RequestMethod Method { get { throw null; } set { } }
+ public virtual new Azure.Core.RequestUriBuilder Uri { get { throw null; } set { } }
protected internal abstract void AddHeader(string name, string value);
protected internal abstract bool ContainsHeader(string name);
- public abstract void Dispose();
protected internal abstract System.Collections.Generic.IEnumerable EnumerateHeaders();
+ protected override System.ClientModel.BinaryContent? GetContentCore() { throw null; }
+ protected override System.ClientModel.Primitives.MessageHeaders GetHeadersCore() { throw null; }
+ protected override string GetMethodCore() { throw null; }
+ protected override System.Uri GetUriCore() { throw null; }
protected internal abstract bool RemoveHeader(string name);
+ protected override void SetContentCore(System.ClientModel.BinaryContent? content) { }
protected internal virtual void SetHeader(string name, string value) { }
+ protected override void SetMethodCore(string method) { }
+ protected override void SetUriCore(System.Uri uri) { }
protected internal abstract bool TryGetHeader(string name, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] out string? value);
protected internal abstract bool TryGetHeaderValues(string name, [System.Diagnostics.CodeAnalysis.NotNullWhenAttribute(true)] out System.Collections.Generic.IEnumerable? values);
}
- public abstract partial class RequestContent : System.IDisposable
+ public abstract partial class RequestContent : System.ClientModel.BinaryContent
{
protected RequestContent() { }
public static Azure.Core.RequestContent Create(Azure.Core.Serialization.DynamicData content) { throw null; }
- public static Azure.Core.RequestContent Create(System.BinaryData content) { throw null; }
+ public static new Azure.Core.RequestContent Create(System.BinaryData content) { throw null; }
public static Azure.Core.RequestContent Create(System.Buffers.ReadOnlySequence bytes) { throw null; }
public static Azure.Core.RequestContent Create(byte[] bytes) { throw null; }
public static Azure.Core.RequestContent Create(byte[] bytes, int index, int length) { throw null; }
@@ -552,13 +553,10 @@ protected RequestContent() { }
public static Azure.Core.RequestContent Create(object serializable, Azure.Core.Serialization.ObjectSerializer? serializer) { throw null; }
public static Azure.Core.RequestContent Create(System.ReadOnlyMemory bytes) { throw null; }
public static Azure.Core.RequestContent Create(string content) { throw null; }
- public abstract void Dispose();
+ public static Azure.Core.RequestContent Create(T model, System.ClientModel.Primitives.ModelReaderWriterOptions? options = null) where T : System.ClientModel.Primitives.IPersistableModel { throw null; }
public static implicit operator Azure.Core.RequestContent (Azure.Core.Serialization.DynamicData content) { throw null; }
public static implicit operator Azure.Core.RequestContent (System.BinaryData content) { throw null; }
public static implicit operator Azure.Core.RequestContent (string content) { throw null; }
- public abstract bool TryComputeLength(out long length);
- public abstract void WriteTo(System.IO.Stream stream, System.Threading.CancellationToken cancellation);
- public abstract System.Threading.Tasks.Task WriteToAsync(System.IO.Stream stream, System.Threading.CancellationToken cancellation);
}
public abstract partial class RequestFailedDetailsParser
{
@@ -682,7 +680,7 @@ public abstract partial class ResponseClassificationHandler
protected ResponseClassificationHandler() { }
public abstract bool TryClassify(Azure.Core.HttpMessage message, out bool isError);
}
- public partial class ResponseClassifier
+ public partial class ResponseClassifier : System.ClientModel.Primitives.PipelineMessageClassifier
{
public ResponseClassifier() { }
public virtual bool IsErrorResponse(Azure.Core.HttpMessage message) { throw null; }
@@ -1019,11 +1017,13 @@ public HttpPipelineOptions(Azure.Core.ClientOptions options) { }
public Azure.Core.RequestFailedDetailsParser RequestFailedDetailsParser { get { throw null; } set { } }
public Azure.Core.ResponseClassifier? ResponseClassifier { get { throw null; } set { } }
}
- public abstract partial class HttpPipelinePolicy
+ public abstract partial class HttpPipelinePolicy : System.ClientModel.Primitives.PipelinePolicy
{
protected HttpPipelinePolicy() { }
public abstract void Process(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline);
+ public sealed override void Process(System.ClientModel.Primitives.PipelineMessage message, System.Collections.Generic.IReadOnlyList pipeline, int currentIndex) { }
public abstract System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline);
+ public sealed override System.Threading.Tasks.ValueTask ProcessAsync(System.ClientModel.Primitives.PipelineMessage message, System.Collections.Generic.IReadOnlyList pipeline, int currentIndex) { throw null; }
protected static void ProcessNext(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline) { }
protected static System.Threading.Tasks.ValueTask ProcessNextAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline) { throw null; }
}
@@ -1060,14 +1060,14 @@ public static void SetAllowAutoRedirect(Azure.Core.HttpMessage message, bool all
public partial class RetryPolicy : Azure.Core.Pipeline.HttpPipelinePolicy
{
public RetryPolicy(int maxRetries = 3, Azure.Core.DelayStrategy? delayStrategy = null) { }
- protected internal virtual void OnRequestSent(Azure.Core.HttpMessage message) { }
- protected internal virtual System.Threading.Tasks.ValueTask OnRequestSentAsync(Azure.Core.HttpMessage message) { throw null; }
- protected internal virtual void OnSendingRequest(Azure.Core.HttpMessage message) { }
- protected internal virtual System.Threading.Tasks.ValueTask OnSendingRequestAsync(Azure.Core.HttpMessage message) { throw null; }
+ protected virtual void OnRequestSent(Azure.Core.HttpMessage message) { }
+ protected virtual System.Threading.Tasks.ValueTask OnRequestSentAsync(Azure.Core.HttpMessage message) { throw null; }
+ protected virtual void OnSendingRequest(Azure.Core.HttpMessage message) { }
+ protected virtual System.Threading.Tasks.ValueTask OnSendingRequestAsync(Azure.Core.HttpMessage message) { throw null; }
public override void Process(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline) { }
public override System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline) { throw null; }
- protected internal virtual bool ShouldRetry(Azure.Core.HttpMessage message, System.Exception? exception) { throw null; }
- protected internal virtual System.Threading.Tasks.ValueTask ShouldRetryAsync(Azure.Core.HttpMessage message, System.Exception? exception) { throw null; }
+ protected virtual bool ShouldRetry(Azure.Core.HttpMessage message, System.Exception? exception) { throw null; }
+ protected virtual System.Threading.Tasks.ValueTask ShouldRetryAsync(Azure.Core.HttpMessage message, System.Exception? exception) { throw null; }
}
public partial class ServerCertificateCustomValidationArgs
{
diff --git a/sdk/core/Azure.Core/api/Azure.Core.netcoreapp2.1.cs b/sdk/core/Azure.Core/api/Azure.Core.netcoreapp2.1.cs
deleted file mode 100644
index 49995b0e56e3..000000000000
--- a/sdk/core/Azure.Core/api/Azure.Core.netcoreapp2.1.cs
+++ /dev/null
@@ -1,1173 +0,0 @@
-namespace Azure
-{
- public abstract partial class AsyncPageable : System.Collections.Generic.IAsyncEnumerable where T : notnull
- {
- protected AsyncPageable() { }
- protected AsyncPageable(System.Threading.CancellationToken cancellationToken) { }
- protected virtual System.Threading.CancellationToken CancellationToken { get { throw null; } }
- public abstract System.Collections.Generic.IAsyncEnumerable> AsPages(string? continuationToken = null, int? pageSizeHint = default(int?));
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override bool Equals(object? obj) { throw null; }
- public static Azure.AsyncPageable FromPages(System.Collections.Generic.IEnumerable> pages) { throw null; }
- public virtual System.Collections.Generic.IAsyncEnumerator GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override int GetHashCode() { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override string? ToString() { throw null; }
- }
- public static partial class AzureCoreExtensions
- {
- public static dynamic ToDynamicFromJson(this System.BinaryData utf8Json) { throw null; }
- public static dynamic ToDynamicFromJson(this System.BinaryData utf8Json, Azure.Core.Serialization.JsonPropertyNames propertyNameFormat, string dateTimeFormat = "o") { throw null; }
- public static System.Threading.Tasks.ValueTask ToObjectAsync(this System.BinaryData data, Azure.Core.Serialization.ObjectSerializer serializer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public static object? ToObjectFromJson(this System.BinaryData data) { throw null; }
- public static T? ToObject(this System.BinaryData data, Azure.Core.Serialization.ObjectSerializer serializer, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- }
- public partial class AzureKeyCredential
- {
- public AzureKeyCredential(string key) { }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public string Key { get { throw null; } }
- public void Update(string key) { }
- }
- public partial class AzureNamedKeyCredential
- {
- public AzureNamedKeyCredential(string name, string key) { }
- public string Name { get { throw null; } }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public void Deconstruct(out string name, out string key) { throw null; }
- public void Update(string name, string key) { }
- }
- public partial class AzureSasCredential
- {
- public AzureSasCredential(string signature) { }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public string Signature { get { throw null; } }
- public void Update(string signature) { }
- }
- [System.FlagsAttribute]
- public enum ErrorOptions
- {
- Default = 0,
- NoThrow = 1,
- }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public readonly partial struct ETag : System.IEquatable
- {
- private readonly object _dummy;
- private readonly int _dummyPrimitive;
- public static readonly Azure.ETag All;
- public ETag(string etag) { throw null; }
- public bool Equals(Azure.ETag other) { throw null; }
- public override bool Equals(object? obj) { throw null; }
- public bool Equals(string? other) { throw null; }
- public override int GetHashCode() { throw null; }
- public static bool operator ==(Azure.ETag left, Azure.ETag right) { throw null; }
- public static bool operator !=(Azure.ETag left, Azure.ETag right) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override string ToString() { throw null; }
- public string ToString(string format) { throw null; }
- }
- public partial class HttpAuthorization
- {
- public HttpAuthorization(string scheme, string parameter) { }
- public string Parameter { get { throw null; } }
- public string Scheme { get { throw null; } }
- public override string ToString() { throw null; }
- }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public readonly partial struct HttpRange : System.IEquatable
- {
- private readonly int _dummyPrimitive;
- public HttpRange(long offset = (long)0, long? length = default(long?)) { throw null; }
- public long? Length { get { throw null; } }
- public long Offset { get { throw null; } }
- public bool Equals(Azure.HttpRange other) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override bool Equals(object? obj) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override int GetHashCode() { throw null; }
- public static bool operator ==(Azure.HttpRange left, Azure.HttpRange right) { throw null; }
- public static bool operator !=(Azure.HttpRange left, Azure.HttpRange right) { throw null; }
- public override string ToString() { throw null; }
- }
- public partial class JsonPatchDocument
- {
- public JsonPatchDocument() { }
- public JsonPatchDocument(Azure.Core.Serialization.ObjectSerializer serializer) { }
- public JsonPatchDocument(System.ReadOnlyMemory rawDocument) { }
- public JsonPatchDocument(System.ReadOnlyMemory rawDocument, Azure.Core.Serialization.ObjectSerializer serializer) { }
- public void AppendAddRaw(string path, string rawJsonValue) { }
- public void AppendAdd(string path, T value) { }
- public void AppendCopy(string from, string path) { }
- public void AppendMove(string from, string path) { }
- public void AppendRemove(string path) { }
- public void AppendReplaceRaw(string path, string rawJsonValue) { }
- public void AppendReplace(string path, T value) { }
- public void AppendTestRaw(string path, string rawJsonValue) { }
- public void AppendTest(string path, T value) { }
- public System.ReadOnlyMemory ToBytes() { throw null; }
- public override string ToString() { throw null; }
- }
- public partial class MatchConditions
- {
- public MatchConditions() { }
- public Azure.ETag? IfMatch { get { throw null; } set { } }
- public Azure.ETag? IfNoneMatch { get { throw null; } set { } }
- }
- public abstract partial class NullableResponse
- {
- protected NullableResponse() { }
- public abstract bool HasValue { get; }
- public abstract T? Value { get; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override bool Equals(object? obj) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override int GetHashCode() { throw null; }
- public abstract Azure.Response GetRawResponse();
- public override string ToString() { throw null; }
- }
- public abstract partial class Operation
- {
- protected Operation() { }
- public abstract bool HasCompleted { get; }
- public abstract string Id { get; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override bool Equals(object? obj) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override int GetHashCode() { throw null; }
- public abstract Azure.Response GetRawResponse();
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override string? ToString() { throw null; }
- public abstract Azure.Response UpdateStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
- public abstract System.Threading.Tasks.ValueTask UpdateStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
- public virtual Azure.Response WaitForCompletionResponse(Azure.Core.DelayStrategy delayStrategy, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response WaitForCompletionResponse(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response WaitForCompletionResponse(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.ValueTask WaitForCompletionResponseAsync(Azure.Core.DelayStrategy delayStrategy, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.ValueTask WaitForCompletionResponseAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.ValueTask WaitForCompletionResponseAsync(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- }
- public abstract partial class Operation : Azure.Operation where T : notnull
- {
- protected Operation() { }
- public abstract bool HasValue { get; }
- public abstract T Value { get; }
- public virtual Azure.Response WaitForCompletion(Azure.Core.DelayStrategy delayStrategy, System.Threading.CancellationToken cancellationToken) { throw null; }
- public virtual Azure.Response WaitForCompletion(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual Azure.Response WaitForCompletion(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken) { throw null; }
- public virtual System.Threading.Tasks.ValueTask> WaitForCompletionAsync(Azure.Core.DelayStrategy delayStrategy, System.Threading.CancellationToken cancellationToken) { throw null; }
- public virtual System.Threading.Tasks.ValueTask> WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.Threading.Tasks.ValueTask> WaitForCompletionAsync(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override System.Threading.Tasks.ValueTask WaitForCompletionResponseAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override System.Threading.Tasks.ValueTask WaitForCompletionResponseAsync(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- }
- public abstract partial class PageableOperation : Azure.Operation> where T : notnull
- {
- protected PageableOperation() { }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override Azure.AsyncPageable Value { get { throw null; } }
- public abstract Azure.Pageable GetValues(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
- public abstract Azure.AsyncPageable GetValuesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
- }
- public abstract partial class Pageable : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable where T : notnull
- {
- protected Pageable() { }
- protected Pageable(System.Threading.CancellationToken cancellationToken) { }
- protected virtual System.Threading.CancellationToken CancellationToken { get { throw null; } }
- public abstract System.Collections.Generic.IEnumerable> AsPages(string? continuationToken = null, int? pageSizeHint = default(int?));
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override bool Equals(object? obj) { throw null; }
- public static Azure.Pageable FromPages(System.Collections.Generic.IEnumerable> pages) { throw null; }
- public virtual System.Collections.Generic.IEnumerator GetEnumerator() { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override int GetHashCode() { throw null; }
- System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override string? ToString() { throw null; }
- }
- public abstract partial class Page
- {
- protected Page() { }
- public abstract string? ContinuationToken { get; }
- public abstract System.Collections.Generic.IReadOnlyList Values { get; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override bool Equals(object? obj) { throw null; }
- public static Azure.Page FromValues(System.Collections.Generic.IReadOnlyList values, string? continuationToken, Azure.Response response) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override int GetHashCode() { throw null; }
- public abstract Azure.Response GetRawResponse();
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override string? ToString() { throw null; }
- }
- public partial class RequestConditions : Azure.MatchConditions
- {
- public RequestConditions() { }
- public System.DateTimeOffset? IfModifiedSince { get { throw null; } set { } }
- public System.DateTimeOffset? IfUnmodifiedSince { get { throw null; } set { } }
- }
- public partial class RequestContext
- {
- public RequestContext() { }
- public System.Threading.CancellationToken CancellationToken { get { throw null; } set { } }
- public Azure.ErrorOptions ErrorOptions { get { throw null; } set { } }
- public void AddClassifier(Azure.Core.ResponseClassificationHandler classifier) { }
- public void AddClassifier(int statusCode, bool isError) { }
- public void AddPolicy(Azure.Core.Pipeline.HttpPipelinePolicy policy, Azure.Core.HttpPipelinePosition position) { }
- public static implicit operator Azure.RequestContext (Azure.ErrorOptions options) { throw null; }
- }
- public partial class RequestFailedException : System.Exception, System.Runtime.Serialization.ISerializable
- {
- public RequestFailedException(Azure.Response response) { }
- public RequestFailedException(Azure.Response response, System.Exception? innerException) { }
- public RequestFailedException(Azure.Response response, System.Exception? innerException, Azure.Core.RequestFailedDetailsParser? detailsParser) { }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public RequestFailedException(int status, string message) { }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public RequestFailedException(int status, string message, System.Exception? innerException) { }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public RequestFailedException(int status, string message, string? errorCode, System.Exception? innerException) { }
- protected RequestFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
- public RequestFailedException(string message) { }
- public RequestFailedException(string message, System.Exception? innerException) { }
- public string? ErrorCode { get { throw null; } }
- public int Status { get { throw null; } }
- public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
- public Azure.Response? GetRawResponse() { throw null; }
- }
- public abstract partial class Response : System.IDisposable
- {
- protected Response() { }
- public abstract string ClientRequestId { get; set; }
- public virtual System.BinaryData Content { get { throw null; } }
- public abstract System.IO.Stream? ContentStream { get; set; }
- public virtual Azure.Core.ResponseHeaders Headers { get { throw null; } }
- public virtual bool IsError { get { throw null; } }
- public abstract string ReasonPhrase { get; }
- public abstract int Status { get; }
- protected internal abstract bool ContainsHeader(string name);
- public abstract void Dispose();
- protected internal abstract System.Collections.Generic.IEnumerable EnumerateHeaders();
- public static Azure.Response FromValue(T value, Azure.Response response) { throw null; }
- public override string ToString() { throw null; }
- protected internal abstract bool TryGetHeader(string name, out string? value);
- protected internal abstract bool TryGetHeaderValues(string name, out System.Collections.Generic.IEnumerable? values);
- }
- public sealed partial class ResponseError
- {
- public ResponseError(string? code, string? message) { }
- public string? Code { get { throw null; } }
- public string? Message { get { throw null; } }
- public override string ToString() { throw null; }
- }
- public abstract partial class Response : Azure.NullableResponse
- {
- protected Response() { }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override bool HasValue { get { throw null; } }
- public override T Value { get { throw null; } }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override bool Equals(object? obj) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override int GetHashCode() { throw null; }
- public static implicit operator T (Azure.Response response) { throw null; }
- }
- public partial class SyncAsyncEventArgs : System.EventArgs
- {
- public SyncAsyncEventArgs(bool isRunningSynchronously, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { }
- public System.Threading.CancellationToken CancellationToken { get { throw null; } }
- public bool IsRunningSynchronously { get { throw null; } }
- }
- public enum WaitUntil
- {
- Completed = 0,
- Started = 1,
- }
-}
-namespace Azure.Core
-{
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public partial struct AccessToken
- {
- private object _dummy;
- private int _dummyPrimitive;
- public AccessToken(string accessToken, System.DateTimeOffset expiresOn) { throw null; }
- public System.DateTimeOffset ExpiresOn { get { throw null; } }
- public string Token { get { throw null; } }
- public override bool Equals(object? obj) { throw null; }
- public override int GetHashCode() { throw null; }
- }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public readonly partial struct AzureLocation : System.IEquatable
- {
- private readonly object _dummy;
- private readonly int _dummyPrimitive;
- public AzureLocation(string location) { throw null; }
- public AzureLocation(string name, string displayName) { throw null; }
- public static Azure.Core.AzureLocation AustraliaCentral { get { throw null; } }
- public static Azure.Core.AzureLocation AustraliaCentral2 { get { throw null; } }
- public static Azure.Core.AzureLocation AustraliaEast { get { throw null; } }
- public static Azure.Core.AzureLocation AustraliaSoutheast { get { throw null; } }
- public static Azure.Core.AzureLocation BrazilSouth { get { throw null; } }
- public static Azure.Core.AzureLocation BrazilSoutheast { get { throw null; } }
- public static Azure.Core.AzureLocation CanadaCentral { get { throw null; } }
- public static Azure.Core.AzureLocation CanadaEast { get { throw null; } }
- public static Azure.Core.AzureLocation CentralIndia { get { throw null; } }
- public static Azure.Core.AzureLocation CentralUS { get { throw null; } }
- public static Azure.Core.AzureLocation ChinaEast { get { throw null; } }
- public static Azure.Core.AzureLocation ChinaEast2 { get { throw null; } }
- public static Azure.Core.AzureLocation ChinaNorth { get { throw null; } }
- public static Azure.Core.AzureLocation ChinaNorth2 { get { throw null; } }
- public string? DisplayName { get { throw null; } }
- public static Azure.Core.AzureLocation EastAsia { get { throw null; } }
- public static Azure.Core.AzureLocation EastUS { get { throw null; } }
- public static Azure.Core.AzureLocation EastUS2 { get { throw null; } }
- public static Azure.Core.AzureLocation FranceCentral { get { throw null; } }
- public static Azure.Core.AzureLocation FranceSouth { get { throw null; } }
- public static Azure.Core.AzureLocation GermanyCentral { get { throw null; } }
- public static Azure.Core.AzureLocation GermanyNorth { get { throw null; } }
- public static Azure.Core.AzureLocation GermanyNorthEast { get { throw null; } }
- public static Azure.Core.AzureLocation GermanyWestCentral { get { throw null; } }
- public static Azure.Core.AzureLocation JapanEast { get { throw null; } }
- public static Azure.Core.AzureLocation JapanWest { get { throw null; } }
- public static Azure.Core.AzureLocation KoreaCentral { get { throw null; } }
- public static Azure.Core.AzureLocation KoreaSouth { get { throw null; } }
- public string Name { get { throw null; } }
- public static Azure.Core.AzureLocation NorthCentralUS { get { throw null; } }
- public static Azure.Core.AzureLocation NorthEurope { get { throw null; } }
- public static Azure.Core.AzureLocation NorwayEast { get { throw null; } }
- public static Azure.Core.AzureLocation NorwayWest { get { throw null; } }
- public static Azure.Core.AzureLocation QatarCentral { get { throw null; } }
- public static Azure.Core.AzureLocation SouthAfricaNorth { get { throw null; } }
- public static Azure.Core.AzureLocation SouthAfricaWest { get { throw null; } }
- public static Azure.Core.AzureLocation SouthCentralUS { get { throw null; } }
- public static Azure.Core.AzureLocation SoutheastAsia { get { throw null; } }
- public static Azure.Core.AzureLocation SouthIndia { get { throw null; } }
- public static Azure.Core.AzureLocation SwedenCentral { get { throw null; } }
- public static Azure.Core.AzureLocation SwitzerlandNorth { get { throw null; } }
- public static Azure.Core.AzureLocation SwitzerlandWest { get { throw null; } }
- public static Azure.Core.AzureLocation UAECentral { get { throw null; } }
- public static Azure.Core.AzureLocation UAENorth { get { throw null; } }
- public static Azure.Core.AzureLocation UKSouth { get { throw null; } }
- public static Azure.Core.AzureLocation UKWest { get { throw null; } }
- public static Azure.Core.AzureLocation USDoDCentral { get { throw null; } }
- public static Azure.Core.AzureLocation USDoDEast { get { throw null; } }
- public static Azure.Core.AzureLocation USGovArizona { get { throw null; } }
- public static Azure.Core.AzureLocation USGovIowa { get { throw null; } }
- public static Azure.Core.AzureLocation USGovTexas { get { throw null; } }
- public static Azure.Core.AzureLocation USGovVirginia { get { throw null; } }
- public static Azure.Core.AzureLocation WestCentralUS { get { throw null; } }
- public static Azure.Core.AzureLocation WestEurope { get { throw null; } }
- public static Azure.Core.AzureLocation WestIndia { get { throw null; } }
- public static Azure.Core.AzureLocation WestUS { get { throw null; } }
- public static Azure.Core.AzureLocation WestUS2 { get { throw null; } }
- public static Azure.Core.AzureLocation WestUS3 { get { throw null; } }
- public bool Equals(Azure.Core.AzureLocation other) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override bool Equals(object? obj) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override int GetHashCode() { throw null; }
- public static bool operator ==(Azure.Core.AzureLocation left, Azure.Core.AzureLocation right) { throw null; }
- public static implicit operator string (Azure.Core.AzureLocation location) { throw null; }
- public static implicit operator Azure.Core.AzureLocation (string location) { throw null; }
- public static bool operator !=(Azure.Core.AzureLocation left, Azure.Core.AzureLocation right) { throw null; }
- public override string ToString() { throw null; }
- }
- public abstract partial class ClientOptions
- {
- protected ClientOptions() { }
- protected ClientOptions(Azure.Core.DiagnosticsOptions? diagnostics) { }
- public static Azure.Core.ClientOptions Default { get { throw null; } }
- public Azure.Core.DiagnosticsOptions Diagnostics { get { throw null; } }
- public Azure.Core.RetryOptions Retry { get { throw null; } }
- public Azure.Core.Pipeline.HttpPipelinePolicy? RetryPolicy { get { throw null; } set { } }
- public Azure.Core.Pipeline.HttpPipelineTransport Transport { get { throw null; } set { } }
- public void AddPolicy(Azure.Core.Pipeline.HttpPipelinePolicy policy, Azure.Core.HttpPipelinePosition position) { }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override bool Equals(object? obj) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override int GetHashCode() { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override string? ToString() { throw null; }
- }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public readonly partial struct ContentType : System.IEquatable, System.IEquatable
- {
- private readonly object _dummy;
- private readonly int _dummyPrimitive;
- public ContentType(string contentType) { throw null; }
- public static Azure.Core.ContentType ApplicationJson { get { throw null; } }
- public static Azure.Core.ContentType ApplicationOctetStream { get { throw null; } }
- public static Azure.Core.ContentType TextPlain { get { throw null; } }
- public bool Equals(Azure.Core.ContentType other) { throw null; }
- public override bool Equals(object? obj) { throw null; }
- public bool Equals(string? other) { throw null; }
- public override int GetHashCode() { throw null; }
- public static bool operator ==(Azure.Core.ContentType left, Azure.Core.ContentType right) { throw null; }
- public static implicit operator Azure.Core.ContentType (string contentType) { throw null; }
- public static bool operator !=(Azure.Core.ContentType left, Azure.Core.ContentType right) { throw null; }
- public override string ToString() { throw null; }
- }
- public abstract partial class DelayStrategy
- {
- protected DelayStrategy(System.TimeSpan? maxDelay = default(System.TimeSpan?), double jitterFactor = 0.2) { }
- public static Azure.Core.DelayStrategy CreateExponentialDelayStrategy(System.TimeSpan? initialDelay = default(System.TimeSpan?), System.TimeSpan? maxDelay = default(System.TimeSpan?)) { throw null; }
- public static Azure.Core.DelayStrategy CreateFixedDelayStrategy(System.TimeSpan? delay = default(System.TimeSpan?)) { throw null; }
- public System.TimeSpan GetNextDelay(Azure.Response? response, int retryNumber) { throw null; }
- protected abstract System.TimeSpan GetNextDelayCore(Azure.Response? response, int retryNumber);
- protected static System.TimeSpan Max(System.TimeSpan val1, System.TimeSpan val2) { throw null; }
- protected static System.TimeSpan Min(System.TimeSpan val1, System.TimeSpan val2) { throw null; }
- }
- public static partial class DelegatedTokenCredential
- {
- public static Azure.Core.TokenCredential Create(System.Func getToken) { throw null; }
- public static Azure.Core.TokenCredential Create(System.Func getToken, System.Func> getTokenAsync) { throw null; }
- }
- public partial class DiagnosticsOptions
- {
- protected internal DiagnosticsOptions() { }
- public string? ApplicationId { get { throw null; } set { } }
- public static string? DefaultApplicationId { get { throw null; } set { } }
- public bool IsDistributedTracingEnabled { get { throw null; } set { } }
- public bool IsLoggingContentEnabled { get { throw null; } set { } }
- public bool IsLoggingEnabled { get { throw null; } set { } }
- public bool IsTelemetryEnabled { get { throw null; } set { } }
- public int LoggedContentSizeLimit { get { throw null; } set { } }
- public System.Collections.Generic.IList LoggedHeaderNames { get { throw null; } }
- public System.Collections.Generic.IList LoggedQueryParameters { get { throw null; } }
- }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public readonly partial struct HttpHeader : System.IEquatable
- {
- private readonly object _dummy;
- private readonly int _dummyPrimitive;
- public HttpHeader(string name, string value) { throw null; }
- public string Name { get { throw null; } }
- public string Value { get { throw null; } }
- public bool Equals(Azure.Core.HttpHeader other) { throw null; }
- public override bool Equals(object? obj) { throw null; }
- public override int GetHashCode() { throw null; }
- public override string ToString() { throw null; }
- public static partial class Common
- {
- public static readonly Azure.Core.HttpHeader FormUrlEncodedContentType;
- public static readonly Azure.Core.HttpHeader JsonAccept;
- public static readonly Azure.Core.HttpHeader JsonContentType;
- public static readonly Azure.Core.HttpHeader OctetStreamContentType;
- }
- public static partial class Names
- {
- public static string Accept { get { throw null; } }
- public static string Authorization { get { throw null; } }
- public static string ContentDisposition { get { throw null; } }
- public static string ContentLength { get { throw null; } }
- public static string ContentType { get { throw null; } }
- public static string Date { get { throw null; } }
- public static string ETag { get { throw null; } }
- public static string Host { get { throw null; } }
- public static string IfMatch { get { throw null; } }
- public static string IfModifiedSince { get { throw null; } }
- public static string IfNoneMatch { get { throw null; } }
- public static string IfUnmodifiedSince { get { throw null; } }
- public static string Prefer { get { throw null; } }
- public static string Range { get { throw null; } }
- public static string Referer { get { throw null; } }
- public static string UserAgent { get { throw null; } }
- public static string WwwAuthenticate { get { throw null; } }
- public static string XMsDate { get { throw null; } }
- public static string XMsRange { get { throw null; } }
- public static string XMsRequestId { get { throw null; } }
- }
- }
- public sealed partial class HttpMessage : System.IDisposable
- {
- public HttpMessage(Azure.Core.Request request, Azure.Core.ResponseClassifier responseClassifier) { }
- public bool BufferResponse { get { throw null; } set { } }
- public System.Threading.CancellationToken CancellationToken { get { throw null; } }
- public bool HasResponse { get { throw null; } }
- public System.TimeSpan? NetworkTimeout { get { throw null; } set { } }
- public Azure.Core.MessageProcessingContext ProcessingContext { get { throw null; } }
- public Azure.Core.Request Request { get { throw null; } }
- public Azure.Response Response { get { throw null; } set { } }
- public Azure.Core.ResponseClassifier ResponseClassifier { get { throw null; } set { } }
- public void Dispose() { }
- public System.IO.Stream? ExtractResponseContent() { throw null; }
- public void SetProperty(string name, object value) { }
- public void SetProperty(System.Type type, object value) { }
- public bool TryGetProperty(string name, out object? value) { throw null; }
- public bool TryGetProperty(System.Type type, out object? value) { throw null; }
- }
- public enum HttpPipelinePosition
- {
- PerCall = 0,
- PerRetry = 1,
- BeforeTransport = 2,
- }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public readonly partial struct MessageProcessingContext
- {
- private readonly object _dummy;
- private readonly int _dummyPrimitive;
- public int RetryNumber { get { throw null; } set { } }
- public System.DateTimeOffset StartTime { get { throw null; } }
- }
- public static partial class MultipartResponse
- {
- public static Azure.Response[] Parse(Azure.Response response, bool expectCrLf, System.Threading.CancellationToken cancellationToken) { throw null; }
- public static System.Threading.Tasks.Task ParseAsync(Azure.Response response, bool expectCrLf, System.Threading.CancellationToken cancellationToken) { throw null; }
- }
- public abstract partial class Request : System.IDisposable
- {
- protected Request() { }
- public abstract string ClientRequestId { get; set; }
- public virtual Azure.Core.RequestContent? Content { get { throw null; } set { } }
- public Azure.Core.RequestHeaders Headers { get { throw null; } }
- public virtual Azure.Core.RequestMethod Method { get { throw null; } set { } }
- public virtual Azure.Core.RequestUriBuilder Uri { get { throw null; } set { } }
- protected internal abstract void AddHeader(string name, string value);
- protected internal abstract bool ContainsHeader(string name);
- public abstract void Dispose();
- protected internal abstract System.Collections.Generic.IEnumerable EnumerateHeaders();
- protected internal abstract bool RemoveHeader(string name);
- protected internal virtual void SetHeader(string name, string value) { }
- protected internal abstract bool TryGetHeader(string name, out string? value);
- protected internal abstract bool TryGetHeaderValues(string name, out System.Collections.Generic.IEnumerable? values);
- }
- public abstract partial class RequestContent : System.IDisposable
- {
- protected RequestContent() { }
- public static Azure.Core.RequestContent Create(Azure.Core.Serialization.DynamicData content) { throw null; }
- public static Azure.Core.RequestContent Create(System.BinaryData content) { throw null; }
- public static Azure.Core.RequestContent Create(System.Buffers.ReadOnlySequence bytes) { throw null; }
- public static Azure.Core.RequestContent Create(byte[] bytes) { throw null; }
- public static Azure.Core.RequestContent Create(byte[] bytes, int index, int length) { throw null; }
- public static Azure.Core.RequestContent Create(System.IO.Stream stream) { throw null; }
- public static Azure.Core.RequestContent Create(object serializable) { throw null; }
- public static Azure.Core.RequestContent Create(object serializable, Azure.Core.Serialization.JsonPropertyNames propertyNameFormat, string dateTimeFormat = "o") { throw null; }
- public static Azure.Core.RequestContent Create(object serializable, Azure.Core.Serialization.ObjectSerializer? serializer) { throw null; }
- public static Azure.Core.RequestContent Create(System.ReadOnlyMemory bytes) { throw null; }
- public static Azure.Core.RequestContent Create(string content) { throw null; }
- public abstract void Dispose();
- public static implicit operator Azure.Core.RequestContent (Azure.Core.Serialization.DynamicData content) { throw null; }
- public static implicit operator Azure.Core.RequestContent (System.BinaryData content) { throw null; }
- public static implicit operator Azure.Core.RequestContent (string content) { throw null; }
- public abstract bool TryComputeLength(out long length);
- public abstract void WriteTo(System.IO.Stream stream, System.Threading.CancellationToken cancellation);
- public abstract System.Threading.Tasks.Task WriteToAsync(System.IO.Stream stream, System.Threading.CancellationToken cancellation);
- }
- public abstract partial class RequestFailedDetailsParser
- {
- protected RequestFailedDetailsParser() { }
- public abstract bool TryParse(Azure.Response response, out Azure.ResponseError? error, out System.Collections.Generic.IDictionary? data);
- }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public readonly partial struct RequestHeaders : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
- {
- private readonly object _dummy;
- private readonly int _dummyPrimitive;
- public void Add(Azure.Core.HttpHeader header) { }
- public void Add(string name, string value) { }
- public bool Contains(string name) { throw null; }
- public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; }
- public bool Remove(string name) { throw null; }
- public void SetValue(string name, string value) { }
- System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
- public bool TryGetValue(string name, out string? value) { throw null; }
- public bool TryGetValues(string name, out System.Collections.Generic.IEnumerable? values) { throw null; }
- }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public readonly partial struct RequestMethod : System.IEquatable
- {
- private readonly object _dummy;
- private readonly int _dummyPrimitive;
- public RequestMethod(string method) { throw null; }
- public static Azure.Core.RequestMethod Delete { get { throw null; } }
- public static Azure.Core.RequestMethod Get { get { throw null; } }
- public static Azure.Core.RequestMethod Head { get { throw null; } }
- public string Method { get { throw null; } }
- public static Azure.Core.RequestMethod Options { get { throw null; } }
- public static Azure.Core.RequestMethod Patch { get { throw null; } }
- public static Azure.Core.RequestMethod Post { get { throw null; } }
- public static Azure.Core.RequestMethod Put { get { throw null; } }
- public static Azure.Core.RequestMethod Trace { get { throw null; } }
- public bool Equals(Azure.Core.RequestMethod other) { throw null; }
- public override bool Equals(object? obj) { throw null; }
- public override int GetHashCode() { throw null; }
- public static bool operator ==(Azure.Core.RequestMethod left, Azure.Core.RequestMethod right) { throw null; }
- public static bool operator !=(Azure.Core.RequestMethod left, Azure.Core.RequestMethod right) { throw null; }
- public static Azure.Core.RequestMethod Parse(string method) { throw null; }
- public override string ToString() { throw null; }
- }
- public partial class RequestUriBuilder
- {
- public RequestUriBuilder() { }
- protected bool HasPath { get { throw null; } }
- protected bool HasQuery { get { throw null; } }
- public string? Host { get { throw null; } set { } }
- public string Path { get { throw null; } set { } }
- public string PathAndQuery { get { throw null; } }
- public int Port { get { throw null; } set { } }
- public string Query { get { throw null; } set { } }
- public string? Scheme { get { throw null; } set { } }
- public void AppendPath(System.ReadOnlySpan value, bool escape) { }
- public void AppendPath(string value) { }
- public void AppendPath(string value, bool escape) { }
- public void AppendQuery(System.ReadOnlySpan name, System.ReadOnlySpan value, bool escapeValue) { }
- public void AppendQuery(string name, string value) { }
- public void AppendQuery(string name, string value, bool escapeValue) { }
- public void Reset(System.Uri value) { }
- public override string ToString() { throw null; }
- public System.Uri ToUri() { throw null; }
- }
- public sealed partial class ResourceIdentifier : System.IComparable, System.IEquatable
- {
- public static readonly Azure.Core.ResourceIdentifier Root;
- public ResourceIdentifier(string resourceId) { }
- public Azure.Core.AzureLocation? Location { get { throw null; } }
- public string Name { get { throw null; } }
- public Azure.Core.ResourceIdentifier? Parent { get { throw null; } }
- public string? Provider { get { throw null; } }
- public string? ResourceGroupName { get { throw null; } }
- public Azure.Core.ResourceType ResourceType { get { throw null; } }
- public string? SubscriptionId { get { throw null; } }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public Azure.Core.ResourceIdentifier AppendChildResource(string childResourceType, string childResourceName) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public Azure.Core.ResourceIdentifier AppendProviderResource(string providerNamespace, string resourceType, string resourceName) { throw null; }
- public int CompareTo(Azure.Core.ResourceIdentifier? other) { throw null; }
- public bool Equals(Azure.Core.ResourceIdentifier? other) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override bool Equals(object? obj) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override int GetHashCode() { throw null; }
- public static bool operator ==(Azure.Core.ResourceIdentifier left, Azure.Core.ResourceIdentifier right) { throw null; }
- public static bool operator >(Azure.Core.ResourceIdentifier left, Azure.Core.ResourceIdentifier right) { throw null; }
- public static bool operator >=(Azure.Core.ResourceIdentifier left, Azure.Core.ResourceIdentifier right) { throw null; }
- public static implicit operator string (Azure.Core.ResourceIdentifier id) { throw null; }
- public static bool operator !=(Azure.Core.ResourceIdentifier left, Azure.Core.ResourceIdentifier right) { throw null; }
- public static bool operator <(Azure.Core.ResourceIdentifier left, Azure.Core.ResourceIdentifier right) { throw null; }
- public static bool operator <=(Azure.Core.ResourceIdentifier left, Azure.Core.ResourceIdentifier right) { throw null; }
- public static Azure.Core.ResourceIdentifier Parse(string input) { throw null; }
- public override string ToString() { throw null; }
- public static bool TryParse(string? input, out Azure.Core.ResourceIdentifier? result) { throw null; }
- }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public readonly partial struct ResourceType : System.IEquatable
- {
- private readonly object _dummy;
- private readonly int _dummyPrimitive;
- public ResourceType(string resourceType) { throw null; }
- public string Namespace { get { throw null; } }
- public string Type { get { throw null; } }
- public bool Equals(Azure.Core.ResourceType other) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override bool Equals(object? other) { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public override int GetHashCode() { throw null; }
- [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
- public string GetLastType() { throw null; }
- public static bool operator ==(Azure.Core.ResourceType left, Azure.Core.ResourceType right) { throw null; }
- public static implicit operator string (Azure.Core.ResourceType resourceType) { throw null; }
- public static implicit operator Azure.Core.ResourceType (string resourceType) { throw null; }
- public static bool operator !=(Azure.Core.ResourceType left, Azure.Core.ResourceType right) { throw null; }
- public override string ToString() { throw null; }
- }
- public abstract partial class ResponseClassificationHandler
- {
- protected ResponseClassificationHandler() { }
- public abstract bool TryClassify(Azure.Core.HttpMessage message, out bool isError);
- }
- public partial class ResponseClassifier
- {
- public ResponseClassifier() { }
- public virtual bool IsErrorResponse(Azure.Core.HttpMessage message) { throw null; }
- public virtual bool IsRetriable(Azure.Core.HttpMessage message, System.Exception exception) { throw null; }
- public virtual bool IsRetriableException(System.Exception exception) { throw null; }
- public virtual bool IsRetriableResponse(Azure.Core.HttpMessage message) { throw null; }
- }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public readonly partial struct ResponseHeaders : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable
- {
- private readonly object _dummy;
- private readonly int _dummyPrimitive;
- public int? ContentLength { get { throw null; } }
- public long? ContentLengthLong { get { throw null; } }
- public string? ContentType { get { throw null; } }
- public System.DateTimeOffset? Date { get { throw null; } }
- public Azure.ETag? ETag { get { throw null; } }
- public string? RequestId { get { throw null; } }
- public bool Contains(string name) { throw null; }
- public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; }
- System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
- public bool TryGetValue(string name, out string? value) { throw null; }
- public bool TryGetValues(string name, out System.Collections.Generic.IEnumerable? values) { throw null; }
- }
- public enum RetryMode
- {
- Fixed = 0,
- Exponential = 1,
- }
- public partial class RetryOptions
- {
- internal RetryOptions() { }
- public System.TimeSpan Delay { get { throw null; } set { } }
- public System.TimeSpan MaxDelay { get { throw null; } set { } }
- public int MaxRetries { get { throw null; } set { } }
- public Azure.Core.RetryMode Mode { get { throw null; } set { } }
- public System.TimeSpan NetworkTimeout { get { throw null; } set { } }
- }
- public partial class StatusCodeClassifier : Azure.Core.ResponseClassifier
- {
- public StatusCodeClassifier(System.ReadOnlySpan successStatusCodes) { }
- public override bool IsErrorResponse(Azure.Core.HttpMessage message) { throw null; }
- }
- public delegate System.Threading.Tasks.Task SyncAsyncEventHandler(T e) where T : Azure.SyncAsyncEventArgs;
- public partial class TelemetryDetails
- {
- public TelemetryDetails(System.Reflection.Assembly assembly, string? applicationId = null) { }
- public string? ApplicationId { get { throw null; } }
- public System.Reflection.Assembly Assembly { get { throw null; } }
- public void Apply(Azure.Core.HttpMessage message) { }
- public override string ToString() { throw null; }
- }
- public abstract partial class TokenCredential
- {
- protected TokenCredential() { }
- public abstract Azure.Core.AccessToken GetToken(Azure.Core.TokenRequestContext requestContext, System.Threading.CancellationToken cancellationToken);
- public abstract System.Threading.Tasks.ValueTask GetTokenAsync(Azure.Core.TokenRequestContext requestContext, System.Threading.CancellationToken cancellationToken);
- }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public readonly partial struct TokenRequestContext
- {
- private readonly object _dummy;
- private readonly int _dummyPrimitive;
- public TokenRequestContext(string[] scopes, string? parentRequestId) { throw null; }
- public TokenRequestContext(string[] scopes, string? parentRequestId, string? claims) { throw null; }
- public TokenRequestContext(string[] scopes, string? parentRequestId, string? claims, string? tenantId) { throw null; }
- public TokenRequestContext(string[] scopes, string? parentRequestId = null, string? claims = null, string? tenantId = null, bool isCaeEnabled = false) { throw null; }
- public string? Claims { get { throw null; } }
- public bool IsCaeEnabled { get { throw null; } }
- public string? ParentRequestId { get { throw null; } }
- public string[] Scopes { get { throw null; } }
- public string? TenantId { get { throw null; } }
- }
-}
-namespace Azure.Core.Cryptography
-{
- public partial interface IKeyEncryptionKey
- {
- string KeyId { get; }
- byte[] UnwrapKey(string algorithm, System.ReadOnlyMemory encryptedKey, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
- System.Threading.Tasks.Task UnwrapKeyAsync(string algorithm, System.ReadOnlyMemory encryptedKey, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
- byte[] WrapKey(string algorithm, System.ReadOnlyMemory key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
- System.Threading.Tasks.Task WrapKeyAsync(string algorithm, System.ReadOnlyMemory key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
- }
- public partial interface IKeyEncryptionKeyResolver
- {
- Azure.Core.Cryptography.IKeyEncryptionKey Resolve(string keyId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
- System.Threading.Tasks.Task ResolveAsync(string keyId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
- }
-}
-namespace Azure.Core.Diagnostics
-{
- public partial class AzureEventSourceListener : System.Diagnostics.Tracing.EventListener
- {
- public const string TraitName = "AzureEventSource";
- public const string TraitValue = "true";
- public AzureEventSourceListener(System.Action log, System.Diagnostics.Tracing.EventLevel level) { }
- public static Azure.Core.Diagnostics.AzureEventSourceListener CreateConsoleLogger(System.Diagnostics.Tracing.EventLevel level = System.Diagnostics.Tracing.EventLevel.Informational) { throw null; }
- public static Azure.Core.Diagnostics.AzureEventSourceListener CreateTraceLogger(System.Diagnostics.Tracing.EventLevel level = System.Diagnostics.Tracing.EventLevel.Informational) { throw null; }
- protected sealed override void OnEventSourceCreated(System.Diagnostics.Tracing.EventSource eventSource) { }
- protected sealed override void OnEventWritten(System.Diagnostics.Tracing.EventWrittenEventArgs eventData) { }
- }
-}
-namespace Azure.Core.Extensions
-{
- public partial interface IAzureClientBuilder where TOptions : class
- {
- }
- public partial interface IAzureClientFactoryBuilder
- {
- Azure.Core.Extensions.IAzureClientBuilder RegisterClientFactory(System.Func clientFactory) where TOptions : class;
- }
- public partial interface IAzureClientFactoryBuilderWithConfiguration : Azure.Core.Extensions.IAzureClientFactoryBuilder
- {
- Azure.Core.Extensions.IAzureClientBuilder RegisterClientFactory(TConfiguration configuration) where TOptions : class;
- }
- public partial interface IAzureClientFactoryBuilderWithCredential
- {
- Azure.Core.Extensions.IAzureClientBuilder RegisterClientFactory(System.Func clientFactory, bool requiresCredential = true) where TOptions : class;
- }
-}
-namespace Azure.Core.GeoJson
-{
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public readonly partial struct GeoArray : System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.IEnumerable
- {
- private readonly object _dummy;
- private readonly int _dummyPrimitive;
- public int Count { get { throw null; } }
- public T this[int index] { get { throw null; } }
- public Azure.Core.GeoJson.GeoArray.Enumerator GetEnumerator() { throw null; }
- System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; }
- System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
- [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
- public partial struct Enumerator : System.Collections.Generic.IEnumerator, System.Collections.IEnumerator, System.IDisposable
- {
- private object _dummy;
- private int _dummyPrimitive;
- public T Current { get { throw null; } }
- object System.Collections.IEnumerator.Current { get { throw null; } }
- public void Dispose() { }
- public bool MoveNext() { throw null; }
- public void Reset() { }
- }
- }
- public sealed partial class GeoBoundingBox : System.IEquatable
- {
- public GeoBoundingBox(double west, double south, double east, double north) { }
- public GeoBoundingBox(double west, double south, double east, double north, double? minAltitude, double? maxAltitude) { }
- public double East { get { throw null; } }
- public double this[int index] { get { throw null; } }
- public double? MaxAltitude { get { throw null; } }
- public double? MinAltitude { get { throw null; } }
- public double North { get { throw null; } }
- public double South { get { throw null; } }
- public double West { get { throw null; } }
- public bool Equals(Azure.Core.GeoJson.GeoBoundingBox? other) { throw null; }
- public override bool Equals(object? obj) { throw null; }
- public override int GetHashCode() { throw null; }
- public override string ToString() { throw null; }
- }
- public sealed partial class GeoCollection : Azure.Core.GeoJson.GeoObject, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.IEnumerable
- {
- public GeoCollection(System.Collections.Generic.IEnumerable geometries) { }
- public GeoCollection(System.Collections.Generic.IEnumerable geometries, Azure.Core.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { }
- public int Count { get { throw null; } }
- public Azure.Core.GeoJson.GeoObject this[int index] { get { throw null; } }
- public override Azure.Core.GeoJson.GeoObjectType Type { get { throw null; } }
- public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; }
- System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
- }
- public sealed partial class GeoLinearRing
- {
- public GeoLinearRing(System.Collections.Generic.IEnumerable coordinates) { }
- public Azure.Core.GeoJson.GeoArray Coordinates { get { throw null; } }
- }
- public sealed partial class GeoLineString : Azure.Core.GeoJson.GeoObject
- {
- public GeoLineString(System.Collections.Generic.IEnumerable coordinates) { }
- public GeoLineString(System.Collections.Generic.IEnumerable coordinates, Azure.Core.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { }
- public Azure.Core.GeoJson.GeoArray Coordinates { get { throw null; } }
- public override Azure.Core.GeoJson.GeoObjectType Type { get { throw null; } }
- }
- public sealed partial class GeoLineStringCollection : Azure.Core.GeoJson.GeoObject, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.IEnumerable
- {
- public GeoLineStringCollection(System.Collections.Generic.IEnumerable lines) { }
- public GeoLineStringCollection(System.Collections.Generic.IEnumerable lines, Azure.Core.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { }
- public Azure.Core.GeoJson.GeoArray> Coordinates { get { throw null; } }
- public int Count { get { throw null; } }
- public Azure.Core.GeoJson.GeoLineString this[int index] { get { throw null; } }
- public override Azure.Core.GeoJson.GeoObjectType Type { get { throw null; } }
- public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; }
- System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
- }
- public abstract partial class GeoObject
- {
- internal GeoObject() { }
- public Azure.Core.GeoJson.GeoBoundingBox? BoundingBox { get { throw null; } }
- public abstract Azure.Core.GeoJson.GeoObjectType Type { get; }
- public static Azure.Core.GeoJson.GeoObject Parse(string json) { throw null; }
- public override string ToString() { throw null; }
- public bool TryGetCustomProperty(string name, out object? value) { throw null; }
- }
- public enum GeoObjectType
- {
- Point = 0,
- MultiPoint = 1,
- Polygon = 2,
- MultiPolygon = 3,
- LineString = 4,
- MultiLineString = 5,
- GeometryCollection = 6,
- }
- public sealed partial class GeoPoint : Azure.Core.GeoJson.GeoObject
- {
- public GeoPoint(Azure.Core.GeoJson.GeoPosition position) { }
- public GeoPoint(Azure.Core.GeoJson.GeoPosition position, Azure.Core.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { }
- public GeoPoint(double longitude, double latitude) { }
- public GeoPoint(double longitude, double latitude, double? altitude) { }
- public Azure.Core.GeoJson.GeoPosition Coordinates { get { throw null; } }
- public override Azure.Core.GeoJson.GeoObjectType Type { get { throw null; } }
- }
- public sealed partial class GeoPointCollection : Azure.Core.GeoJson.GeoObject, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.IEnumerable
- {
- public GeoPointCollection(System.Collections.Generic.IEnumerable points) { }
- public GeoPointCollection(System.Collections.Generic.IEnumerable points, Azure.Core.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { }
- public Azure.Core.GeoJson.GeoArray Coordinates { get { throw null; } }
- public int Count { get { throw null; } }
- public Azure.Core.GeoJson.GeoPoint this[int index] { get { throw null; } }
- public override Azure.Core.GeoJson.GeoObjectType Type { get { throw null; } }
- public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; }
- System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
- }
- public sealed partial class GeoPolygon : Azure.Core.GeoJson.GeoObject
- {
- public GeoPolygon(System.Collections.Generic.IEnumerable rings) { }
- public GeoPolygon(System.Collections.Generic.IEnumerable rings, Azure.Core.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { }
- public GeoPolygon(System.Collections.Generic.IEnumerable positions) { }
- public Azure.Core.GeoJson.GeoArray> Coordinates { get { throw null; } }
- public Azure.Core.GeoJson.GeoLinearRing OuterRing { get { throw null; } }
- public System.Collections.Generic.IReadOnlyList