From 31ac89b3d87827ff0a6d6203d7638085b9cadda7 Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Wed, 19 May 2021 13:32:33 -0700 Subject: [PATCH 1/7] Move GeoJson types to Azure.Core --- .../src/GeoJson/GeoArray.cs | 0 .../src/GeoJson/GeoBoundingBox.cs | 0 .../src/GeoJson/GeoCollection.cs | 0 .../src/GeoJson/GeoJsonConverter.cs | 0 .../src/GeoJson/GeoLineString.cs | 0 .../src/GeoJson/GeoLineStringCollection.cs | 0 .../src/GeoJson/GeoLinearRing.cs | 0 .../src/GeoJson/GeoObject.cs | 0 .../src/GeoJson/GeoObjectType.cs | 0 .../src/GeoJson/GeoPoint.cs | 0 .../src/GeoJson/GeoPointCollection.cs | 0 .../src/GeoJson/GeoPolygon.cs | 0 .../src/GeoJson/GeoPolygonCollection.cs | 0 .../src/GeoJson/GeoPosition.cs | 0 .../tests/GeoArrayTests.cs} | 2 +- .../tests/GeoJsonSerializationTests.cs | 0 .../tests/GeoJsonTests.cs | 0 17 files changed, 1 insertion(+), 1 deletion(-) rename sdk/core/{Azure.Core.Experimental => Azure.Core}/src/GeoJson/GeoArray.cs (100%) rename sdk/core/{Azure.Core.Experimental => Azure.Core}/src/GeoJson/GeoBoundingBox.cs (100%) rename sdk/core/{Azure.Core.Experimental => Azure.Core}/src/GeoJson/GeoCollection.cs (100%) rename sdk/core/{Azure.Core.Experimental => Azure.Core}/src/GeoJson/GeoJsonConverter.cs (100%) rename sdk/core/{Azure.Core.Experimental => Azure.Core}/src/GeoJson/GeoLineString.cs (100%) rename sdk/core/{Azure.Core.Experimental => Azure.Core}/src/GeoJson/GeoLineStringCollection.cs (100%) rename sdk/core/{Azure.Core.Experimental => Azure.Core}/src/GeoJson/GeoLinearRing.cs (100%) rename sdk/core/{Azure.Core.Experimental => Azure.Core}/src/GeoJson/GeoObject.cs (100%) rename sdk/core/{Azure.Core.Experimental => Azure.Core}/src/GeoJson/GeoObjectType.cs (100%) rename sdk/core/{Azure.Core.Experimental => Azure.Core}/src/GeoJson/GeoPoint.cs (100%) rename sdk/core/{Azure.Core.Experimental => Azure.Core}/src/GeoJson/GeoPointCollection.cs (100%) rename sdk/core/{Azure.Core.Experimental => Azure.Core}/src/GeoJson/GeoPolygon.cs (100%) rename sdk/core/{Azure.Core.Experimental => Azure.Core}/src/GeoJson/GeoPolygonCollection.cs (100%) rename sdk/core/{Azure.Core.Experimental => Azure.Core}/src/GeoJson/GeoPosition.cs (100%) rename sdk/core/{Azure.Core.Experimental/tests/SpatialGeoArrayTest.cs => Azure.Core/tests/GeoArrayTests.cs} (99%) rename sdk/core/{Azure.Core.Experimental => Azure.Core}/tests/GeoJsonSerializationTests.cs (100%) rename sdk/core/{Azure.Core.Experimental => Azure.Core}/tests/GeoJsonTests.cs (100%) diff --git a/sdk/core/Azure.Core.Experimental/src/GeoJson/GeoArray.cs b/sdk/core/Azure.Core/src/GeoJson/GeoArray.cs similarity index 100% rename from sdk/core/Azure.Core.Experimental/src/GeoJson/GeoArray.cs rename to sdk/core/Azure.Core/src/GeoJson/GeoArray.cs diff --git a/sdk/core/Azure.Core.Experimental/src/GeoJson/GeoBoundingBox.cs b/sdk/core/Azure.Core/src/GeoJson/GeoBoundingBox.cs similarity index 100% rename from sdk/core/Azure.Core.Experimental/src/GeoJson/GeoBoundingBox.cs rename to sdk/core/Azure.Core/src/GeoJson/GeoBoundingBox.cs diff --git a/sdk/core/Azure.Core.Experimental/src/GeoJson/GeoCollection.cs b/sdk/core/Azure.Core/src/GeoJson/GeoCollection.cs similarity index 100% rename from sdk/core/Azure.Core.Experimental/src/GeoJson/GeoCollection.cs rename to sdk/core/Azure.Core/src/GeoJson/GeoCollection.cs diff --git a/sdk/core/Azure.Core.Experimental/src/GeoJson/GeoJsonConverter.cs b/sdk/core/Azure.Core/src/GeoJson/GeoJsonConverter.cs similarity index 100% rename from sdk/core/Azure.Core.Experimental/src/GeoJson/GeoJsonConverter.cs rename to sdk/core/Azure.Core/src/GeoJson/GeoJsonConverter.cs diff --git a/sdk/core/Azure.Core.Experimental/src/GeoJson/GeoLineString.cs b/sdk/core/Azure.Core/src/GeoJson/GeoLineString.cs similarity index 100% rename from sdk/core/Azure.Core.Experimental/src/GeoJson/GeoLineString.cs rename to sdk/core/Azure.Core/src/GeoJson/GeoLineString.cs diff --git a/sdk/core/Azure.Core.Experimental/src/GeoJson/GeoLineStringCollection.cs b/sdk/core/Azure.Core/src/GeoJson/GeoLineStringCollection.cs similarity index 100% rename from sdk/core/Azure.Core.Experimental/src/GeoJson/GeoLineStringCollection.cs rename to sdk/core/Azure.Core/src/GeoJson/GeoLineStringCollection.cs diff --git a/sdk/core/Azure.Core.Experimental/src/GeoJson/GeoLinearRing.cs b/sdk/core/Azure.Core/src/GeoJson/GeoLinearRing.cs similarity index 100% rename from sdk/core/Azure.Core.Experimental/src/GeoJson/GeoLinearRing.cs rename to sdk/core/Azure.Core/src/GeoJson/GeoLinearRing.cs diff --git a/sdk/core/Azure.Core.Experimental/src/GeoJson/GeoObject.cs b/sdk/core/Azure.Core/src/GeoJson/GeoObject.cs similarity index 100% rename from sdk/core/Azure.Core.Experimental/src/GeoJson/GeoObject.cs rename to sdk/core/Azure.Core/src/GeoJson/GeoObject.cs diff --git a/sdk/core/Azure.Core.Experimental/src/GeoJson/GeoObjectType.cs b/sdk/core/Azure.Core/src/GeoJson/GeoObjectType.cs similarity index 100% rename from sdk/core/Azure.Core.Experimental/src/GeoJson/GeoObjectType.cs rename to sdk/core/Azure.Core/src/GeoJson/GeoObjectType.cs diff --git a/sdk/core/Azure.Core.Experimental/src/GeoJson/GeoPoint.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPoint.cs similarity index 100% rename from sdk/core/Azure.Core.Experimental/src/GeoJson/GeoPoint.cs rename to sdk/core/Azure.Core/src/GeoJson/GeoPoint.cs diff --git a/sdk/core/Azure.Core.Experimental/src/GeoJson/GeoPointCollection.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPointCollection.cs similarity index 100% rename from sdk/core/Azure.Core.Experimental/src/GeoJson/GeoPointCollection.cs rename to sdk/core/Azure.Core/src/GeoJson/GeoPointCollection.cs diff --git a/sdk/core/Azure.Core.Experimental/src/GeoJson/GeoPolygon.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs similarity index 100% rename from sdk/core/Azure.Core.Experimental/src/GeoJson/GeoPolygon.cs rename to sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs diff --git a/sdk/core/Azure.Core.Experimental/src/GeoJson/GeoPolygonCollection.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPolygonCollection.cs similarity index 100% rename from sdk/core/Azure.Core.Experimental/src/GeoJson/GeoPolygonCollection.cs rename to sdk/core/Azure.Core/src/GeoJson/GeoPolygonCollection.cs diff --git a/sdk/core/Azure.Core.Experimental/src/GeoJson/GeoPosition.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPosition.cs similarity index 100% rename from sdk/core/Azure.Core.Experimental/src/GeoJson/GeoPosition.cs rename to sdk/core/Azure.Core/src/GeoJson/GeoPosition.cs diff --git a/sdk/core/Azure.Core.Experimental/tests/SpatialGeoArrayTest.cs b/sdk/core/Azure.Core/tests/GeoArrayTests.cs similarity index 99% rename from sdk/core/Azure.Core.Experimental/tests/SpatialGeoArrayTest.cs rename to sdk/core/Azure.Core/tests/GeoArrayTests.cs index 13c812634d810..742b0aacddca2 100644 --- a/sdk/core/Azure.Core.Experimental/tests/SpatialGeoArrayTest.cs +++ b/sdk/core/Azure.Core/tests/GeoArrayTests.cs @@ -7,7 +7,7 @@ namespace Azure.Core.Tests { - public class SpatialGeoArrayTest + public class GeoArrayTests { [Test] public void PointCoordinatesWork() diff --git a/sdk/core/Azure.Core.Experimental/tests/GeoJsonSerializationTests.cs b/sdk/core/Azure.Core/tests/GeoJsonSerializationTests.cs similarity index 100% rename from sdk/core/Azure.Core.Experimental/tests/GeoJsonSerializationTests.cs rename to sdk/core/Azure.Core/tests/GeoJsonSerializationTests.cs diff --git a/sdk/core/Azure.Core.Experimental/tests/GeoJsonTests.cs b/sdk/core/Azure.Core/tests/GeoJsonTests.cs similarity index 100% rename from sdk/core/Azure.Core.Experimental/tests/GeoJsonTests.cs rename to sdk/core/Azure.Core/tests/GeoJsonTests.cs From 61956ad1d8bc5b1389f97f81d04819377cf774e4 Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Wed, 19 May 2021 15:02:50 -0700 Subject: [PATCH 2/7] snippets --- sdk/core/Azure.Core/CHANGELOG.md | 3 + .../Azure.Core/src/GeoJson/GeoLineString.cs | 14 +++- sdk/core/Azure.Core/src/GeoJson/GeoPoint.cs | 8 ++- sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs | 36 +++++++++- .../tests/samples/GeoJsonSamples.cs | 72 +++++++++++++++++++ 5 files changed, 130 insertions(+), 3 deletions(-) create mode 100644 sdk/core/Azure.Core/tests/samples/GeoJsonSamples.cs diff --git a/sdk/core/Azure.Core/CHANGELOG.md b/sdk/core/Azure.Core/CHANGELOG.md index d163ec52d433a..c113fff21deca 100644 --- a/sdk/core/Azure.Core/CHANGELOG.md +++ b/sdk/core/Azure.Core/CHANGELOG.md @@ -2,6 +2,9 @@ ## 1.15.0-beta.1 (Unreleased) +### Added + +- Types to represent `GeoJson` primitives. ## 1.14.0 (2021-05-11) diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoLineString.cs b/sdk/core/Azure.Core/src/GeoJson/GeoLineString.cs index 83b9db955bf44..20b57410f0aed 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoLineString.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoLineString.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System.Collections.Generic; @@ -9,6 +9,18 @@ namespace Azure.Core.GeoJson /// /// Represents a line geometry that consists of multiple coordinates. /// + /// + /// Creating a line: + /// + /// var line = new GeoLineString(new[] + /// { + /// new GeoPosition(-122.108727, 47.649383), + /// new GeoPosition(-122.081538, 47.640846), + /// new GeoPosition(-122.078634, 47.576066), + /// new GeoPosition(-122.112686, 47.578559) + /// }); + /// + /// public sealed class GeoLineString : GeoObject { /// diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoPoint.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPoint.cs index fc837a9c673cb..cc73ca4f5d329 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoPoint.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoPoint.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System.Collections.Generic; @@ -8,6 +8,12 @@ namespace Azure.Core.GeoJson /// /// Represents a point geometry. /// + /// + /// Creating a point: + /// + /// var point = new GeoPoint(-122.091954, 47.607148); + /// + /// public sealed class GeoPoint : GeoObject { /// diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs index 88d7618842a66..23db76fcd6f92 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs @@ -1,4 +1,4 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. +// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System.Collections.Generic; @@ -9,6 +9,40 @@ namespace Azure.Core.GeoJson /// /// Represents a polygon consisting of outer ring and optional inner rings. /// + /// + /// Creating a polygon: + /// + /// var polygon = new GeoPolygon(new[] + /// { + /// new GeoPosition(-122.108727, 47.649383), + /// new GeoPosition(-122.081538, 47.640846), + /// new GeoPosition(-122.078634, 47.576066), + /// new GeoPosition(-122.112686, 47.578559) + /// }); + /// + /// Creating a polygon with holes: + /// + /// var polygon = new GeoPolygon(new[] + /// { + /// // Outer ring + /// new GeoLinearRing(new[] + /// { + /// new GeoPosition(-122.108727, 47.649383), + /// new GeoPosition(-122.081538, 47.640846), + /// new GeoPosition(-122.078634, 47.576066), + /// new GeoPosition(-122.112686, 47.578559) + /// }), + /// // Inner ring + /// new GeoLinearRing(new[] + /// { + /// new GeoPosition(-122.102370, 47.607370), + /// new GeoPosition(-122.083488, 47.608007), + /// new GeoPosition(-122.085419, 47.597879), + /// new GeoPosition(-122.107005, 47.596895) + /// }) + /// }); + /// + /// public sealed class GeoPolygon : GeoObject { /// diff --git a/sdk/core/Azure.Core/tests/samples/GeoJsonSamples.cs b/sdk/core/Azure.Core/tests/samples/GeoJsonSamples.cs new file mode 100644 index 0000000000000..061e10c45e215 --- /dev/null +++ b/sdk/core/Azure.Core/tests/samples/GeoJsonSamples.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core.GeoJson; +using NUnit.Framework; + +namespace Azure.Core.Samples +{ + public class GeoJsonSamples + { + [Test] + public void CreatePoint() + { + #region Snippet:CreatePoint + var point = new GeoPoint(-122.091954, 47.607148); + #endregion + } + + [Test] + public void CreateLineString() + { + #region Snippet:CreateLineString + var line = new GeoLineString(new[] + { + new GeoPosition(-122.108727, 47.649383), + new GeoPosition(-122.081538, 47.640846), + new GeoPosition(-122.078634, 47.576066), + new GeoPosition(-122.112686, 47.578559) + }); + #endregion + } + + [Test] + public void CreatePolygon() + { + #region Snippet:CreatePolygon + var polygon = new GeoPolygon(new[] + { + new GeoPosition(-122.108727, 47.649383), + new GeoPosition(-122.081538, 47.640846), + new GeoPosition(-122.078634, 47.576066), + new GeoPosition(-122.112686, 47.578559) + }); + #endregion + } + + [Test] public void CreatePolygonWithHoles() + { + #region Snippet:CreatePolygonWithHoles + var polygon = new GeoPolygon(new[] + { + // Outer ring + new GeoLinearRing(new[] + { + new GeoPosition(-122.108727, 47.649383), + new GeoPosition(-122.081538, 47.640846), + new GeoPosition(-122.078634, 47.576066), + new GeoPosition(-122.112686, 47.578559) + }), + // Inner ring + new GeoLinearRing(new[] + { + new GeoPosition(-122.102370, 47.607370), + new GeoPosition(-122.083488, 47.608007), + new GeoPosition(-122.085419, 47.597879), + new GeoPosition(-122.107005, 47.596895) + }) + }); + #endregion + } + } +} \ No newline at end of file From 6b0c6fb272d5e243c65c820b4bae80f58b9e71ea Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Wed, 19 May 2021 15:26:57 -0700 Subject: [PATCH 3/7] more --- .../Azure.Core.Experimental.netstandard2.0.cs | 160 ------------------ .../src/Azure.Core.Experimental.csproj | 3 +- sdk/core/Azure.Core/api/Azure.Core.net461.cs | 160 ++++++++++++++++++ sdk/core/Azure.Core/api/Azure.Core.net5.0.cs | 160 ++++++++++++++++++ .../api/Azure.Core.netcoreapp2.1.cs | 160 ++++++++++++++++++ .../api/Azure.Core.netstandard2.0.cs | 160 ++++++++++++++++++ .../Azure.Core/src/GeoJson/GeoBoundingBox.cs | 10 +- .../src/GeoJson/GeoJsonConverter.cs | 4 +- .../Azure.Core/src/GeoJson/GeoObjectType.cs | 25 ++- .../src/GeoJson/GeoPointCollection.cs | 2 +- .../src/GeoJson/GeoPolygonCollection.cs | 1 + .../Azure.Core/src/GeoJson/GeoPosition.cs | 6 +- 12 files changed, 681 insertions(+), 170 deletions(-) diff --git a/sdk/core/Azure.Core.Experimental/api/Azure.Core.Experimental.netstandard2.0.cs b/sdk/core/Azure.Core.Experimental/api/Azure.Core.Experimental.netstandard2.0.cs index c12a6b89e6efe..cce3e3c986540 100644 --- a/sdk/core/Azure.Core.Experimental/api/Azure.Core.Experimental.netstandard2.0.cs +++ b/sdk/core/Azure.Core.Experimental/api/Azure.Core.Experimental.netstandard2.0.cs @@ -192,163 +192,3 @@ public partial class ProtocolClientOptions : Azure.Core.ClientOptions public ProtocolClientOptions() { } } } -namespace Azure.Core.GeoJson -{ - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct GeoArray : System.Collections.Generic.IEnumerable, 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 GeoJsonConverter : System.Text.Json.Serialization.JsonConverter - { - public GeoJsonConverter() { } - public override bool CanConvert(System.Type typeToConvert) { throw null; } - public override Azure.Core.GeoJson.GeoObject Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { throw null; } - public override void Write(System.Text.Json.Utf8JsonWriter writer, Azure.Core.GeoJson.GeoObject value, System.Text.Json.JsonSerializerOptions options) { } - } - 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 void WriteTo(System.Text.Json.Utf8JsonWriter writer) { } - } - 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 Rings { get { throw null; } } - public override Azure.Core.GeoJson.GeoObjectType Type { get { throw null; } } - } - public sealed partial class GeoPolygonCollection : Azure.Core.GeoJson.GeoObject, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.IEnumerable - { - public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons) { } - public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons, 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.GeoPolygon 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; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct GeoPosition : System.IEquatable - { - private readonly int _dummyPrimitive; - public GeoPosition(double longitude, double latitude) { throw null; } - public GeoPosition(double longitude, double latitude, double? altitude) { throw null; } - public double? Altitude { get { throw null; } } - public int Count { get { throw null; } } - public double this[int index] { get { throw null; } } - public double Latitude { get { throw null; } } - public double Longitude { get { throw null; } } - public bool Equals(Azure.Core.GeoJson.GeoPosition other) { throw null; } - public override bool Equals(object? obj) { throw null; } - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.Core.GeoJson.GeoPosition left, Azure.Core.GeoJson.GeoPosition right) { throw null; } - public static bool operator !=(Azure.Core.GeoJson.GeoPosition left, Azure.Core.GeoJson.GeoPosition right) { throw null; } - public override string ToString() { throw null; } - } -} diff --git a/sdk/core/Azure.Core.Experimental/src/Azure.Core.Experimental.csproj b/sdk/core/Azure.Core.Experimental/src/Azure.Core.Experimental.csproj index b57bd62199da0..9b17029389291 100644 --- a/sdk/core/Azure.Core.Experimental/src/Azure.Core.Experimental.csproj +++ b/sdk/core/Azure.Core.Experimental/src/Azure.Core.Experimental.csproj @@ -10,7 +10,7 @@ - + @@ -20,4 +20,5 @@ + diff --git a/sdk/core/Azure.Core/api/Azure.Core.net461.cs b/sdk/core/Azure.Core/api/Azure.Core.net461.cs index 43db576dbdbb7..5051389e87fa9 100644 --- a/sdk/core/Azure.Core/api/Azure.Core.net461.cs +++ b/sdk/core/Azure.Core/api/Azure.Core.net461.cs @@ -507,6 +507,166 @@ 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.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 GeoJsonConverter : System.Text.Json.Serialization.JsonConverter + { + public GeoJsonConverter() { } + public override bool CanConvert(System.Type typeToConvert) { throw null; } + public override Azure.Core.GeoJson.GeoObject Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { throw null; } + public override void Write(System.Text.Json.Utf8JsonWriter writer, Azure.Core.GeoJson.GeoObject value, System.Text.Json.JsonSerializerOptions options) { } + } + 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 void WriteTo(System.Text.Json.Utf8JsonWriter writer) { } + } + 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 Rings { get { throw null; } } + public override Azure.Core.GeoJson.GeoObjectType Type { get { throw null; } } + } + public sealed partial class GeoPolygonCollection : Azure.Core.GeoJson.GeoObject, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.IEnumerable + { + public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons) { } + public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons, 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.GeoPolygon 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; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct GeoPosition : System.IEquatable + { + private readonly int _dummyPrimitive; + public GeoPosition(double longitude, double latitude) { throw null; } + public GeoPosition(double longitude, double latitude, double? altitude) { throw null; } + public double? Altitude { get { throw null; } } + public int Count { get { throw null; } } + public double this[int index] { get { throw null; } } + public double Latitude { get { throw null; } } + public double Longitude { get { throw null; } } + public bool Equals(Azure.Core.GeoJson.GeoPosition other) { throw null; } + public override bool Equals(object? obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Core.GeoJson.GeoPosition left, Azure.Core.GeoJson.GeoPosition right) { throw null; } + public static bool operator !=(Azure.Core.GeoJson.GeoPosition left, Azure.Core.GeoJson.GeoPosition right) { throw null; } + public override string ToString() { throw null; } + } +} namespace Azure.Core.Pipeline { public partial class BearerTokenAuthenticationPolicy : Azure.Core.Pipeline.HttpPipelinePolicy 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 581f6bbce2d94..ce6552027c5d2 100644 --- a/sdk/core/Azure.Core/api/Azure.Core.net5.0.cs +++ b/sdk/core/Azure.Core/api/Azure.Core.net5.0.cs @@ -507,6 +507,166 @@ 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.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 GeoJsonConverter : System.Text.Json.Serialization.JsonConverter + { + public GeoJsonConverter() { } + public override bool CanConvert(System.Type typeToConvert) { throw null; } + public override Azure.Core.GeoJson.GeoObject Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { throw null; } + public override void Write(System.Text.Json.Utf8JsonWriter writer, Azure.Core.GeoJson.GeoObject value, System.Text.Json.JsonSerializerOptions options) { } + } + 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 void WriteTo(System.Text.Json.Utf8JsonWriter writer) { } + } + 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 Rings { get { throw null; } } + public override Azure.Core.GeoJson.GeoObjectType Type { get { throw null; } } + } + public sealed partial class GeoPolygonCollection : Azure.Core.GeoJson.GeoObject, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.IEnumerable + { + public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons) { } + public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons, 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.GeoPolygon 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; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct GeoPosition : System.IEquatable + { + private readonly int _dummyPrimitive; + public GeoPosition(double longitude, double latitude) { throw null; } + public GeoPosition(double longitude, double latitude, double? altitude) { throw null; } + public double? Altitude { get { throw null; } } + public int Count { get { throw null; } } + public double this[int index] { get { throw null; } } + public double Latitude { get { throw null; } } + public double Longitude { get { throw null; } } + public bool Equals(Azure.Core.GeoJson.GeoPosition other) { throw null; } + public override bool Equals(object? obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Core.GeoJson.GeoPosition left, Azure.Core.GeoJson.GeoPosition right) { throw null; } + public static bool operator !=(Azure.Core.GeoJson.GeoPosition left, Azure.Core.GeoJson.GeoPosition right) { throw null; } + public override string ToString() { throw null; } + } +} namespace Azure.Core.Pipeline { public partial class BearerTokenAuthenticationPolicy : Azure.Core.Pipeline.HttpPipelinePolicy diff --git a/sdk/core/Azure.Core/api/Azure.Core.netcoreapp2.1.cs b/sdk/core/Azure.Core/api/Azure.Core.netcoreapp2.1.cs index 43db576dbdbb7..5051389e87fa9 100644 --- a/sdk/core/Azure.Core/api/Azure.Core.netcoreapp2.1.cs +++ b/sdk/core/Azure.Core/api/Azure.Core.netcoreapp2.1.cs @@ -507,6 +507,166 @@ 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.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 GeoJsonConverter : System.Text.Json.Serialization.JsonConverter + { + public GeoJsonConverter() { } + public override bool CanConvert(System.Type typeToConvert) { throw null; } + public override Azure.Core.GeoJson.GeoObject Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { throw null; } + public override void Write(System.Text.Json.Utf8JsonWriter writer, Azure.Core.GeoJson.GeoObject value, System.Text.Json.JsonSerializerOptions options) { } + } + 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 void WriteTo(System.Text.Json.Utf8JsonWriter writer) { } + } + 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 Rings { get { throw null; } } + public override Azure.Core.GeoJson.GeoObjectType Type { get { throw null; } } + } + public sealed partial class GeoPolygonCollection : Azure.Core.GeoJson.GeoObject, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.IEnumerable + { + public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons) { } + public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons, 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.GeoPolygon 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; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct GeoPosition : System.IEquatable + { + private readonly int _dummyPrimitive; + public GeoPosition(double longitude, double latitude) { throw null; } + public GeoPosition(double longitude, double latitude, double? altitude) { throw null; } + public double? Altitude { get { throw null; } } + public int Count { get { throw null; } } + public double this[int index] { get { throw null; } } + public double Latitude { get { throw null; } } + public double Longitude { get { throw null; } } + public bool Equals(Azure.Core.GeoJson.GeoPosition other) { throw null; } + public override bool Equals(object? obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Core.GeoJson.GeoPosition left, Azure.Core.GeoJson.GeoPosition right) { throw null; } + public static bool operator !=(Azure.Core.GeoJson.GeoPosition left, Azure.Core.GeoJson.GeoPosition right) { throw null; } + public override string ToString() { throw null; } + } +} namespace Azure.Core.Pipeline { public partial class BearerTokenAuthenticationPolicy : Azure.Core.Pipeline.HttpPipelinePolicy diff --git a/sdk/core/Azure.Core/api/Azure.Core.netstandard2.0.cs b/sdk/core/Azure.Core/api/Azure.Core.netstandard2.0.cs index 43db576dbdbb7..5051389e87fa9 100644 --- a/sdk/core/Azure.Core/api/Azure.Core.netstandard2.0.cs +++ b/sdk/core/Azure.Core/api/Azure.Core.netstandard2.0.cs @@ -507,6 +507,166 @@ 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.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 GeoJsonConverter : System.Text.Json.Serialization.JsonConverter + { + public GeoJsonConverter() { } + public override bool CanConvert(System.Type typeToConvert) { throw null; } + public override Azure.Core.GeoJson.GeoObject Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { throw null; } + public override void Write(System.Text.Json.Utf8JsonWriter writer, Azure.Core.GeoJson.GeoObject value, System.Text.Json.JsonSerializerOptions options) { } + } + 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 void WriteTo(System.Text.Json.Utf8JsonWriter writer) { } + } + 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 Rings { get { throw null; } } + public override Azure.Core.GeoJson.GeoObjectType Type { get { throw null; } } + } + public sealed partial class GeoPolygonCollection : Azure.Core.GeoJson.GeoObject, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.IEnumerable + { + public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons) { } + public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons, 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.GeoPolygon 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; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct GeoPosition : System.IEquatable + { + private readonly int _dummyPrimitive; + public GeoPosition(double longitude, double latitude) { throw null; } + public GeoPosition(double longitude, double latitude, double? altitude) { throw null; } + public double? Altitude { get { throw null; } } + public int Count { get { throw null; } } + public double this[int index] { get { throw null; } } + public double Latitude { get { throw null; } } + public double Longitude { get { throw null; } } + public bool Equals(Azure.Core.GeoJson.GeoPosition other) { throw null; } + public override bool Equals(object? obj) { throw null; } + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Core.GeoJson.GeoPosition left, Azure.Core.GeoJson.GeoPosition right) { throw null; } + public static bool operator !=(Azure.Core.GeoJson.GeoPosition left, Azure.Core.GeoJson.GeoPosition right) { throw null; } + public override string ToString() { throw null; } + } +} namespace Azure.Core.Pipeline { public partial class BearerTokenAuthenticationPolicy : Azure.Core.Pipeline.HttpPipelinePolicy diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoBoundingBox.cs b/sdk/core/Azure.Core/src/GeoJson/GeoBoundingBox.cs index a51c29d20b642..8dc029d78f1ee 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoBoundingBox.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoBoundingBox.cs @@ -61,8 +61,12 @@ public GeoBoundingBox(double west, double south, double east, double north, doub } /// - public bool Equals(GeoBoundingBox other) + public bool Equals(GeoBoundingBox? other) { + if (other == null) + { + return false; + } return West.Equals(other.West) && South.Equals(other.South) && East.Equals(other.East) && @@ -84,9 +88,9 @@ public override int GetHashCode() } /// - /// + /// Gets the component of the based on it's index. /// - /// + /// The index of the bounding box component. public double this[int index] { get diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoJsonConverter.cs b/sdk/core/Azure.Core/src/GeoJson/GeoJsonConverter.cs index 00dd4b93dc726..2dcf2e7ced3d2 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoJsonConverter.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoJsonConverter.cs @@ -8,6 +8,7 @@ namespace Azure.Core.GeoJson { +#pragma warning disable AZC0014 // Dont use System.Json apis. /// /// Converts a value from and to JSON in GeoJSON format. /// @@ -49,7 +50,7 @@ internal static GeoObject Read(JsonElement element) { JsonElement typeProperty = GetRequiredProperty(element, TypeProperty); - string type = typeProperty.GetString(); + string? type = typeProperty.GetString(); GeoBoundingBox? boundingBox = ReadBoundingBox(element); @@ -458,4 +459,5 @@ private static JsonElement GetRequiredProperty(JsonElement element, string name) return property; } } +#pragma warning restore AZC0014 } \ No newline at end of file diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoObjectType.cs b/sdk/core/Azure.Core/src/GeoJson/GeoObjectType.cs index 1548d01adc7d0..47c2b6080c575 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoObjectType.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoObjectType.cs @@ -1,17 +1,40 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -#pragma warning disable 1591 namespace Azure.Core.GeoJson { + /// + /// Identifies the type of the + /// public enum GeoObjectType { + /// + /// The is of the type. + /// Point, + /// + /// The is of the type. + /// MultiPoint, + /// + /// The is of the type. + /// Polygon, + /// + /// The is of the type. + /// MultiPolygon, + /// + /// The is of the type. + /// LineString, + /// + /// The is of the type. + /// MultiLineString, + /// + /// The is of the type. + /// GeometryCollection, } } \ No newline at end of file diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoPointCollection.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPointCollection.cs index 9b9a614ff3617..3ca70c7e0be3f 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoPointCollection.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoPointCollection.cs @@ -3,7 +3,6 @@ using System.Collections; using System.Collections.Generic; -using System.Drawing; using System.Linq; namespace Azure.Core.GeoJson @@ -45,6 +44,7 @@ public IEnumerator GetEnumerator() return Points.GetEnumerator(); } + /// IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoPolygonCollection.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPolygonCollection.cs index c2cb30fd4f250..95914fe1cdee6 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoPolygonCollection.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoPolygonCollection.cs @@ -41,6 +41,7 @@ public IEnumerator GetEnumerator() return Polygons.GetEnumerator(); } + /// IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoPosition.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPosition.cs index 4585a55271e26..c3537e7109040 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoPosition.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoPosition.cs @@ -6,7 +6,7 @@ namespace Azure.Core.GeoJson { /// - /// + /// Represents a single spatial position with altitude, longitude and optional latitude. /// public readonly struct GeoPosition : IEquatable { @@ -96,7 +96,7 @@ public override string ToString() } /// - /// + /// Get the value of coordinate component using it's index. /// /// public double this[int index] @@ -116,7 +116,7 @@ public double this[int index] } /// - /// + /// Returns the count of the coordinate components. /// public int Count => Altitude == null ? 2 : 3; } From d134956f62e55564165fbdcd8490a75d8b5a62ff Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Wed, 19 May 2021 15:30:50 -0700 Subject: [PATCH 4/7] more --- sdk/core/Azure.Core/src/GeoJson/GeoLineString.cs | 2 +- sdk/core/Azure.Core/src/GeoJson/GeoLineStringCollection.cs | 3 --- sdk/core/Azure.Core/src/GeoJson/GeoPointCollection.cs | 3 --- sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs | 2 +- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoLineString.cs b/sdk/core/Azure.Core/src/GeoJson/GeoLineString.cs index 20b57410f0aed..7e3a8a98b3c7b 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoLineString.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoLineString.cs @@ -39,7 +39,7 @@ public GeoLineString(IEnumerable coordinates): this(coordinates, nu /// The set of custom properties associated with the . public GeoLineString(IEnumerable coordinates, GeoBoundingBox? boundingBox, IReadOnlyDictionary customProperties): base(boundingBox, customProperties) { - Coordinates = new GeoArray(coordinates.ToArray());; + Coordinates = new GeoArray(coordinates.ToArray()); } /// diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoLineStringCollection.cs b/sdk/core/Azure.Core/src/GeoJson/GeoLineStringCollection.cs index 1866c9ecd59a2..78c257679e987 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoLineStringCollection.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoLineStringCollection.cs @@ -33,9 +33,6 @@ public GeoLineStringCollection(IEnumerable lines, GeoBoundingBox? Lines = lines.ToArray(); } - /// - /// - /// internal IReadOnlyList Lines { get; } /// diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoPointCollection.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPointCollection.cs index 3ca70c7e0be3f..474898f585e65 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoPointCollection.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoPointCollection.cs @@ -33,9 +33,6 @@ public GeoPointCollection(IEnumerable points, GeoBoundingBox? bounding Points = points.ToArray(); } - /// - /// - /// internal IReadOnlyList Points { get; } /// diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs index 23db76fcd6f92..953623cacebbc 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs @@ -80,7 +80,7 @@ public GeoPolygon(IEnumerable rings, GeoBoundingBox? boundingBox, public IReadOnlyList Rings { get; } /// - /// Returns the outer right of the polygon + /// Returns the outer ring of the polygon. /// public GeoLinearRing OuterRing => Rings[0]; From 560194703f53db67135593c86c4f9ec2da58201a Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Wed, 19 May 2021 16:33:25 -0700 Subject: [PATCH 5/7] fix query --- .../Azure.Monitor.Query/Azure.Monitor.Query.sln | 12 ++++++------ .../src/Azure.Monitor.Query.csproj | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/sdk/monitor/Azure.Monitor.Query/Azure.Monitor.Query.sln b/sdk/monitor/Azure.Monitor.Query/Azure.Monitor.Query.sln index 4fbca2fb137ee..953aad201253d 100644 --- a/sdk/monitor/Azure.Monitor.Query/Azure.Monitor.Query.sln +++ b/sdk/monitor/Azure.Monitor.Query/Azure.Monitor.Query.sln @@ -13,10 +13,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Monitor.Query", "src\ EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Monitor.Query.Tests", "tests\Azure.Monitor.Query.Tests.csproj", "{57982C70-975B-475E-B4F4-D20E9EC9F7FB}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Core", "..\..\core\Azure.Core\src\Azure.Core.csproj", "{9F9BE74E-2036-41E7-8B6E-24F2E825250A}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Core.Experimental", "..\..\core\Azure.Core.Experimental\src\Azure.Core.Experimental.csproj", "{F630F933-5163-4878-B107-3D664FA8B89B}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Core", "..\..\core\Azure.Core\src\Azure.Core.csproj", "{753CF76A-180D-483D-93B8-BA7F243C5100}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -43,14 +43,14 @@ Global {57982C70-975B-475E-B4F4-D20E9EC9F7FB}.Debug|Any CPU.Build.0 = Debug|Any CPU {57982C70-975B-475E-B4F4-D20E9EC9F7FB}.Release|Any CPU.ActiveCfg = Release|Any CPU {57982C70-975B-475E-B4F4-D20E9EC9F7FB}.Release|Any CPU.Build.0 = Release|Any CPU - {9F9BE74E-2036-41E7-8B6E-24F2E825250A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {9F9BE74E-2036-41E7-8B6E-24F2E825250A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9F9BE74E-2036-41E7-8B6E-24F2E825250A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9F9BE74E-2036-41E7-8B6E-24F2E825250A}.Release|Any CPU.Build.0 = Release|Any CPU {F630F933-5163-4878-B107-3D664FA8B89B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {F630F933-5163-4878-B107-3D664FA8B89B}.Debug|Any CPU.Build.0 = Debug|Any CPU {F630F933-5163-4878-B107-3D664FA8B89B}.Release|Any CPU.ActiveCfg = Release|Any CPU {F630F933-5163-4878-B107-3D664FA8B89B}.Release|Any CPU.Build.0 = Release|Any CPU + {753CF76A-180D-483D-93B8-BA7F243C5100}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {753CF76A-180D-483D-93B8-BA7F243C5100}.Debug|Any CPU.Build.0 = Debug|Any CPU + {753CF76A-180D-483D-93B8-BA7F243C5100}.Release|Any CPU.ActiveCfg = Release|Any CPU + {753CF76A-180D-483D-93B8-BA7F243C5100}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/sdk/monitor/Azure.Monitor.Query/src/Azure.Monitor.Query.csproj b/sdk/monitor/Azure.Monitor.Query/src/Azure.Monitor.Query.csproj index f0084332d1809..de142162a1930 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Azure.Monitor.Query.csproj +++ b/sdk/monitor/Azure.Monitor.Query/src/Azure.Monitor.Query.csproj @@ -9,8 +9,8 @@ - + From d48e6737ff8f0e8bbb92d944ee7ff4f1630a3bf0 Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Thu, 20 May 2021 09:50:06 -0700 Subject: [PATCH 6/7] fb --- .../tests/JsonDataDynamicMutableTests.cs | 2 +- sdk/core/Azure.Core/CHANGELOG.md | 34 +++++++++---------- sdk/core/Azure.Core/src/GeoJson/GeoArray.cs | 2 +- .../Azure.Core/src/GeoJson/GeoBoundingBox.cs | 3 +- .../Azure.Core/src/GeoJson/GeoCollection.cs | 3 +- .../src/GeoJson/GeoJsonConverter.cs | 2 +- .../Azure.Core/src/GeoJson/GeoLineString.cs | 2 +- .../src/GeoJson/GeoLineStringCollection.cs | 3 +- .../Azure.Core/src/GeoJson/GeoLinearRing.cs | 3 +- sdk/core/Azure.Core/src/GeoJson/GeoObject.cs | 3 +- .../Azure.Core/src/GeoJson/GeoObjectType.cs | 2 +- sdk/core/Azure.Core/src/GeoJson/GeoPoint.cs | 2 +- .../src/GeoJson/GeoPointCollection.cs | 3 +- sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs | 3 +- .../src/GeoJson/GeoPolygonCollection.cs | 3 +- .../Azure.Core/src/GeoJson/GeoPosition.cs | 7 ++-- sdk/core/Azure.Core/tests/GeoArrayTests.cs | 2 +- .../tests/GeoJsonSerializationTests.cs | 2 +- sdk/core/Azure.Core/tests/GeoJsonTests.cs | 2 +- .../tests/samples/GeoJsonSamples.cs | 15 +++++--- 20 files changed, 56 insertions(+), 42 deletions(-) diff --git a/sdk/core/Azure.Core.Experimental/tests/JsonDataDynamicMutableTests.cs b/sdk/core/Azure.Core.Experimental/tests/JsonDataDynamicMutableTests.cs index 487193009bb86..8aa948f289c4c 100644 --- a/sdk/core/Azure.Core.Experimental/tests/JsonDataDynamicMutableTests.cs +++ b/sdk/core/Azure.Core.Experimental/tests/JsonDataDynamicMutableTests.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; using System.Text.Json; -using Azure.Core.GeoJson; +using Azure.GeoJson; using NUnit.Framework; namespace Azure.Core.Tests diff --git a/sdk/core/Azure.Core/CHANGELOG.md b/sdk/core/Azure.Core/CHANGELOG.md index c113fff21deca..d448e3d13166d 100644 --- a/sdk/core/Azure.Core/CHANGELOG.md +++ b/sdk/core/Azure.Core/CHANGELOG.md @@ -2,13 +2,13 @@ ## 1.15.0-beta.1 (Unreleased) -### Added +### Features Added - Types to represent `GeoJson` primitives. ## 1.14.0 (2021-05-11) -### Added +### Features Added - Added additional methods to `BearerTokenAuthenticationPolicy`, which enables creation of authentication policies that can handle challenges. @@ -21,13 +21,13 @@ ## 1.12.0 (2021-04-06) -### Added +### Features Added - Added `HttpPipeline.CreateHttpMessagePropertiesScope` that can be used to inject scoped properties into `HttpMessage`. ## 1.11.0 (2021-03-22) -### Added +### Features Added - `Operation` base class for operations that do not return a value. - Added `Content` property to `Response` which returns the body of the response as a `BinaryData` if the body is buffered. @@ -41,13 +41,13 @@ ## 1.10.0 (2021-03-09) -## Added +## Features Added - Added `CloudEvent` type based on the [CloudEvent spec](https://github.com/cloudevents/spec/blob/master/spec.md). ## 1.9.0 (2021-02-09) -## Added +## Features Added - Added Serialize overloads on `ObjectSerializer` that serialize to `BinaryData`. - Added AzureCoreExtensions containing extensions methods for `BinaryData` that allow deserializing with an `ObjectSerializer`. @@ -64,7 +64,7 @@ ## 1.8.0 (2021-01-06) -### Added +### Features Added - `AzureSasCredential` and its respective policy. ### Key Bug Fixes @@ -81,11 +81,11 @@ ## 1.6.0 (2020-10-28) -### Added +### Features Added - The `HttpClientTransport(HttpMessageHandler)` constructor overload. - The `JsonPatchDocument` type. -### Fixed +### Key Bugs Fixed - The race condition in `AzureEventSourceListener` class that sometimes resulted in a `NullReferenceException` in the `EventSource`. - The overflow exception when content length is larger than `int.MaxValue`. @@ -100,7 +100,7 @@ ### Changed - `ETag` now supports weak ETags and implements an overload for `ToString` that accepts a format string. -### Added +### Features Added - HttpWebRequest-based transport implementation. Enabled by-default on .NET Framework. Can be disabled using `AZURE_CORE_DISABLE_HTTPWEBREQUESTTRANSPORT` environment variable or `Azure.Core.Pipeline.DisableHttpWebRequestTransport` AppContext switch. To use the app context switch add the following snippet to your `.csproj`: ```xml @@ -113,27 +113,27 @@ When the environment variable or the switch are set the `HttpClientTransport` wo ## 1.4.1 (2020-08-18) -### Fixed +### Key Bugs Fixed - Bug in TaskExtensions.EnsureCompleted method that causes it to unconditionally throw an exception in the environments with synchronization context ## 1.4.0 (2020-08-06) -### Added +### Features Added - Added `ObjectSerializer` base class for serialization. - Added `IMemberNameConverter` for converting member names to serialized property names. - Added `JsonObjectSerializer` that implements `ObjectSerializer` for `System.Text.Json`. -### Fixed +### Key Bugs Fixed - Connection leak for retried non-buffered requests on .NET Framework. ## 1.3.0 (2020-07-02) -### Added +### Features Added - `HttpPipeline.CreateClientRequestIdScope` method to allow setting client request id on outgoing requests. ## 1.2.2 (2020-06-04) -### Bugfix +### Key Bugs Fixed - Retry server timeouts on .NET Framework. ## 1.2.1 (2020-04-30) @@ -141,12 +141,12 @@ When the environment variable or the switch are set the `HttpClientTransport` wo ### Changed - Read client request ID value used for logging and tracing off the initial request object if available. -### Bugfix +### Key Bugs Fixed - Fixed a bug when using Azure.Core based libraries in Blazor WebAssembly apps. ## 1.2.0 (2020-04-03) -### Added +### Features Added - `AzureKeyCredential` and its respective policy. ### Changed diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoArray.cs b/sdk/core/Azure.Core/src/GeoJson/GeoArray.cs index 5a2e44a55c9d9..e7083a8e39a1d 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoArray.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoArray.cs @@ -4,7 +4,7 @@ using System.Collections; using System.Collections.Generic; -namespace Azure.Core.GeoJson +namespace Azure.GeoJson { /// /// Represents a geometry coordinates array diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoBoundingBox.cs b/sdk/core/Azure.Core/src/GeoJson/GeoBoundingBox.cs index 8dc029d78f1ee..addbc7ba5dfc0 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoBoundingBox.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoBoundingBox.cs @@ -2,8 +2,9 @@ // Licensed under the MIT License. using System; +using Azure.Core; -namespace Azure.Core.GeoJson +namespace Azure.GeoJson { /// /// Represents information about the coordinate range of the . diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoCollection.cs b/sdk/core/Azure.Core/src/GeoJson/GeoCollection.cs index fa50e8ccefd8e..b0f6c5026495f 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoCollection.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoCollection.cs @@ -4,8 +4,9 @@ using System.Collections; using System.Collections.Generic; using System.Linq; +using Azure.Core; -namespace Azure.Core.GeoJson +namespace Azure.GeoJson { /// /// Represents a geometry that is composed of multiple geometries. diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoJsonConverter.cs b/sdk/core/Azure.Core/src/GeoJson/GeoJsonConverter.cs index 2dcf2e7ced3d2..2ae9edefd3c8d 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoJsonConverter.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoJsonConverter.cs @@ -6,7 +6,7 @@ using System.Text.Json; using System.Text.Json.Serialization; -namespace Azure.Core.GeoJson +namespace Azure.GeoJson { #pragma warning disable AZC0014 // Dont use System.Json apis. /// diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoLineString.cs b/sdk/core/Azure.Core/src/GeoJson/GeoLineString.cs index 7e3a8a98b3c7b..c9d156a81b7c4 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoLineString.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoLineString.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; using System.Linq; -namespace Azure.Core.GeoJson +namespace Azure.GeoJson { /// /// Represents a line geometry that consists of multiple coordinates. diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoLineStringCollection.cs b/sdk/core/Azure.Core/src/GeoJson/GeoLineStringCollection.cs index 78c257679e987..fc31b6e930145 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoLineStringCollection.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoLineStringCollection.cs @@ -4,8 +4,9 @@ using System.Collections; using System.Collections.Generic; using System.Linq; +using Azure.Core; -namespace Azure.Core.GeoJson +namespace Azure.GeoJson { /// /// Represents a geometry that is composed of multiple . diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoLinearRing.cs b/sdk/core/Azure.Core/src/GeoJson/GeoLinearRing.cs index ed6d0bd273119..47153f823b846 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoLinearRing.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoLinearRing.cs @@ -4,8 +4,9 @@ using System; using System.Collections.Generic; using System.Linq; +using Azure.Core; -namespace Azure.Core.GeoJson +namespace Azure.GeoJson { /// /// Represents a linear ring that's a part of a polygon diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoObject.cs b/sdk/core/Azure.Core/src/GeoJson/GeoObject.cs index efa2aec967745..df3b70078027c 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoObject.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoObject.cs @@ -6,8 +6,9 @@ using System.IO; using System.Text; using System.Text.Json; +using Azure.Core; -namespace Azure.Core.GeoJson +namespace Azure.GeoJson { /// /// A base type for all spatial types. diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoObjectType.cs b/sdk/core/Azure.Core/src/GeoJson/GeoObjectType.cs index 47c2b6080c575..462e703449df2 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoObjectType.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoObjectType.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -namespace Azure.Core.GeoJson +namespace Azure.GeoJson { /// /// Identifies the type of the diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoPoint.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPoint.cs index cc73ca4f5d329..bd8b48d147dd1 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoPoint.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoPoint.cs @@ -3,7 +3,7 @@ using System.Collections.Generic; -namespace Azure.Core.GeoJson +namespace Azure.GeoJson { /// /// Represents a point geometry. diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoPointCollection.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPointCollection.cs index 474898f585e65..04ff08ef06b4d 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoPointCollection.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoPointCollection.cs @@ -4,8 +4,9 @@ using System.Collections; using System.Collections.Generic; using System.Linq; +using Azure.Core; -namespace Azure.Core.GeoJson +namespace Azure.GeoJson { /// /// Represents a geometry that is composed of multiple . diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs index 953623cacebbc..0c0d6d2bab555 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs @@ -3,8 +3,9 @@ using System.Collections.Generic; using System.Linq; +using Azure.Core; -namespace Azure.Core.GeoJson +namespace Azure.GeoJson { /// /// Represents a polygon consisting of outer ring and optional inner rings. diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoPolygonCollection.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPolygonCollection.cs index 95914fe1cdee6..5e018713daca1 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoPolygonCollection.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoPolygonCollection.cs @@ -4,8 +4,9 @@ using System.Collections; using System.Collections.Generic; using System.Linq; +using Azure.Core; -namespace Azure.Core.GeoJson +namespace Azure.GeoJson { /// /// Represents a geometry that is composed of multiple . diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoPosition.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPosition.cs index c3537e7109040..188944eba32b5 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoPosition.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoPosition.cs @@ -2,11 +2,12 @@ // Licensed under the MIT License. using System; +using Azure.Core; -namespace Azure.Core.GeoJson +namespace Azure.GeoJson { /// - /// Represents a single spatial position with altitude, longitude and optional latitude. + /// Represents a single spatial position with altitude, longitude, and optional latitude. /// public readonly struct GeoPosition : IEquatable { @@ -96,7 +97,7 @@ public override string ToString() } /// - /// Get the value of coordinate component using it's index. + /// Get the value of coordinate component using its index. /// /// public double this[int index] diff --git a/sdk/core/Azure.Core/tests/GeoArrayTests.cs b/sdk/core/Azure.Core/tests/GeoArrayTests.cs index 742b0aacddca2..527407c31e8f0 100644 --- a/sdk/core/Azure.Core/tests/GeoArrayTests.cs +++ b/sdk/core/Azure.Core/tests/GeoArrayTests.cs @@ -2,7 +2,7 @@ // Licensed under the MIT License. using System.Linq; -using Azure.Core.GeoJson; +using Azure.GeoJson; using NUnit.Framework; namespace Azure.Core.Tests diff --git a/sdk/core/Azure.Core/tests/GeoJsonSerializationTests.cs b/sdk/core/Azure.Core/tests/GeoJsonSerializationTests.cs index 3445a1f7267fd..b8dec1a7c85d1 100644 --- a/sdk/core/Azure.Core/tests/GeoJsonSerializationTests.cs +++ b/sdk/core/Azure.Core/tests/GeoJsonSerializationTests.cs @@ -4,7 +4,7 @@ using System.Collections.Generic; using System.IO; using System.Text.Json; -using Azure.Core.GeoJson; +using Azure.GeoJson; using NUnit.Framework; namespace Azure.Core.Tests diff --git a/sdk/core/Azure.Core/tests/GeoJsonTests.cs b/sdk/core/Azure.Core/tests/GeoJsonTests.cs index bddfb50f71daa..c170dbac685b0 100644 --- a/sdk/core/Azure.Core/tests/GeoJsonTests.cs +++ b/sdk/core/Azure.Core/tests/GeoJsonTests.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using Azure.Core.GeoJson; +using Azure.GeoJson; using NUnit.Framework; namespace Azure.Core.Tests diff --git a/sdk/core/Azure.Core/tests/samples/GeoJsonSamples.cs b/sdk/core/Azure.Core/tests/samples/GeoJsonSamples.cs index 061e10c45e215..c16e0b12e5e0d 100644 --- a/sdk/core/Azure.Core/tests/samples/GeoJsonSamples.cs +++ b/sdk/core/Azure.Core/tests/samples/GeoJsonSamples.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -using Azure.Core.GeoJson; +using Azure.GeoJson; using NUnit.Framework; namespace Azure.Core.Samples @@ -25,7 +25,7 @@ public void CreateLineString() new GeoPosition(-122.108727, 47.649383), new GeoPosition(-122.081538, 47.640846), new GeoPosition(-122.078634, 47.576066), - new GeoPosition(-122.112686, 47.578559) + new GeoPosition(-122.112686, 47.578559), }); #endregion } @@ -39,7 +39,8 @@ public void CreatePolygon() new GeoPosition(-122.108727, 47.649383), new GeoPosition(-122.081538, 47.640846), new GeoPosition(-122.078634, 47.576066), - new GeoPosition(-122.112686, 47.578559) + new GeoPosition(-122.112686, 47.578559), + new GeoPosition(-122.108727, 47.649383), }); #endregion } @@ -55,7 +56,9 @@ [Test] public void CreatePolygonWithHoles() new GeoPosition(-122.108727, 47.649383), new GeoPosition(-122.081538, 47.640846), new GeoPosition(-122.078634, 47.576066), - new GeoPosition(-122.112686, 47.578559) + new GeoPosition(-122.112686, 47.578559), + // Last position same as first + new GeoPosition(-122.108727, 47.649383), }), // Inner ring new GeoLinearRing(new[] @@ -63,7 +66,9 @@ [Test] public void CreatePolygonWithHoles() new GeoPosition(-122.102370, 47.607370), new GeoPosition(-122.083488, 47.608007), new GeoPosition(-122.085419, 47.597879), - new GeoPosition(-122.107005, 47.596895) + new GeoPosition(-122.107005, 47.596895), + // Last position same as first + new GeoPosition(-122.102370, 47.607370), }) }); #endregion From 5907ccd91c91476971671d993970daa121afb51b Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Thu, 20 May 2021 09:59:04 -0700 Subject: [PATCH 7/7] more --- sdk/core/Azure.Core/api/Azure.Core.net461.cs | 316 +++++++++--------- sdk/core/Azure.Core/api/Azure.Core.net5.0.cs | 316 +++++++++--------- .../api/Azure.Core.netcoreapp2.1.cs | 316 +++++++++--------- .../api/Azure.Core.netstandard2.0.cs | 316 +++++++++--------- .../Azure.Core/src/GeoJson/GeoLineString.cs | 2 +- sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs | 11 +- 6 files changed, 641 insertions(+), 636 deletions(-) diff --git a/sdk/core/Azure.Core/api/Azure.Core.net461.cs b/sdk/core/Azure.Core/api/Azure.Core.net461.cs index 5051389e87fa9..412af64408ba3 100644 --- a/sdk/core/Azure.Core/api/Azure.Core.net461.cs +++ b/sdk/core/Azure.Core/api/Azure.Core.net461.cs @@ -507,7 +507,104 @@ public partial interface IAzureClientFactoryBuilderWithCredential Azure.Core.Extensions.IAzureClientBuilder RegisterClientFactory(System.Func clientFactory, bool requiresCredential = true) where TOptions : class; } } -namespace Azure.Core.GeoJson +namespace Azure.Core.Pipeline +{ + public partial class BearerTokenAuthenticationPolicy : Azure.Core.Pipeline.HttpPipelinePolicy + { + public BearerTokenAuthenticationPolicy(Azure.Core.TokenCredential credential, System.Collections.Generic.IEnumerable scopes) { } + public BearerTokenAuthenticationPolicy(Azure.Core.TokenCredential credential, string scope) { } + protected void AuthenticateAndAuthorizeRequest(Azure.Core.HttpMessage message, Azure.Core.TokenRequestContext context) { } + protected System.Threading.Tasks.ValueTask AuthenticateAndAuthorizeRequestAsync(Azure.Core.HttpMessage message, Azure.Core.TokenRequestContext context) { throw null; } + protected virtual void AuthorizeRequest(Azure.Core.HttpMessage message) { } + protected virtual System.Threading.Tasks.ValueTask AuthorizeRequestAsync(Azure.Core.HttpMessage message) { throw null; } + protected virtual bool AuthorizeRequestOnChallenge(Azure.Core.HttpMessage message) { throw null; } + protected virtual System.Threading.Tasks.ValueTask AuthorizeRequestOnChallengeAsync(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; } + } + public partial class HttpClientTransport : Azure.Core.Pipeline.HttpPipelineTransport + { + public static readonly Azure.Core.Pipeline.HttpClientTransport Shared; + public HttpClientTransport() { } + public HttpClientTransport(System.Net.Http.HttpClient client) { } + public HttpClientTransport(System.Net.Http.HttpMessageHandler messageHandler) { } + public sealed override Azure.Core.Request CreateRequest() { throw null; } + public override void Process(Azure.Core.HttpMessage message) { } + public sealed override System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message) { throw null; } + } + public partial class HttpPipeline + { + public HttpPipeline(Azure.Core.Pipeline.HttpPipelineTransport transport, Azure.Core.Pipeline.HttpPipelinePolicy[]? policies = null, Azure.Core.ResponseClassifier? responseClassifier = null) { } + public Azure.Core.ResponseClassifier ResponseClassifier { get { throw null; } } + public static System.IDisposable CreateClientRequestIdScope(string? clientRequestId) { throw null; } + public static System.IDisposable CreateHttpMessagePropertiesScope(System.Collections.Generic.IDictionary messageProperties) { throw null; } + public Azure.Core.HttpMessage CreateMessage() { throw null; } + public Azure.Core.Request CreateRequest() { throw null; } + public void Send(Azure.Core.HttpMessage message, System.Threading.CancellationToken cancellationToken) { } + public System.Threading.Tasks.ValueTask SendAsync(Azure.Core.HttpMessage message, System.Threading.CancellationToken cancellationToken) { throw null; } + public Azure.Response SendRequest(Azure.Core.Request request, System.Threading.CancellationToken cancellationToken) { throw null; } + public System.Threading.Tasks.ValueTask SendRequestAsync(Azure.Core.Request request, System.Threading.CancellationToken cancellationToken) { throw null; } + } + public static partial class HttpPipelineBuilder + { + public static Azure.Core.Pipeline.HttpPipeline Build(Azure.Core.ClientOptions options, params Azure.Core.Pipeline.HttpPipelinePolicy[] perRetryPolicies) { throw null; } + public static Azure.Core.Pipeline.HttpPipeline Build(Azure.Core.ClientOptions options, Azure.Core.Pipeline.HttpPipelinePolicy[] perCallPolicies, Azure.Core.Pipeline.HttpPipelinePolicy[] perRetryPolicies, Azure.Core.ResponseClassifier responseClassifier) { throw null; } + } + public abstract partial class HttpPipelinePolicy + { + protected HttpPipelinePolicy() { } + public abstract void Process(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline); + public abstract System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline); + 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; } + } + public abstract partial class HttpPipelineSynchronousPolicy : Azure.Core.Pipeline.HttpPipelinePolicy + { + protected HttpPipelineSynchronousPolicy() { } + public virtual void OnReceivedResponse(Azure.Core.HttpMessage message) { } + public virtual void OnSendingRequest(Azure.Core.HttpMessage message) { } + 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; } + } + public abstract partial class HttpPipelineTransport + { + protected HttpPipelineTransport() { } + public abstract Azure.Core.Request CreateRequest(); + public abstract void Process(Azure.Core.HttpMessage message); + public abstract System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message); + } +} +namespace Azure.Core.Serialization +{ + public partial interface IMemberNameConverter + { + string? ConvertMemberName(System.Reflection.MemberInfo member); + } + public partial class JsonObjectSerializer : Azure.Core.Serialization.ObjectSerializer, Azure.Core.Serialization.IMemberNameConverter + { + public JsonObjectSerializer() { } + public JsonObjectSerializer(System.Text.Json.JsonSerializerOptions options) { } + public static Azure.Core.Serialization.JsonObjectSerializer Default { get { throw null; } } + string? Azure.Core.Serialization.IMemberNameConverter.ConvertMemberName(System.Reflection.MemberInfo member) { throw null; } + public override object? Deserialize(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken) { throw null; } + public override System.Threading.Tasks.ValueTask DeserializeAsync(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken) { throw null; } + public override void Serialize(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken) { } + public override System.BinaryData Serialize(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask SerializeAsync(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken) { throw null; } + public override System.Threading.Tasks.ValueTask SerializeAsync(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public abstract partial class ObjectSerializer + { + protected ObjectSerializer() { } + public abstract object? Deserialize(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.ValueTask DeserializeAsync(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken); + public abstract void Serialize(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken); + public virtual System.BinaryData Serialize(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public abstract System.Threading.Tasks.ValueTask SerializeAsync(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken); + public virtual System.Threading.Tasks.ValueTask SerializeAsync(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } +} +namespace Azure.GeoJson { [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct GeoArray : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable @@ -516,7 +613,7 @@ namespace Azure.Core.GeoJson 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; } + public Azure.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)] @@ -531,7 +628,7 @@ public void Dispose() { } public void Reset() { } } } - public sealed partial class GeoBoundingBox : System.IEquatable + 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) { } @@ -542,57 +639,57 @@ public GeoBoundingBox(double west, double south, double east, double north, doub 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 bool Equals(Azure.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 sealed partial class GeoCollection : Azure.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 GeoCollection(System.Collections.Generic.IEnumerable geometries) { } + public GeoCollection(System.Collections.Generic.IEnumerable geometries, Azure.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; } + public Azure.GeoJson.GeoObject this[int index] { get { throw null; } } + public override Azure.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 GeoJsonConverter : System.Text.Json.Serialization.JsonConverter + public sealed partial class GeoJsonConverter : System.Text.Json.Serialization.JsonConverter { public GeoJsonConverter() { } public override bool CanConvert(System.Type typeToConvert) { throw null; } - public override Azure.Core.GeoJson.GeoObject Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { throw null; } - public override void Write(System.Text.Json.Utf8JsonWriter writer, Azure.Core.GeoJson.GeoObject value, System.Text.Json.JsonSerializerOptions options) { } + public override Azure.GeoJson.GeoObject Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { throw null; } + public override void Write(System.Text.Json.Utf8JsonWriter writer, Azure.GeoJson.GeoObject value, System.Text.Json.JsonSerializerOptions options) { } } public sealed partial class GeoLinearRing { - public GeoLinearRing(System.Collections.Generic.IEnumerable coordinates) { } - public Azure.Core.GeoJson.GeoArray Coordinates { get { throw null; } } + public GeoLinearRing(System.Collections.Generic.IEnumerable coordinates) { } + public Azure.GeoJson.GeoArray Coordinates { get { throw null; } } } - public sealed partial class GeoLineString : Azure.Core.GeoJson.GeoObject + public sealed partial class GeoLineString : Azure.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 GeoLineString(System.Collections.Generic.IEnumerable coordinates) { } + public GeoLineString(System.Collections.Generic.IEnumerable coordinates, Azure.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } + public Azure.GeoJson.GeoArray Coordinates { get { throw null; } } + public override Azure.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 sealed partial class GeoLineStringCollection : Azure.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 GeoLineStringCollection(System.Collections.Generic.IEnumerable lines) { } + public GeoLineStringCollection(System.Collections.Generic.IEnumerable lines, Azure.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } + public Azure.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; } + public Azure.GeoJson.GeoLineString this[int index] { get { throw null; } } + public override Azure.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 Azure.GeoJson.GeoBoundingBox? BoundingBox { get { throw null; } } + public abstract Azure.GeoJson.GeoObjectType Type { get; } + public static Azure.GeoJson.GeoObject Parse(string json) { throw null; } public override string ToString() { throw null; } public bool TryGetCustomProperty(string name, out object? value) { throw null; } public void WriteTo(System.Text.Json.Utf8JsonWriter writer) { } @@ -607,49 +704,49 @@ public enum GeoObjectType MultiLineString = 5, GeometryCollection = 6, } - public sealed partial class GeoPoint : Azure.Core.GeoJson.GeoObject + public sealed partial class GeoPoint : Azure.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(Azure.GeoJson.GeoPosition position) { } + public GeoPoint(Azure.GeoJson.GeoPosition position, Azure.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 Azure.GeoJson.GeoPosition Coordinates { get { throw null; } } + public override Azure.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 sealed partial class GeoPointCollection : Azure.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 GeoPointCollection(System.Collections.Generic.IEnumerable points) { } + public GeoPointCollection(System.Collections.Generic.IEnumerable points, Azure.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } + public Azure.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; } + public Azure.GeoJson.GeoPoint this[int index] { get { throw null; } } + public override Azure.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 sealed partial class GeoPolygon : Azure.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 Rings { get { throw null; } } - public override Azure.Core.GeoJson.GeoObjectType Type { get { throw null; } } + public GeoPolygon(System.Collections.Generic.IEnumerable rings) { } + public GeoPolygon(System.Collections.Generic.IEnumerable rings, Azure.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } + public GeoPolygon(System.Collections.Generic.IEnumerable positions) { } + public Azure.GeoJson.GeoArray> Coordinates { get { throw null; } } + public Azure.GeoJson.GeoLinearRing OuterRing { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Rings { get { throw null; } } + public override Azure.GeoJson.GeoObjectType Type { get { throw null; } } } - public sealed partial class GeoPolygonCollection : Azure.Core.GeoJson.GeoObject, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.IEnumerable + public sealed partial class GeoPolygonCollection : Azure.GeoJson.GeoObject, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.IEnumerable { - public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons) { } - public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons, Azure.Core.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } - public Azure.Core.GeoJson.GeoArray>> Coordinates { get { throw null; } } + public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons) { } + public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons, Azure.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } + public Azure.GeoJson.GeoArray>> Coordinates { get { throw null; } } public int Count { get { throw null; } } - public Azure.Core.GeoJson.GeoPolygon this[int index] { get { throw null; } } - public override Azure.Core.GeoJson.GeoObjectType Type { get { throw null; } } - public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; } + public Azure.GeoJson.GeoPolygon this[int index] { get { throw null; } } + public override Azure.GeoJson.GeoObjectType Type { get { throw null; } } + public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct GeoPosition : System.IEquatable + public readonly partial struct GeoPosition : System.IEquatable { private readonly int _dummyPrimitive; public GeoPosition(double longitude, double latitude) { throw null; } @@ -659,111 +756,14 @@ public GeoPolygonCollection(System.Collections.Generic.IEnumerable scopes) { } - public BearerTokenAuthenticationPolicy(Azure.Core.TokenCredential credential, string scope) { } - protected void AuthenticateAndAuthorizeRequest(Azure.Core.HttpMessage message, Azure.Core.TokenRequestContext context) { } - protected System.Threading.Tasks.ValueTask AuthenticateAndAuthorizeRequestAsync(Azure.Core.HttpMessage message, Azure.Core.TokenRequestContext context) { throw null; } - protected virtual void AuthorizeRequest(Azure.Core.HttpMessage message) { } - protected virtual System.Threading.Tasks.ValueTask AuthorizeRequestAsync(Azure.Core.HttpMessage message) { throw null; } - protected virtual bool AuthorizeRequestOnChallenge(Azure.Core.HttpMessage message) { throw null; } - protected virtual System.Threading.Tasks.ValueTask AuthorizeRequestOnChallengeAsync(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; } - } - public partial class HttpClientTransport : Azure.Core.Pipeline.HttpPipelineTransport - { - public static readonly Azure.Core.Pipeline.HttpClientTransport Shared; - public HttpClientTransport() { } - public HttpClientTransport(System.Net.Http.HttpClient client) { } - public HttpClientTransport(System.Net.Http.HttpMessageHandler messageHandler) { } - public sealed override Azure.Core.Request CreateRequest() { throw null; } - public override void Process(Azure.Core.HttpMessage message) { } - public sealed override System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message) { throw null; } - } - public partial class HttpPipeline - { - public HttpPipeline(Azure.Core.Pipeline.HttpPipelineTransport transport, Azure.Core.Pipeline.HttpPipelinePolicy[]? policies = null, Azure.Core.ResponseClassifier? responseClassifier = null) { } - public Azure.Core.ResponseClassifier ResponseClassifier { get { throw null; } } - public static System.IDisposable CreateClientRequestIdScope(string? clientRequestId) { throw null; } - public static System.IDisposable CreateHttpMessagePropertiesScope(System.Collections.Generic.IDictionary messageProperties) { throw null; } - public Azure.Core.HttpMessage CreateMessage() { throw null; } - public Azure.Core.Request CreateRequest() { throw null; } - public void Send(Azure.Core.HttpMessage message, System.Threading.CancellationToken cancellationToken) { } - public System.Threading.Tasks.ValueTask SendAsync(Azure.Core.HttpMessage message, System.Threading.CancellationToken cancellationToken) { throw null; } - public Azure.Response SendRequest(Azure.Core.Request request, System.Threading.CancellationToken cancellationToken) { throw null; } - public System.Threading.Tasks.ValueTask SendRequestAsync(Azure.Core.Request request, System.Threading.CancellationToken cancellationToken) { throw null; } - } - public static partial class HttpPipelineBuilder - { - public static Azure.Core.Pipeline.HttpPipeline Build(Azure.Core.ClientOptions options, params Azure.Core.Pipeline.HttpPipelinePolicy[] perRetryPolicies) { throw null; } - public static Azure.Core.Pipeline.HttpPipeline Build(Azure.Core.ClientOptions options, Azure.Core.Pipeline.HttpPipelinePolicy[] perCallPolicies, Azure.Core.Pipeline.HttpPipelinePolicy[] perRetryPolicies, Azure.Core.ResponseClassifier responseClassifier) { throw null; } - } - public abstract partial class HttpPipelinePolicy - { - protected HttpPipelinePolicy() { } - public abstract void Process(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline); - public abstract System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline); - 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; } - } - public abstract partial class HttpPipelineSynchronousPolicy : Azure.Core.Pipeline.HttpPipelinePolicy - { - protected HttpPipelineSynchronousPolicy() { } - public virtual void OnReceivedResponse(Azure.Core.HttpMessage message) { } - public virtual void OnSendingRequest(Azure.Core.HttpMessage message) { } - 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; } - } - public abstract partial class HttpPipelineTransport - { - protected HttpPipelineTransport() { } - public abstract Azure.Core.Request CreateRequest(); - public abstract void Process(Azure.Core.HttpMessage message); - public abstract System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message); - } -} -namespace Azure.Core.Serialization -{ - public partial interface IMemberNameConverter - { - string? ConvertMemberName(System.Reflection.MemberInfo member); - } - public partial class JsonObjectSerializer : Azure.Core.Serialization.ObjectSerializer, Azure.Core.Serialization.IMemberNameConverter - { - public JsonObjectSerializer() { } - public JsonObjectSerializer(System.Text.Json.JsonSerializerOptions options) { } - public static Azure.Core.Serialization.JsonObjectSerializer Default { get { throw null; } } - string? Azure.Core.Serialization.IMemberNameConverter.ConvertMemberName(System.Reflection.MemberInfo member) { throw null; } - public override object? Deserialize(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken) { throw null; } - public override System.Threading.Tasks.ValueTask DeserializeAsync(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken) { throw null; } - public override void Serialize(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken) { } - public override System.BinaryData Serialize(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override System.Threading.Tasks.ValueTask SerializeAsync(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken) { throw null; } - public override System.Threading.Tasks.ValueTask SerializeAsync(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public abstract partial class ObjectSerializer - { - protected ObjectSerializer() { } - public abstract object? Deserialize(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken); - public abstract System.Threading.Tasks.ValueTask DeserializeAsync(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken); - public abstract void Serialize(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken); - public virtual System.BinaryData Serialize(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public abstract System.Threading.Tasks.ValueTask SerializeAsync(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken); - public virtual System.Threading.Tasks.ValueTask SerializeAsync(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } -} namespace Azure.Messaging { public partial class CloudEvent 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 ce6552027c5d2..7e430e9a4c323 100644 --- a/sdk/core/Azure.Core/api/Azure.Core.net5.0.cs +++ b/sdk/core/Azure.Core/api/Azure.Core.net5.0.cs @@ -507,7 +507,104 @@ public partial interface IAzureClientFactoryBuilderWithCredential Azure.Core.Extensions.IAzureClientBuilder RegisterClientFactory(System.Func clientFactory, bool requiresCredential = true) where TOptions : class; } } -namespace Azure.Core.GeoJson +namespace Azure.Core.Pipeline +{ + public partial class BearerTokenAuthenticationPolicy : Azure.Core.Pipeline.HttpPipelinePolicy + { + public BearerTokenAuthenticationPolicy(Azure.Core.TokenCredential credential, System.Collections.Generic.IEnumerable scopes) { } + public BearerTokenAuthenticationPolicy(Azure.Core.TokenCredential credential, string scope) { } + protected void AuthenticateAndAuthorizeRequest(Azure.Core.HttpMessage message, Azure.Core.TokenRequestContext context) { } + protected System.Threading.Tasks.ValueTask AuthenticateAndAuthorizeRequestAsync(Azure.Core.HttpMessage message, Azure.Core.TokenRequestContext context) { throw null; } + protected virtual void AuthorizeRequest(Azure.Core.HttpMessage message) { } + protected virtual System.Threading.Tasks.ValueTask AuthorizeRequestAsync(Azure.Core.HttpMessage message) { throw null; } + protected virtual bool AuthorizeRequestOnChallenge(Azure.Core.HttpMessage message) { throw null; } + protected virtual System.Threading.Tasks.ValueTask AuthorizeRequestOnChallengeAsync(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; } + } + public partial class HttpClientTransport : Azure.Core.Pipeline.HttpPipelineTransport + { + public static readonly Azure.Core.Pipeline.HttpClientTransport Shared; + public HttpClientTransport() { } + public HttpClientTransport(System.Net.Http.HttpClient client) { } + public HttpClientTransport(System.Net.Http.HttpMessageHandler messageHandler) { } + public sealed override Azure.Core.Request CreateRequest() { throw null; } + public override void Process(Azure.Core.HttpMessage message) { } + public sealed override System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message) { throw null; } + } + public partial class HttpPipeline + { + public HttpPipeline(Azure.Core.Pipeline.HttpPipelineTransport transport, Azure.Core.Pipeline.HttpPipelinePolicy[]? policies = null, Azure.Core.ResponseClassifier? responseClassifier = null) { } + public Azure.Core.ResponseClassifier ResponseClassifier { get { throw null; } } + public static System.IDisposable CreateClientRequestIdScope(string? clientRequestId) { throw null; } + public static System.IDisposable CreateHttpMessagePropertiesScope(System.Collections.Generic.IDictionary messageProperties) { throw null; } + public Azure.Core.HttpMessage CreateMessage() { throw null; } + public Azure.Core.Request CreateRequest() { throw null; } + public void Send(Azure.Core.HttpMessage message, System.Threading.CancellationToken cancellationToken) { } + public System.Threading.Tasks.ValueTask SendAsync(Azure.Core.HttpMessage message, System.Threading.CancellationToken cancellationToken) { throw null; } + public Azure.Response SendRequest(Azure.Core.Request request, System.Threading.CancellationToken cancellationToken) { throw null; } + public System.Threading.Tasks.ValueTask SendRequestAsync(Azure.Core.Request request, System.Threading.CancellationToken cancellationToken) { throw null; } + } + public static partial class HttpPipelineBuilder + { + public static Azure.Core.Pipeline.HttpPipeline Build(Azure.Core.ClientOptions options, params Azure.Core.Pipeline.HttpPipelinePolicy[] perRetryPolicies) { throw null; } + public static Azure.Core.Pipeline.HttpPipeline Build(Azure.Core.ClientOptions options, Azure.Core.Pipeline.HttpPipelinePolicy[] perCallPolicies, Azure.Core.Pipeline.HttpPipelinePolicy[] perRetryPolicies, Azure.Core.ResponseClassifier responseClassifier) { throw null; } + } + public abstract partial class HttpPipelinePolicy + { + protected HttpPipelinePolicy() { } + public abstract void Process(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline); + public abstract System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline); + 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; } + } + public abstract partial class HttpPipelineSynchronousPolicy : Azure.Core.Pipeline.HttpPipelinePolicy + { + protected HttpPipelineSynchronousPolicy() { } + public virtual void OnReceivedResponse(Azure.Core.HttpMessage message) { } + public virtual void OnSendingRequest(Azure.Core.HttpMessage message) { } + 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; } + } + public abstract partial class HttpPipelineTransport + { + protected HttpPipelineTransport() { } + public abstract Azure.Core.Request CreateRequest(); + public abstract void Process(Azure.Core.HttpMessage message); + public abstract System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message); + } +} +namespace Azure.Core.Serialization +{ + public partial interface IMemberNameConverter + { + string? ConvertMemberName(System.Reflection.MemberInfo member); + } + public partial class JsonObjectSerializer : Azure.Core.Serialization.ObjectSerializer, Azure.Core.Serialization.IMemberNameConverter + { + public JsonObjectSerializer() { } + public JsonObjectSerializer(System.Text.Json.JsonSerializerOptions options) { } + public static Azure.Core.Serialization.JsonObjectSerializer Default { get { throw null; } } + string? Azure.Core.Serialization.IMemberNameConverter.ConvertMemberName(System.Reflection.MemberInfo member) { throw null; } + public override object? Deserialize(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken) { throw null; } + public override System.Threading.Tasks.ValueTask DeserializeAsync(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken) { throw null; } + public override void Serialize(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken) { } + public override System.BinaryData Serialize(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask SerializeAsync(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken) { throw null; } + public override System.Threading.Tasks.ValueTask SerializeAsync(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public abstract partial class ObjectSerializer + { + protected ObjectSerializer() { } + public abstract object? Deserialize(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.ValueTask DeserializeAsync(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken); + public abstract void Serialize(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken); + public virtual System.BinaryData Serialize(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public abstract System.Threading.Tasks.ValueTask SerializeAsync(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken); + public virtual System.Threading.Tasks.ValueTask SerializeAsync(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } +} +namespace Azure.GeoJson { [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct GeoArray : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable @@ -516,7 +613,7 @@ namespace Azure.Core.GeoJson 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; } + public Azure.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)] @@ -531,7 +628,7 @@ public void Dispose() { } public void Reset() { } } } - public sealed partial class GeoBoundingBox : System.IEquatable + 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) { } @@ -542,57 +639,57 @@ public GeoBoundingBox(double west, double south, double east, double north, doub 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 bool Equals(Azure.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 sealed partial class GeoCollection : Azure.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 GeoCollection(System.Collections.Generic.IEnumerable geometries) { } + public GeoCollection(System.Collections.Generic.IEnumerable geometries, Azure.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; } + public Azure.GeoJson.GeoObject this[int index] { get { throw null; } } + public override Azure.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 GeoJsonConverter : System.Text.Json.Serialization.JsonConverter + public sealed partial class GeoJsonConverter : System.Text.Json.Serialization.JsonConverter { public GeoJsonConverter() { } public override bool CanConvert(System.Type typeToConvert) { throw null; } - public override Azure.Core.GeoJson.GeoObject Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { throw null; } - public override void Write(System.Text.Json.Utf8JsonWriter writer, Azure.Core.GeoJson.GeoObject value, System.Text.Json.JsonSerializerOptions options) { } + public override Azure.GeoJson.GeoObject Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { throw null; } + public override void Write(System.Text.Json.Utf8JsonWriter writer, Azure.GeoJson.GeoObject value, System.Text.Json.JsonSerializerOptions options) { } } public sealed partial class GeoLinearRing { - public GeoLinearRing(System.Collections.Generic.IEnumerable coordinates) { } - public Azure.Core.GeoJson.GeoArray Coordinates { get { throw null; } } + public GeoLinearRing(System.Collections.Generic.IEnumerable coordinates) { } + public Azure.GeoJson.GeoArray Coordinates { get { throw null; } } } - public sealed partial class GeoLineString : Azure.Core.GeoJson.GeoObject + public sealed partial class GeoLineString : Azure.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 GeoLineString(System.Collections.Generic.IEnumerable coordinates) { } + public GeoLineString(System.Collections.Generic.IEnumerable coordinates, Azure.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } + public Azure.GeoJson.GeoArray Coordinates { get { throw null; } } + public override Azure.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 sealed partial class GeoLineStringCollection : Azure.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 GeoLineStringCollection(System.Collections.Generic.IEnumerable lines) { } + public GeoLineStringCollection(System.Collections.Generic.IEnumerable lines, Azure.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } + public Azure.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; } + public Azure.GeoJson.GeoLineString this[int index] { get { throw null; } } + public override Azure.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 Azure.GeoJson.GeoBoundingBox? BoundingBox { get { throw null; } } + public abstract Azure.GeoJson.GeoObjectType Type { get; } + public static Azure.GeoJson.GeoObject Parse(string json) { throw null; } public override string ToString() { throw null; } public bool TryGetCustomProperty(string name, out object? value) { throw null; } public void WriteTo(System.Text.Json.Utf8JsonWriter writer) { } @@ -607,49 +704,49 @@ public enum GeoObjectType MultiLineString = 5, GeometryCollection = 6, } - public sealed partial class GeoPoint : Azure.Core.GeoJson.GeoObject + public sealed partial class GeoPoint : Azure.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(Azure.GeoJson.GeoPosition position) { } + public GeoPoint(Azure.GeoJson.GeoPosition position, Azure.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 Azure.GeoJson.GeoPosition Coordinates { get { throw null; } } + public override Azure.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 sealed partial class GeoPointCollection : Azure.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 GeoPointCollection(System.Collections.Generic.IEnumerable points) { } + public GeoPointCollection(System.Collections.Generic.IEnumerable points, Azure.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } + public Azure.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; } + public Azure.GeoJson.GeoPoint this[int index] { get { throw null; } } + public override Azure.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 sealed partial class GeoPolygon : Azure.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 Rings { get { throw null; } } - public override Azure.Core.GeoJson.GeoObjectType Type { get { throw null; } } + public GeoPolygon(System.Collections.Generic.IEnumerable rings) { } + public GeoPolygon(System.Collections.Generic.IEnumerable rings, Azure.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } + public GeoPolygon(System.Collections.Generic.IEnumerable positions) { } + public Azure.GeoJson.GeoArray> Coordinates { get { throw null; } } + public Azure.GeoJson.GeoLinearRing OuterRing { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Rings { get { throw null; } } + public override Azure.GeoJson.GeoObjectType Type { get { throw null; } } } - public sealed partial class GeoPolygonCollection : Azure.Core.GeoJson.GeoObject, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.IEnumerable + public sealed partial class GeoPolygonCollection : Azure.GeoJson.GeoObject, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.IEnumerable { - public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons) { } - public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons, Azure.Core.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } - public Azure.Core.GeoJson.GeoArray>> Coordinates { get { throw null; } } + public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons) { } + public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons, Azure.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } + public Azure.GeoJson.GeoArray>> Coordinates { get { throw null; } } public int Count { get { throw null; } } - public Azure.Core.GeoJson.GeoPolygon this[int index] { get { throw null; } } - public override Azure.Core.GeoJson.GeoObjectType Type { get { throw null; } } - public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; } + public Azure.GeoJson.GeoPolygon this[int index] { get { throw null; } } + public override Azure.GeoJson.GeoObjectType Type { get { throw null; } } + public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct GeoPosition : System.IEquatable + public readonly partial struct GeoPosition : System.IEquatable { private readonly int _dummyPrimitive; public GeoPosition(double longitude, double latitude) { throw null; } @@ -659,111 +756,14 @@ public GeoPolygonCollection(System.Collections.Generic.IEnumerable scopes) { } - public BearerTokenAuthenticationPolicy(Azure.Core.TokenCredential credential, string scope) { } - protected void AuthenticateAndAuthorizeRequest(Azure.Core.HttpMessage message, Azure.Core.TokenRequestContext context) { } - protected System.Threading.Tasks.ValueTask AuthenticateAndAuthorizeRequestAsync(Azure.Core.HttpMessage message, Azure.Core.TokenRequestContext context) { throw null; } - protected virtual void AuthorizeRequest(Azure.Core.HttpMessage message) { } - protected virtual System.Threading.Tasks.ValueTask AuthorizeRequestAsync(Azure.Core.HttpMessage message) { throw null; } - protected virtual bool AuthorizeRequestOnChallenge(Azure.Core.HttpMessage message) { throw null; } - protected virtual System.Threading.Tasks.ValueTask AuthorizeRequestOnChallengeAsync(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; } - } - public partial class HttpClientTransport : Azure.Core.Pipeline.HttpPipelineTransport - { - public static readonly Azure.Core.Pipeline.HttpClientTransport Shared; - public HttpClientTransport() { } - public HttpClientTransport(System.Net.Http.HttpClient client) { } - public HttpClientTransport(System.Net.Http.HttpMessageHandler messageHandler) { } - public sealed override Azure.Core.Request CreateRequest() { throw null; } - public override void Process(Azure.Core.HttpMessage message) { } - public sealed override System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message) { throw null; } - } - public partial class HttpPipeline - { - public HttpPipeline(Azure.Core.Pipeline.HttpPipelineTransport transport, Azure.Core.Pipeline.HttpPipelinePolicy[]? policies = null, Azure.Core.ResponseClassifier? responseClassifier = null) { } - public Azure.Core.ResponseClassifier ResponseClassifier { get { throw null; } } - public static System.IDisposable CreateClientRequestIdScope(string? clientRequestId) { throw null; } - public static System.IDisposable CreateHttpMessagePropertiesScope(System.Collections.Generic.IDictionary messageProperties) { throw null; } - public Azure.Core.HttpMessage CreateMessage() { throw null; } - public Azure.Core.Request CreateRequest() { throw null; } - public void Send(Azure.Core.HttpMessage message, System.Threading.CancellationToken cancellationToken) { } - public System.Threading.Tasks.ValueTask SendAsync(Azure.Core.HttpMessage message, System.Threading.CancellationToken cancellationToken) { throw null; } - public Azure.Response SendRequest(Azure.Core.Request request, System.Threading.CancellationToken cancellationToken) { throw null; } - public System.Threading.Tasks.ValueTask SendRequestAsync(Azure.Core.Request request, System.Threading.CancellationToken cancellationToken) { throw null; } - } - public static partial class HttpPipelineBuilder - { - public static Azure.Core.Pipeline.HttpPipeline Build(Azure.Core.ClientOptions options, params Azure.Core.Pipeline.HttpPipelinePolicy[] perRetryPolicies) { throw null; } - public static Azure.Core.Pipeline.HttpPipeline Build(Azure.Core.ClientOptions options, Azure.Core.Pipeline.HttpPipelinePolicy[] perCallPolicies, Azure.Core.Pipeline.HttpPipelinePolicy[] perRetryPolicies, Azure.Core.ResponseClassifier responseClassifier) { throw null; } - } - public abstract partial class HttpPipelinePolicy - { - protected HttpPipelinePolicy() { } - public abstract void Process(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline); - public abstract System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline); - 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; } - } - public abstract partial class HttpPipelineSynchronousPolicy : Azure.Core.Pipeline.HttpPipelinePolicy - { - protected HttpPipelineSynchronousPolicy() { } - public virtual void OnReceivedResponse(Azure.Core.HttpMessage message) { } - public virtual void OnSendingRequest(Azure.Core.HttpMessage message) { } - 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; } - } - public abstract partial class HttpPipelineTransport - { - protected HttpPipelineTransport() { } - public abstract Azure.Core.Request CreateRequest(); - public abstract void Process(Azure.Core.HttpMessage message); - public abstract System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message); - } -} -namespace Azure.Core.Serialization -{ - public partial interface IMemberNameConverter - { - string? ConvertMemberName(System.Reflection.MemberInfo member); - } - public partial class JsonObjectSerializer : Azure.Core.Serialization.ObjectSerializer, Azure.Core.Serialization.IMemberNameConverter - { - public JsonObjectSerializer() { } - public JsonObjectSerializer(System.Text.Json.JsonSerializerOptions options) { } - public static Azure.Core.Serialization.JsonObjectSerializer Default { get { throw null; } } - string? Azure.Core.Serialization.IMemberNameConverter.ConvertMemberName(System.Reflection.MemberInfo member) { throw null; } - public override object? Deserialize(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken) { throw null; } - public override System.Threading.Tasks.ValueTask DeserializeAsync(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken) { throw null; } - public override void Serialize(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken) { } - public override System.BinaryData Serialize(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override System.Threading.Tasks.ValueTask SerializeAsync(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken) { throw null; } - public override System.Threading.Tasks.ValueTask SerializeAsync(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public abstract partial class ObjectSerializer - { - protected ObjectSerializer() { } - public abstract object? Deserialize(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken); - public abstract System.Threading.Tasks.ValueTask DeserializeAsync(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken); - public abstract void Serialize(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken); - public virtual System.BinaryData Serialize(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public abstract System.Threading.Tasks.ValueTask SerializeAsync(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken); - public virtual System.Threading.Tasks.ValueTask SerializeAsync(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } -} namespace Azure.Messaging { public partial class CloudEvent diff --git a/sdk/core/Azure.Core/api/Azure.Core.netcoreapp2.1.cs b/sdk/core/Azure.Core/api/Azure.Core.netcoreapp2.1.cs index 5051389e87fa9..412af64408ba3 100644 --- a/sdk/core/Azure.Core/api/Azure.Core.netcoreapp2.1.cs +++ b/sdk/core/Azure.Core/api/Azure.Core.netcoreapp2.1.cs @@ -507,7 +507,104 @@ public partial interface IAzureClientFactoryBuilderWithCredential Azure.Core.Extensions.IAzureClientBuilder RegisterClientFactory(System.Func clientFactory, bool requiresCredential = true) where TOptions : class; } } -namespace Azure.Core.GeoJson +namespace Azure.Core.Pipeline +{ + public partial class BearerTokenAuthenticationPolicy : Azure.Core.Pipeline.HttpPipelinePolicy + { + public BearerTokenAuthenticationPolicy(Azure.Core.TokenCredential credential, System.Collections.Generic.IEnumerable scopes) { } + public BearerTokenAuthenticationPolicy(Azure.Core.TokenCredential credential, string scope) { } + protected void AuthenticateAndAuthorizeRequest(Azure.Core.HttpMessage message, Azure.Core.TokenRequestContext context) { } + protected System.Threading.Tasks.ValueTask AuthenticateAndAuthorizeRequestAsync(Azure.Core.HttpMessage message, Azure.Core.TokenRequestContext context) { throw null; } + protected virtual void AuthorizeRequest(Azure.Core.HttpMessage message) { } + protected virtual System.Threading.Tasks.ValueTask AuthorizeRequestAsync(Azure.Core.HttpMessage message) { throw null; } + protected virtual bool AuthorizeRequestOnChallenge(Azure.Core.HttpMessage message) { throw null; } + protected virtual System.Threading.Tasks.ValueTask AuthorizeRequestOnChallengeAsync(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; } + } + public partial class HttpClientTransport : Azure.Core.Pipeline.HttpPipelineTransport + { + public static readonly Azure.Core.Pipeline.HttpClientTransport Shared; + public HttpClientTransport() { } + public HttpClientTransport(System.Net.Http.HttpClient client) { } + public HttpClientTransport(System.Net.Http.HttpMessageHandler messageHandler) { } + public sealed override Azure.Core.Request CreateRequest() { throw null; } + public override void Process(Azure.Core.HttpMessage message) { } + public sealed override System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message) { throw null; } + } + public partial class HttpPipeline + { + public HttpPipeline(Azure.Core.Pipeline.HttpPipelineTransport transport, Azure.Core.Pipeline.HttpPipelinePolicy[]? policies = null, Azure.Core.ResponseClassifier? responseClassifier = null) { } + public Azure.Core.ResponseClassifier ResponseClassifier { get { throw null; } } + public static System.IDisposable CreateClientRequestIdScope(string? clientRequestId) { throw null; } + public static System.IDisposable CreateHttpMessagePropertiesScope(System.Collections.Generic.IDictionary messageProperties) { throw null; } + public Azure.Core.HttpMessage CreateMessage() { throw null; } + public Azure.Core.Request CreateRequest() { throw null; } + public void Send(Azure.Core.HttpMessage message, System.Threading.CancellationToken cancellationToken) { } + public System.Threading.Tasks.ValueTask SendAsync(Azure.Core.HttpMessage message, System.Threading.CancellationToken cancellationToken) { throw null; } + public Azure.Response SendRequest(Azure.Core.Request request, System.Threading.CancellationToken cancellationToken) { throw null; } + public System.Threading.Tasks.ValueTask SendRequestAsync(Azure.Core.Request request, System.Threading.CancellationToken cancellationToken) { throw null; } + } + public static partial class HttpPipelineBuilder + { + public static Azure.Core.Pipeline.HttpPipeline Build(Azure.Core.ClientOptions options, params Azure.Core.Pipeline.HttpPipelinePolicy[] perRetryPolicies) { throw null; } + public static Azure.Core.Pipeline.HttpPipeline Build(Azure.Core.ClientOptions options, Azure.Core.Pipeline.HttpPipelinePolicy[] perCallPolicies, Azure.Core.Pipeline.HttpPipelinePolicy[] perRetryPolicies, Azure.Core.ResponseClassifier responseClassifier) { throw null; } + } + public abstract partial class HttpPipelinePolicy + { + protected HttpPipelinePolicy() { } + public abstract void Process(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline); + public abstract System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline); + 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; } + } + public abstract partial class HttpPipelineSynchronousPolicy : Azure.Core.Pipeline.HttpPipelinePolicy + { + protected HttpPipelineSynchronousPolicy() { } + public virtual void OnReceivedResponse(Azure.Core.HttpMessage message) { } + public virtual void OnSendingRequest(Azure.Core.HttpMessage message) { } + 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; } + } + public abstract partial class HttpPipelineTransport + { + protected HttpPipelineTransport() { } + public abstract Azure.Core.Request CreateRequest(); + public abstract void Process(Azure.Core.HttpMessage message); + public abstract System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message); + } +} +namespace Azure.Core.Serialization +{ + public partial interface IMemberNameConverter + { + string? ConvertMemberName(System.Reflection.MemberInfo member); + } + public partial class JsonObjectSerializer : Azure.Core.Serialization.ObjectSerializer, Azure.Core.Serialization.IMemberNameConverter + { + public JsonObjectSerializer() { } + public JsonObjectSerializer(System.Text.Json.JsonSerializerOptions options) { } + public static Azure.Core.Serialization.JsonObjectSerializer Default { get { throw null; } } + string? Azure.Core.Serialization.IMemberNameConverter.ConvertMemberName(System.Reflection.MemberInfo member) { throw null; } + public override object? Deserialize(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken) { throw null; } + public override System.Threading.Tasks.ValueTask DeserializeAsync(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken) { throw null; } + public override void Serialize(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken) { } + public override System.BinaryData Serialize(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask SerializeAsync(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken) { throw null; } + public override System.Threading.Tasks.ValueTask SerializeAsync(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public abstract partial class ObjectSerializer + { + protected ObjectSerializer() { } + public abstract object? Deserialize(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.ValueTask DeserializeAsync(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken); + public abstract void Serialize(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken); + public virtual System.BinaryData Serialize(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public abstract System.Threading.Tasks.ValueTask SerializeAsync(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken); + public virtual System.Threading.Tasks.ValueTask SerializeAsync(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } +} +namespace Azure.GeoJson { [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct GeoArray : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable @@ -516,7 +613,7 @@ namespace Azure.Core.GeoJson 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; } + public Azure.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)] @@ -531,7 +628,7 @@ public void Dispose() { } public void Reset() { } } } - public sealed partial class GeoBoundingBox : System.IEquatable + 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) { } @@ -542,57 +639,57 @@ public GeoBoundingBox(double west, double south, double east, double north, doub 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 bool Equals(Azure.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 sealed partial class GeoCollection : Azure.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 GeoCollection(System.Collections.Generic.IEnumerable geometries) { } + public GeoCollection(System.Collections.Generic.IEnumerable geometries, Azure.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; } + public Azure.GeoJson.GeoObject this[int index] { get { throw null; } } + public override Azure.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 GeoJsonConverter : System.Text.Json.Serialization.JsonConverter + public sealed partial class GeoJsonConverter : System.Text.Json.Serialization.JsonConverter { public GeoJsonConverter() { } public override bool CanConvert(System.Type typeToConvert) { throw null; } - public override Azure.Core.GeoJson.GeoObject Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { throw null; } - public override void Write(System.Text.Json.Utf8JsonWriter writer, Azure.Core.GeoJson.GeoObject value, System.Text.Json.JsonSerializerOptions options) { } + public override Azure.GeoJson.GeoObject Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { throw null; } + public override void Write(System.Text.Json.Utf8JsonWriter writer, Azure.GeoJson.GeoObject value, System.Text.Json.JsonSerializerOptions options) { } } public sealed partial class GeoLinearRing { - public GeoLinearRing(System.Collections.Generic.IEnumerable coordinates) { } - public Azure.Core.GeoJson.GeoArray Coordinates { get { throw null; } } + public GeoLinearRing(System.Collections.Generic.IEnumerable coordinates) { } + public Azure.GeoJson.GeoArray Coordinates { get { throw null; } } } - public sealed partial class GeoLineString : Azure.Core.GeoJson.GeoObject + public sealed partial class GeoLineString : Azure.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 GeoLineString(System.Collections.Generic.IEnumerable coordinates) { } + public GeoLineString(System.Collections.Generic.IEnumerable coordinates, Azure.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } + public Azure.GeoJson.GeoArray Coordinates { get { throw null; } } + public override Azure.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 sealed partial class GeoLineStringCollection : Azure.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 GeoLineStringCollection(System.Collections.Generic.IEnumerable lines) { } + public GeoLineStringCollection(System.Collections.Generic.IEnumerable lines, Azure.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } + public Azure.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; } + public Azure.GeoJson.GeoLineString this[int index] { get { throw null; } } + public override Azure.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 Azure.GeoJson.GeoBoundingBox? BoundingBox { get { throw null; } } + public abstract Azure.GeoJson.GeoObjectType Type { get; } + public static Azure.GeoJson.GeoObject Parse(string json) { throw null; } public override string ToString() { throw null; } public bool TryGetCustomProperty(string name, out object? value) { throw null; } public void WriteTo(System.Text.Json.Utf8JsonWriter writer) { } @@ -607,49 +704,49 @@ public enum GeoObjectType MultiLineString = 5, GeometryCollection = 6, } - public sealed partial class GeoPoint : Azure.Core.GeoJson.GeoObject + public sealed partial class GeoPoint : Azure.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(Azure.GeoJson.GeoPosition position) { } + public GeoPoint(Azure.GeoJson.GeoPosition position, Azure.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 Azure.GeoJson.GeoPosition Coordinates { get { throw null; } } + public override Azure.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 sealed partial class GeoPointCollection : Azure.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 GeoPointCollection(System.Collections.Generic.IEnumerable points) { } + public GeoPointCollection(System.Collections.Generic.IEnumerable points, Azure.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } + public Azure.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; } + public Azure.GeoJson.GeoPoint this[int index] { get { throw null; } } + public override Azure.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 sealed partial class GeoPolygon : Azure.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 Rings { get { throw null; } } - public override Azure.Core.GeoJson.GeoObjectType Type { get { throw null; } } + public GeoPolygon(System.Collections.Generic.IEnumerable rings) { } + public GeoPolygon(System.Collections.Generic.IEnumerable rings, Azure.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } + public GeoPolygon(System.Collections.Generic.IEnumerable positions) { } + public Azure.GeoJson.GeoArray> Coordinates { get { throw null; } } + public Azure.GeoJson.GeoLinearRing OuterRing { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Rings { get { throw null; } } + public override Azure.GeoJson.GeoObjectType Type { get { throw null; } } } - public sealed partial class GeoPolygonCollection : Azure.Core.GeoJson.GeoObject, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.IEnumerable + public sealed partial class GeoPolygonCollection : Azure.GeoJson.GeoObject, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.IEnumerable { - public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons) { } - public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons, Azure.Core.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } - public Azure.Core.GeoJson.GeoArray>> Coordinates { get { throw null; } } + public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons) { } + public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons, Azure.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } + public Azure.GeoJson.GeoArray>> Coordinates { get { throw null; } } public int Count { get { throw null; } } - public Azure.Core.GeoJson.GeoPolygon this[int index] { get { throw null; } } - public override Azure.Core.GeoJson.GeoObjectType Type { get { throw null; } } - public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; } + public Azure.GeoJson.GeoPolygon this[int index] { get { throw null; } } + public override Azure.GeoJson.GeoObjectType Type { get { throw null; } } + public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct GeoPosition : System.IEquatable + public readonly partial struct GeoPosition : System.IEquatable { private readonly int _dummyPrimitive; public GeoPosition(double longitude, double latitude) { throw null; } @@ -659,111 +756,14 @@ public GeoPolygonCollection(System.Collections.Generic.IEnumerable scopes) { } - public BearerTokenAuthenticationPolicy(Azure.Core.TokenCredential credential, string scope) { } - protected void AuthenticateAndAuthorizeRequest(Azure.Core.HttpMessage message, Azure.Core.TokenRequestContext context) { } - protected System.Threading.Tasks.ValueTask AuthenticateAndAuthorizeRequestAsync(Azure.Core.HttpMessage message, Azure.Core.TokenRequestContext context) { throw null; } - protected virtual void AuthorizeRequest(Azure.Core.HttpMessage message) { } - protected virtual System.Threading.Tasks.ValueTask AuthorizeRequestAsync(Azure.Core.HttpMessage message) { throw null; } - protected virtual bool AuthorizeRequestOnChallenge(Azure.Core.HttpMessage message) { throw null; } - protected virtual System.Threading.Tasks.ValueTask AuthorizeRequestOnChallengeAsync(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; } - } - public partial class HttpClientTransport : Azure.Core.Pipeline.HttpPipelineTransport - { - public static readonly Azure.Core.Pipeline.HttpClientTransport Shared; - public HttpClientTransport() { } - public HttpClientTransport(System.Net.Http.HttpClient client) { } - public HttpClientTransport(System.Net.Http.HttpMessageHandler messageHandler) { } - public sealed override Azure.Core.Request CreateRequest() { throw null; } - public override void Process(Azure.Core.HttpMessage message) { } - public sealed override System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message) { throw null; } - } - public partial class HttpPipeline - { - public HttpPipeline(Azure.Core.Pipeline.HttpPipelineTransport transport, Azure.Core.Pipeline.HttpPipelinePolicy[]? policies = null, Azure.Core.ResponseClassifier? responseClassifier = null) { } - public Azure.Core.ResponseClassifier ResponseClassifier { get { throw null; } } - public static System.IDisposable CreateClientRequestIdScope(string? clientRequestId) { throw null; } - public static System.IDisposable CreateHttpMessagePropertiesScope(System.Collections.Generic.IDictionary messageProperties) { throw null; } - public Azure.Core.HttpMessage CreateMessage() { throw null; } - public Azure.Core.Request CreateRequest() { throw null; } - public void Send(Azure.Core.HttpMessage message, System.Threading.CancellationToken cancellationToken) { } - public System.Threading.Tasks.ValueTask SendAsync(Azure.Core.HttpMessage message, System.Threading.CancellationToken cancellationToken) { throw null; } - public Azure.Response SendRequest(Azure.Core.Request request, System.Threading.CancellationToken cancellationToken) { throw null; } - public System.Threading.Tasks.ValueTask SendRequestAsync(Azure.Core.Request request, System.Threading.CancellationToken cancellationToken) { throw null; } - } - public static partial class HttpPipelineBuilder - { - public static Azure.Core.Pipeline.HttpPipeline Build(Azure.Core.ClientOptions options, params Azure.Core.Pipeline.HttpPipelinePolicy[] perRetryPolicies) { throw null; } - public static Azure.Core.Pipeline.HttpPipeline Build(Azure.Core.ClientOptions options, Azure.Core.Pipeline.HttpPipelinePolicy[] perCallPolicies, Azure.Core.Pipeline.HttpPipelinePolicy[] perRetryPolicies, Azure.Core.ResponseClassifier responseClassifier) { throw null; } - } - public abstract partial class HttpPipelinePolicy - { - protected HttpPipelinePolicy() { } - public abstract void Process(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline); - public abstract System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline); - 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; } - } - public abstract partial class HttpPipelineSynchronousPolicy : Azure.Core.Pipeline.HttpPipelinePolicy - { - protected HttpPipelineSynchronousPolicy() { } - public virtual void OnReceivedResponse(Azure.Core.HttpMessage message) { } - public virtual void OnSendingRequest(Azure.Core.HttpMessage message) { } - 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; } - } - public abstract partial class HttpPipelineTransport - { - protected HttpPipelineTransport() { } - public abstract Azure.Core.Request CreateRequest(); - public abstract void Process(Azure.Core.HttpMessage message); - public abstract System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message); - } -} -namespace Azure.Core.Serialization -{ - public partial interface IMemberNameConverter - { - string? ConvertMemberName(System.Reflection.MemberInfo member); - } - public partial class JsonObjectSerializer : Azure.Core.Serialization.ObjectSerializer, Azure.Core.Serialization.IMemberNameConverter - { - public JsonObjectSerializer() { } - public JsonObjectSerializer(System.Text.Json.JsonSerializerOptions options) { } - public static Azure.Core.Serialization.JsonObjectSerializer Default { get { throw null; } } - string? Azure.Core.Serialization.IMemberNameConverter.ConvertMemberName(System.Reflection.MemberInfo member) { throw null; } - public override object? Deserialize(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken) { throw null; } - public override System.Threading.Tasks.ValueTask DeserializeAsync(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken) { throw null; } - public override void Serialize(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken) { } - public override System.BinaryData Serialize(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override System.Threading.Tasks.ValueTask SerializeAsync(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken) { throw null; } - public override System.Threading.Tasks.ValueTask SerializeAsync(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public abstract partial class ObjectSerializer - { - protected ObjectSerializer() { } - public abstract object? Deserialize(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken); - public abstract System.Threading.Tasks.ValueTask DeserializeAsync(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken); - public abstract void Serialize(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken); - public virtual System.BinaryData Serialize(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public abstract System.Threading.Tasks.ValueTask SerializeAsync(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken); - public virtual System.Threading.Tasks.ValueTask SerializeAsync(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } -} namespace Azure.Messaging { public partial class CloudEvent diff --git a/sdk/core/Azure.Core/api/Azure.Core.netstandard2.0.cs b/sdk/core/Azure.Core/api/Azure.Core.netstandard2.0.cs index 5051389e87fa9..412af64408ba3 100644 --- a/sdk/core/Azure.Core/api/Azure.Core.netstandard2.0.cs +++ b/sdk/core/Azure.Core/api/Azure.Core.netstandard2.0.cs @@ -507,7 +507,104 @@ public partial interface IAzureClientFactoryBuilderWithCredential Azure.Core.Extensions.IAzureClientBuilder RegisterClientFactory(System.Func clientFactory, bool requiresCredential = true) where TOptions : class; } } -namespace Azure.Core.GeoJson +namespace Azure.Core.Pipeline +{ + public partial class BearerTokenAuthenticationPolicy : Azure.Core.Pipeline.HttpPipelinePolicy + { + public BearerTokenAuthenticationPolicy(Azure.Core.TokenCredential credential, System.Collections.Generic.IEnumerable scopes) { } + public BearerTokenAuthenticationPolicy(Azure.Core.TokenCredential credential, string scope) { } + protected void AuthenticateAndAuthorizeRequest(Azure.Core.HttpMessage message, Azure.Core.TokenRequestContext context) { } + protected System.Threading.Tasks.ValueTask AuthenticateAndAuthorizeRequestAsync(Azure.Core.HttpMessage message, Azure.Core.TokenRequestContext context) { throw null; } + protected virtual void AuthorizeRequest(Azure.Core.HttpMessage message) { } + protected virtual System.Threading.Tasks.ValueTask AuthorizeRequestAsync(Azure.Core.HttpMessage message) { throw null; } + protected virtual bool AuthorizeRequestOnChallenge(Azure.Core.HttpMessage message) { throw null; } + protected virtual System.Threading.Tasks.ValueTask AuthorizeRequestOnChallengeAsync(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; } + } + public partial class HttpClientTransport : Azure.Core.Pipeline.HttpPipelineTransport + { + public static readonly Azure.Core.Pipeline.HttpClientTransport Shared; + public HttpClientTransport() { } + public HttpClientTransport(System.Net.Http.HttpClient client) { } + public HttpClientTransport(System.Net.Http.HttpMessageHandler messageHandler) { } + public sealed override Azure.Core.Request CreateRequest() { throw null; } + public override void Process(Azure.Core.HttpMessage message) { } + public sealed override System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message) { throw null; } + } + public partial class HttpPipeline + { + public HttpPipeline(Azure.Core.Pipeline.HttpPipelineTransport transport, Azure.Core.Pipeline.HttpPipelinePolicy[]? policies = null, Azure.Core.ResponseClassifier? responseClassifier = null) { } + public Azure.Core.ResponseClassifier ResponseClassifier { get { throw null; } } + public static System.IDisposable CreateClientRequestIdScope(string? clientRequestId) { throw null; } + public static System.IDisposable CreateHttpMessagePropertiesScope(System.Collections.Generic.IDictionary messageProperties) { throw null; } + public Azure.Core.HttpMessage CreateMessage() { throw null; } + public Azure.Core.Request CreateRequest() { throw null; } + public void Send(Azure.Core.HttpMessage message, System.Threading.CancellationToken cancellationToken) { } + public System.Threading.Tasks.ValueTask SendAsync(Azure.Core.HttpMessage message, System.Threading.CancellationToken cancellationToken) { throw null; } + public Azure.Response SendRequest(Azure.Core.Request request, System.Threading.CancellationToken cancellationToken) { throw null; } + public System.Threading.Tasks.ValueTask SendRequestAsync(Azure.Core.Request request, System.Threading.CancellationToken cancellationToken) { throw null; } + } + public static partial class HttpPipelineBuilder + { + public static Azure.Core.Pipeline.HttpPipeline Build(Azure.Core.ClientOptions options, params Azure.Core.Pipeline.HttpPipelinePolicy[] perRetryPolicies) { throw null; } + public static Azure.Core.Pipeline.HttpPipeline Build(Azure.Core.ClientOptions options, Azure.Core.Pipeline.HttpPipelinePolicy[] perCallPolicies, Azure.Core.Pipeline.HttpPipelinePolicy[] perRetryPolicies, Azure.Core.ResponseClassifier responseClassifier) { throw null; } + } + public abstract partial class HttpPipelinePolicy + { + protected HttpPipelinePolicy() { } + public abstract void Process(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline); + public abstract System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline); + 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; } + } + public abstract partial class HttpPipelineSynchronousPolicy : Azure.Core.Pipeline.HttpPipelinePolicy + { + protected HttpPipelineSynchronousPolicy() { } + public virtual void OnReceivedResponse(Azure.Core.HttpMessage message) { } + public virtual void OnSendingRequest(Azure.Core.HttpMessage message) { } + 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; } + } + public abstract partial class HttpPipelineTransport + { + protected HttpPipelineTransport() { } + public abstract Azure.Core.Request CreateRequest(); + public abstract void Process(Azure.Core.HttpMessage message); + public abstract System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message); + } +} +namespace Azure.Core.Serialization +{ + public partial interface IMemberNameConverter + { + string? ConvertMemberName(System.Reflection.MemberInfo member); + } + public partial class JsonObjectSerializer : Azure.Core.Serialization.ObjectSerializer, Azure.Core.Serialization.IMemberNameConverter + { + public JsonObjectSerializer() { } + public JsonObjectSerializer(System.Text.Json.JsonSerializerOptions options) { } + public static Azure.Core.Serialization.JsonObjectSerializer Default { get { throw null; } } + string? Azure.Core.Serialization.IMemberNameConverter.ConvertMemberName(System.Reflection.MemberInfo member) { throw null; } + public override object? Deserialize(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken) { throw null; } + public override System.Threading.Tasks.ValueTask DeserializeAsync(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken) { throw null; } + public override void Serialize(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken) { } + public override System.BinaryData Serialize(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask SerializeAsync(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken) { throw null; } + public override System.Threading.Tasks.ValueTask SerializeAsync(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public abstract partial class ObjectSerializer + { + protected ObjectSerializer() { } + public abstract object? Deserialize(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken); + public abstract System.Threading.Tasks.ValueTask DeserializeAsync(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken); + public abstract void Serialize(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken); + public virtual System.BinaryData Serialize(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public abstract System.Threading.Tasks.ValueTask SerializeAsync(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken); + public virtual System.Threading.Tasks.ValueTask SerializeAsync(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } +} +namespace Azure.GeoJson { [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct GeoArray : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable @@ -516,7 +613,7 @@ namespace Azure.Core.GeoJson 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; } + public Azure.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)] @@ -531,7 +628,7 @@ public void Dispose() { } public void Reset() { } } } - public sealed partial class GeoBoundingBox : System.IEquatable + 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) { } @@ -542,57 +639,57 @@ public GeoBoundingBox(double west, double south, double east, double north, doub 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 bool Equals(Azure.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 sealed partial class GeoCollection : Azure.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 GeoCollection(System.Collections.Generic.IEnumerable geometries) { } + public GeoCollection(System.Collections.Generic.IEnumerable geometries, Azure.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; } + public Azure.GeoJson.GeoObject this[int index] { get { throw null; } } + public override Azure.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 GeoJsonConverter : System.Text.Json.Serialization.JsonConverter + public sealed partial class GeoJsonConverter : System.Text.Json.Serialization.JsonConverter { public GeoJsonConverter() { } public override bool CanConvert(System.Type typeToConvert) { throw null; } - public override Azure.Core.GeoJson.GeoObject Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { throw null; } - public override void Write(System.Text.Json.Utf8JsonWriter writer, Azure.Core.GeoJson.GeoObject value, System.Text.Json.JsonSerializerOptions options) { } + public override Azure.GeoJson.GeoObject Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { throw null; } + public override void Write(System.Text.Json.Utf8JsonWriter writer, Azure.GeoJson.GeoObject value, System.Text.Json.JsonSerializerOptions options) { } } public sealed partial class GeoLinearRing { - public GeoLinearRing(System.Collections.Generic.IEnumerable coordinates) { } - public Azure.Core.GeoJson.GeoArray Coordinates { get { throw null; } } + public GeoLinearRing(System.Collections.Generic.IEnumerable coordinates) { } + public Azure.GeoJson.GeoArray Coordinates { get { throw null; } } } - public sealed partial class GeoLineString : Azure.Core.GeoJson.GeoObject + public sealed partial class GeoLineString : Azure.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 GeoLineString(System.Collections.Generic.IEnumerable coordinates) { } + public GeoLineString(System.Collections.Generic.IEnumerable coordinates, Azure.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } + public Azure.GeoJson.GeoArray Coordinates { get { throw null; } } + public override Azure.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 sealed partial class GeoLineStringCollection : Azure.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 GeoLineStringCollection(System.Collections.Generic.IEnumerable lines) { } + public GeoLineStringCollection(System.Collections.Generic.IEnumerable lines, Azure.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } + public Azure.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; } + public Azure.GeoJson.GeoLineString this[int index] { get { throw null; } } + public override Azure.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 Azure.GeoJson.GeoBoundingBox? BoundingBox { get { throw null; } } + public abstract Azure.GeoJson.GeoObjectType Type { get; } + public static Azure.GeoJson.GeoObject Parse(string json) { throw null; } public override string ToString() { throw null; } public bool TryGetCustomProperty(string name, out object? value) { throw null; } public void WriteTo(System.Text.Json.Utf8JsonWriter writer) { } @@ -607,49 +704,49 @@ public enum GeoObjectType MultiLineString = 5, GeometryCollection = 6, } - public sealed partial class GeoPoint : Azure.Core.GeoJson.GeoObject + public sealed partial class GeoPoint : Azure.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(Azure.GeoJson.GeoPosition position) { } + public GeoPoint(Azure.GeoJson.GeoPosition position, Azure.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 Azure.GeoJson.GeoPosition Coordinates { get { throw null; } } + public override Azure.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 sealed partial class GeoPointCollection : Azure.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 GeoPointCollection(System.Collections.Generic.IEnumerable points) { } + public GeoPointCollection(System.Collections.Generic.IEnumerable points, Azure.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } + public Azure.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; } + public Azure.GeoJson.GeoPoint this[int index] { get { throw null; } } + public override Azure.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 sealed partial class GeoPolygon : Azure.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 Rings { get { throw null; } } - public override Azure.Core.GeoJson.GeoObjectType Type { get { throw null; } } + public GeoPolygon(System.Collections.Generic.IEnumerable rings) { } + public GeoPolygon(System.Collections.Generic.IEnumerable rings, Azure.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } + public GeoPolygon(System.Collections.Generic.IEnumerable positions) { } + public Azure.GeoJson.GeoArray> Coordinates { get { throw null; } } + public Azure.GeoJson.GeoLinearRing OuterRing { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Rings { get { throw null; } } + public override Azure.GeoJson.GeoObjectType Type { get { throw null; } } } - public sealed partial class GeoPolygonCollection : Azure.Core.GeoJson.GeoObject, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.IEnumerable + public sealed partial class GeoPolygonCollection : Azure.GeoJson.GeoObject, System.Collections.Generic.IEnumerable, System.Collections.Generic.IReadOnlyCollection, System.Collections.Generic.IReadOnlyList, System.Collections.IEnumerable { - public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons) { } - public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons, Azure.Core.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } - public Azure.Core.GeoJson.GeoArray>> Coordinates { get { throw null; } } + public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons) { } + public GeoPolygonCollection(System.Collections.Generic.IEnumerable polygons, Azure.GeoJson.GeoBoundingBox? boundingBox, System.Collections.Generic.IReadOnlyDictionary customProperties) { } + public Azure.GeoJson.GeoArray>> Coordinates { get { throw null; } } public int Count { get { throw null; } } - public Azure.Core.GeoJson.GeoPolygon this[int index] { get { throw null; } } - public override Azure.Core.GeoJson.GeoObjectType Type { get { throw null; } } - public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; } + public Azure.GeoJson.GeoPolygon this[int index] { get { throw null; } } + public override Azure.GeoJson.GeoObjectType Type { get { throw null; } } + public System.Collections.Generic.IEnumerator GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct GeoPosition : System.IEquatable + public readonly partial struct GeoPosition : System.IEquatable { private readonly int _dummyPrimitive; public GeoPosition(double longitude, double latitude) { throw null; } @@ -659,111 +756,14 @@ public GeoPolygonCollection(System.Collections.Generic.IEnumerable scopes) { } - public BearerTokenAuthenticationPolicy(Azure.Core.TokenCredential credential, string scope) { } - protected void AuthenticateAndAuthorizeRequest(Azure.Core.HttpMessage message, Azure.Core.TokenRequestContext context) { } - protected System.Threading.Tasks.ValueTask AuthenticateAndAuthorizeRequestAsync(Azure.Core.HttpMessage message, Azure.Core.TokenRequestContext context) { throw null; } - protected virtual void AuthorizeRequest(Azure.Core.HttpMessage message) { } - protected virtual System.Threading.Tasks.ValueTask AuthorizeRequestAsync(Azure.Core.HttpMessage message) { throw null; } - protected virtual bool AuthorizeRequestOnChallenge(Azure.Core.HttpMessage message) { throw null; } - protected virtual System.Threading.Tasks.ValueTask AuthorizeRequestOnChallengeAsync(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; } - } - public partial class HttpClientTransport : Azure.Core.Pipeline.HttpPipelineTransport - { - public static readonly Azure.Core.Pipeline.HttpClientTransport Shared; - public HttpClientTransport() { } - public HttpClientTransport(System.Net.Http.HttpClient client) { } - public HttpClientTransport(System.Net.Http.HttpMessageHandler messageHandler) { } - public sealed override Azure.Core.Request CreateRequest() { throw null; } - public override void Process(Azure.Core.HttpMessage message) { } - public sealed override System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message) { throw null; } - } - public partial class HttpPipeline - { - public HttpPipeline(Azure.Core.Pipeline.HttpPipelineTransport transport, Azure.Core.Pipeline.HttpPipelinePolicy[]? policies = null, Azure.Core.ResponseClassifier? responseClassifier = null) { } - public Azure.Core.ResponseClassifier ResponseClassifier { get { throw null; } } - public static System.IDisposable CreateClientRequestIdScope(string? clientRequestId) { throw null; } - public static System.IDisposable CreateHttpMessagePropertiesScope(System.Collections.Generic.IDictionary messageProperties) { throw null; } - public Azure.Core.HttpMessage CreateMessage() { throw null; } - public Azure.Core.Request CreateRequest() { throw null; } - public void Send(Azure.Core.HttpMessage message, System.Threading.CancellationToken cancellationToken) { } - public System.Threading.Tasks.ValueTask SendAsync(Azure.Core.HttpMessage message, System.Threading.CancellationToken cancellationToken) { throw null; } - public Azure.Response SendRequest(Azure.Core.Request request, System.Threading.CancellationToken cancellationToken) { throw null; } - public System.Threading.Tasks.ValueTask SendRequestAsync(Azure.Core.Request request, System.Threading.CancellationToken cancellationToken) { throw null; } - } - public static partial class HttpPipelineBuilder - { - public static Azure.Core.Pipeline.HttpPipeline Build(Azure.Core.ClientOptions options, params Azure.Core.Pipeline.HttpPipelinePolicy[] perRetryPolicies) { throw null; } - public static Azure.Core.Pipeline.HttpPipeline Build(Azure.Core.ClientOptions options, Azure.Core.Pipeline.HttpPipelinePolicy[] perCallPolicies, Azure.Core.Pipeline.HttpPipelinePolicy[] perRetryPolicies, Azure.Core.ResponseClassifier responseClassifier) { throw null; } - } - public abstract partial class HttpPipelinePolicy - { - protected HttpPipelinePolicy() { } - public abstract void Process(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline); - public abstract System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message, System.ReadOnlyMemory pipeline); - 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; } - } - public abstract partial class HttpPipelineSynchronousPolicy : Azure.Core.Pipeline.HttpPipelinePolicy - { - protected HttpPipelineSynchronousPolicy() { } - public virtual void OnReceivedResponse(Azure.Core.HttpMessage message) { } - public virtual void OnSendingRequest(Azure.Core.HttpMessage message) { } - 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; } - } - public abstract partial class HttpPipelineTransport - { - protected HttpPipelineTransport() { } - public abstract Azure.Core.Request CreateRequest(); - public abstract void Process(Azure.Core.HttpMessage message); - public abstract System.Threading.Tasks.ValueTask ProcessAsync(Azure.Core.HttpMessage message); - } -} -namespace Azure.Core.Serialization -{ - public partial interface IMemberNameConverter - { - string? ConvertMemberName(System.Reflection.MemberInfo member); - } - public partial class JsonObjectSerializer : Azure.Core.Serialization.ObjectSerializer, Azure.Core.Serialization.IMemberNameConverter - { - public JsonObjectSerializer() { } - public JsonObjectSerializer(System.Text.Json.JsonSerializerOptions options) { } - public static Azure.Core.Serialization.JsonObjectSerializer Default { get { throw null; } } - string? Azure.Core.Serialization.IMemberNameConverter.ConvertMemberName(System.Reflection.MemberInfo member) { throw null; } - public override object? Deserialize(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken) { throw null; } - public override System.Threading.Tasks.ValueTask DeserializeAsync(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken) { throw null; } - public override void Serialize(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken) { } - public override System.BinaryData Serialize(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public override System.Threading.Tasks.ValueTask SerializeAsync(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken) { throw null; } - public override System.Threading.Tasks.ValueTask SerializeAsync(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public abstract partial class ObjectSerializer - { - protected ObjectSerializer() { } - public abstract object? Deserialize(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken); - public abstract System.Threading.Tasks.ValueTask DeserializeAsync(System.IO.Stream stream, System.Type returnType, System.Threading.CancellationToken cancellationToken); - public abstract void Serialize(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken); - public virtual System.BinaryData Serialize(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public abstract System.Threading.Tasks.ValueTask SerializeAsync(System.IO.Stream stream, object? value, System.Type inputType, System.Threading.CancellationToken cancellationToken); - public virtual System.Threading.Tasks.ValueTask SerializeAsync(object? value, System.Type? inputType = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } -} namespace Azure.Messaging { public partial class CloudEvent diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoLineString.cs b/sdk/core/Azure.Core/src/GeoJson/GeoLineString.cs index c9d156a81b7c4..e47b93858494b 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoLineString.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoLineString.cs @@ -17,7 +17,7 @@ namespace Azure.GeoJson /// new GeoPosition(-122.108727, 47.649383), /// new GeoPosition(-122.081538, 47.640846), /// new GeoPosition(-122.078634, 47.576066), - /// new GeoPosition(-122.112686, 47.578559) + /// new GeoPosition(-122.112686, 47.578559), /// }); /// /// diff --git a/sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs b/sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs index 0c0d6d2bab555..235dc62481818 100644 --- a/sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs +++ b/sdk/core/Azure.Core/src/GeoJson/GeoPolygon.cs @@ -18,7 +18,8 @@ namespace Azure.GeoJson /// new GeoPosition(-122.108727, 47.649383), /// new GeoPosition(-122.081538, 47.640846), /// new GeoPosition(-122.078634, 47.576066), - /// new GeoPosition(-122.112686, 47.578559) + /// new GeoPosition(-122.112686, 47.578559), + /// new GeoPosition(-122.108727, 47.649383), /// }); /// /// Creating a polygon with holes: @@ -31,7 +32,9 @@ namespace Azure.GeoJson /// new GeoPosition(-122.108727, 47.649383), /// new GeoPosition(-122.081538, 47.640846), /// new GeoPosition(-122.078634, 47.576066), - /// new GeoPosition(-122.112686, 47.578559) + /// new GeoPosition(-122.112686, 47.578559), + /// // Last position same as first + /// new GeoPosition(-122.108727, 47.649383), /// }), /// // Inner ring /// new GeoLinearRing(new[] @@ -39,7 +42,9 @@ namespace Azure.GeoJson /// new GeoPosition(-122.102370, 47.607370), /// new GeoPosition(-122.083488, 47.608007), /// new GeoPosition(-122.085419, 47.597879), - /// new GeoPosition(-122.107005, 47.596895) + /// new GeoPosition(-122.107005, 47.596895), + /// // Last position same as first + /// new GeoPosition(-122.102370, 47.607370), /// }) /// }); ///