Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
7c0f0a8
initial idea
annelo-msft Sep 13, 2024
28f4311
backup idea
annelo-msft Sep 13, 2024
5e05ef2
export API; comment out tests
annelo-msft Sep 13, 2024
e1b3908
first test passes
annelo-msft Sep 13, 2024
7abecd7
second test passes
annelo-msft Sep 13, 2024
905b6f1
nit
annelo-msft Sep 13, 2024
470a6e8
remove implementation of IEnumerable; consider AsRawResponses method
annelo-msft Sep 13, 2024
d45a4a5
API updates and make first two tests pass
annelo-msft Sep 13, 2024
e2e9460
tidy up
annelo-msft Sep 13, 2024
c202b7f
make ContinuationToken nullable; add test for rehydration
annelo-msft Sep 13, 2024
4d5db79
need to fix some continuation token implementation details; add conv/…
annelo-msft Sep 13, 2024
4de25ea
more tests
annelo-msft Sep 13, 2024
814394f
make async helpers work; add tests
annelo-msft Sep 13, 2024
068e318
just make SSE bits build for now
annelo-msft Sep 13, 2024
2c11326
updates from implementation in OAI and rework tests a bit
annelo-msft Sep 16, 2024
24a0a81
remove cancellation token property
annelo-msft Sep 16, 2024
d27ce8f
add stubs for streaming collection tests
annelo-msft Sep 16, 2024
dfe0a83
add tests for streaming collection
annelo-msft Sep 16, 2024
3e8e7d6
pr fb: make ClientResult _response field readonly
annelo-msft Sep 16, 2024
9e8a608
refdocs and CHANGELOG
annelo-msft Sep 16, 2024
5b135c1
opt AOAI test framework out of build against SCM project during CI pi…
annelo-msft Sep 16, 2024
f4257ab
remove aoai net8.0 target to bypass STJ obsolete error
annelo-msft Sep 16, 2024
c0580aa
try overriding STJ version
annelo-msft Sep 16, 2024
2cd9f15
unpin STJ; try opting AOAI out of SCM project ref for CI
annelo-msft Sep 16, 2024
856af59
Merge remote-tracking branch 'upstream/main' into scm-protocol-collec…
annelo-msft Sep 17, 2024
9409f81
pin Azure.Core package version to avoid updated STJ dependency
annelo-msft Sep 17, 2024
cfd2403
change release date to Tuesday
annelo-msft Sep 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sdk/core/System.ClientModel/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Release History

## 1.1.0 (2024-09-12)
## 1.1.0 (2024-09-17)

### Other Changes

- Removed implicit cast from `string` to `ApiKeyCredential` ([#45554](https://github.com/Azure/azure-sdk-for-net/pull/45554)).
- Upgraded `System.Text.Json` package dependency to 6.0.9 ([#45416](https://github.com/Azure/azure-sdk-for-net/pull/45416)).
- Removed `PageCollection<T>` and related types in favor of using `CollectionResult<T>` and related types as the return values from paginated service endpoints ([#45961](https://github.com/Azure/azure-sdk-for-net/pull/45961)).

## 1.1.0-beta.7 (2024-08-14)

Expand Down
59 changes: 22 additions & 37 deletions sdk/core/System.ClientModel/api/System.ClientModel.net6.0.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,11 @@ public ApiKeyCredential(string key) { }
public void Deconstruct(out string key) { throw null; }
public void Update(string key) { }
}
public abstract partial class AsyncCollectionResult<T> : System.ClientModel.ClientResult, System.Collections.Generic.IAsyncEnumerable<T>
public abstract partial class AsyncCollectionResult<T> : System.ClientModel.Primitives.AsyncCollectionResult, System.Collections.Generic.IAsyncEnumerable<T>
{
protected internal AsyncCollectionResult() { }
protected internal AsyncCollectionResult(System.ClientModel.Primitives.PipelineResponse response) { }
public abstract System.Collections.Generic.IAsyncEnumerator<T> GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
}
public abstract partial class AsyncPageCollection<T> : System.Collections.Generic.IAsyncEnumerable<System.ClientModel.PageResult<T>>
{
protected AsyncPageCollection() { }
public System.Collections.Generic.IAsyncEnumerable<T> GetAllValuesAsync([System.Runtime.CompilerServices.EnumeratorCancellationAttribute] System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
protected abstract System.Collections.Generic.IAsyncEnumerator<System.ClientModel.PageResult<T>> GetAsyncEnumeratorCore(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
public System.Threading.Tasks.Task<System.ClientModel.PageResult<T>> GetCurrentPageAsync() { throw null; }
protected abstract System.Threading.Tasks.Task<System.ClientModel.PageResult<T>> GetCurrentPageAsyncCore();
System.Collections.Generic.IAsyncEnumerator<System.ClientModel.PageResult<T>> System.Collections.Generic.IAsyncEnumerable<System.ClientModel.PageResult<T>>.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; }
public System.Collections.Generic.IAsyncEnumerator<T> GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
protected abstract System.Collections.Generic.IAsyncEnumerable<T> GetValuesFromPageAsync(System.ClientModel.ClientResult page);
}
public abstract partial class BinaryContent : System.IDisposable
{
Expand All @@ -34,13 +25,11 @@ protected BinaryContent() { }
}
public partial class ClientResult
{
protected ClientResult() { }
protected ClientResult(System.ClientModel.Primitives.PipelineResponse response) { }
public static System.ClientModel.ClientResult<T?> FromOptionalValue<T>(T? value, System.ClientModel.Primitives.PipelineResponse response) { throw null; }
public static System.ClientModel.ClientResult FromResponse(System.ClientModel.Primitives.PipelineResponse response) { throw null; }
public static System.ClientModel.ClientResult<T> FromValue<T>(T value, System.ClientModel.Primitives.PipelineResponse response) { throw null; }
public System.ClientModel.Primitives.PipelineResponse GetRawResponse() { throw null; }
protected void SetRawResponse(System.ClientModel.Primitives.PipelineResponse response) { }
}
public partial class ClientResultException : System.Exception
{
Expand All @@ -52,15 +41,15 @@ public ClientResultException(string message, System.ClientModel.Primitives.Pipel
}
public partial class ClientResult<T> : System.ClientModel.ClientResult
{
protected internal ClientResult(T value, System.ClientModel.Primitives.PipelineResponse response) { }
protected internal ClientResult(T value, System.ClientModel.Primitives.PipelineResponse response) : base (default(System.ClientModel.Primitives.PipelineResponse)) { }
public virtual T Value { get { throw null; } }
public static implicit operator T (System.ClientModel.ClientResult<T> result) { throw null; }
}
public abstract partial class CollectionResult<T> : System.ClientModel.ClientResult, System.Collections.Generic.IEnumerable<T>, System.Collections.IEnumerable
public abstract partial class CollectionResult<T> : System.ClientModel.Primitives.CollectionResult, System.Collections.Generic.IEnumerable<T>, System.Collections.IEnumerable
{
protected internal CollectionResult() { }
protected internal CollectionResult(System.ClientModel.Primitives.PipelineResponse response) { }
public abstract System.Collections.Generic.IEnumerator<T> GetEnumerator();
public System.Collections.Generic.IEnumerator<T> GetEnumerator() { throw null; }
protected abstract System.Collections.Generic.IEnumerable<T> GetValuesFromPage(System.ClientModel.ClientResult page);
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
}
public partial class ContinuationToken
Expand All @@ -70,24 +59,6 @@ protected ContinuationToken(System.BinaryData bytes) { }
public static System.ClientModel.ContinuationToken FromBytes(System.BinaryData bytes) { throw null; }
public virtual System.BinaryData ToBytes() { throw null; }
}
public abstract partial class PageCollection<T> : System.Collections.Generic.IEnumerable<System.ClientModel.PageResult<T>>, System.Collections.IEnumerable
{
protected PageCollection() { }
public System.Collections.Generic.IEnumerable<T> GetAllValues() { throw null; }
public System.ClientModel.PageResult<T> GetCurrentPage() { throw null; }
protected abstract System.ClientModel.PageResult<T> GetCurrentPageCore();
protected abstract System.Collections.Generic.IEnumerator<System.ClientModel.PageResult<T>> GetEnumeratorCore();
System.Collections.Generic.IEnumerator<System.ClientModel.PageResult<T>> System.Collections.Generic.IEnumerable<System.ClientModel.PageResult<T>>.GetEnumerator() { throw null; }
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; }
}
public partial class PageResult<T> : System.ClientModel.ClientResult
{
internal PageResult() { }
public System.ClientModel.ContinuationToken? NextPageToken { get { throw null; } }
public System.ClientModel.ContinuationToken PageToken { get { throw null; } }
public System.Collections.Generic.IReadOnlyList<T> Values { get { throw null; } }
public static System.ClientModel.PageResult<T> Create(System.Collections.Generic.IReadOnlyList<T> values, System.ClientModel.ContinuationToken pageToken, System.ClientModel.ContinuationToken? nextPageToken, System.ClientModel.Primitives.PipelineResponse response) { throw null; }
}
}
namespace System.ClientModel.Primitives
{
Expand All @@ -100,6 +71,12 @@ internal ApiKeyAuthenticationPolicy() { }
public sealed override void Process(System.ClientModel.Primitives.PipelineMessage message, System.Collections.Generic.IReadOnlyList<System.ClientModel.Primitives.PipelinePolicy> pipeline, int currentIndex) { }
public sealed override System.Threading.Tasks.ValueTask ProcessAsync(System.ClientModel.Primitives.PipelineMessage message, System.Collections.Generic.IReadOnlyList<System.ClientModel.Primitives.PipelinePolicy> pipeline, int currentIndex) { throw null; }
}
public abstract partial class AsyncCollectionResult
{
protected AsyncCollectionResult() { }
public abstract System.ClientModel.ContinuationToken? GetContinuationToken(System.ClientModel.ClientResult page);
public abstract System.Collections.Generic.IAsyncEnumerable<System.ClientModel.ClientResult> GetRawPagesAsync();
}
[System.FlagsAttribute]
public enum ClientErrorBehaviors
{
Expand Down Expand Up @@ -142,6 +119,12 @@ public sealed override void Process(System.ClientModel.Primitives.PipelineMessag
protected virtual void Wait(System.TimeSpan time, System.Threading.CancellationToken cancellationToken) { }
protected virtual System.Threading.Tasks.Task WaitAsync(System.TimeSpan time, System.Threading.CancellationToken cancellationToken) { throw null; }
}
public abstract partial class CollectionResult
{
protected CollectionResult() { }
public abstract System.ClientModel.ContinuationToken? GetContinuationToken(System.ClientModel.ClientResult page);
public abstract System.Collections.Generic.IEnumerable<System.ClientModel.ClientResult> GetRawPages();
}
public partial class HttpClientPipelineTransport : System.ClientModel.Primitives.PipelineTransport, System.IDisposable
{
public HttpClientPipelineTransport() { }
Expand Down Expand Up @@ -189,11 +172,13 @@ public ModelReaderWriterOptions(string format) { }
public static System.ClientModel.Primitives.ModelReaderWriterOptions Json { get { throw null; } }
public static System.ClientModel.Primitives.ModelReaderWriterOptions Xml { get { throw null; } }
}
public abstract partial class OperationResult : System.ClientModel.ClientResult
public abstract partial class OperationResult
{
protected OperationResult(System.ClientModel.Primitives.PipelineResponse response) { }
public bool HasCompleted { get { throw null; } protected set { } }
public abstract System.ClientModel.ContinuationToken? RehydrationToken { get; protected set; }
public System.ClientModel.Primitives.PipelineResponse GetRawResponse() { throw null; }
protected void SetRawResponse(System.ClientModel.Primitives.PipelineResponse response) { }
public abstract System.ClientModel.ClientResult UpdateStatus(System.ClientModel.Primitives.RequestOptions? options = null);
public abstract System.Threading.Tasks.ValueTask<System.ClientModel.ClientResult> UpdateStatusAsync(System.ClientModel.Primitives.RequestOptions? options = null);
public virtual void WaitForCompletion(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { }
Expand Down
Loading