From d3d3a228d927ef6bf6cf66a01aba3ada8bfa4e06 Mon Sep 17 00:00:00 2001 From: mcpappas <39843989+mcpappas@users.noreply.github.com> Date: Mon, 16 Mar 2020 17:29:40 -0400 Subject: [PATCH] Make MultiPolygon and PolygonCoordinates classes public. (#1239) * Made MultiPolygon and PolygonCoordinates classes public. * Updated the changelog and the DotNetSDKAPI.json --- .../src/Spatial/MultiPolygon.cs | 2 +- .../src/Spatial/PolygonCoordinates.cs | 2 +- .../DotNetSDKAPI.json | 132 ++++++++++++++++++ changelog.md | 2 + 4 files changed, 136 insertions(+), 2 deletions(-) diff --git a/Microsoft.Azure.Cosmos/src/Spatial/MultiPolygon.cs b/Microsoft.Azure.Cosmos/src/Spatial/MultiPolygon.cs index 906db7fb1d..83646dd1cd 100644 --- a/Microsoft.Azure.Cosmos/src/Spatial/MultiPolygon.cs +++ b/Microsoft.Azure.Cosmos/src/Spatial/MultiPolygon.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Cosmos.Spatial /// /// [DataContract] - internal sealed class MultiPolygon : Geometry, IEquatable + public sealed class MultiPolygon : Geometry, IEquatable { /// /// Initializes a new instance of the class. diff --git a/Microsoft.Azure.Cosmos/src/Spatial/PolygonCoordinates.cs b/Microsoft.Azure.Cosmos/src/Spatial/PolygonCoordinates.cs index 252bd42abf..5c7f3b65eb 100644 --- a/Microsoft.Azure.Cosmos/src/Spatial/PolygonCoordinates.cs +++ b/Microsoft.Azure.Cosmos/src/Spatial/PolygonCoordinates.cs @@ -18,7 +18,7 @@ namespace Microsoft.Azure.Cosmos.Spatial /// [DataContract] [JsonConverter(typeof(PolygonCoordinatesJsonConverter))] - internal sealed class PolygonCoordinates : IEquatable + public sealed class PolygonCoordinates : IEquatable { /// /// Initializes a new instance of the class. diff --git a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/DotNetSDKAPI.json b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/DotNetSDKAPI.json index 1e2c381f92..489a9662c3 100644 --- a/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/DotNetSDKAPI.json +++ b/Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.Tests/DotNetSDKAPI.json @@ -6482,6 +6482,52 @@ }, "NestedTypes": {} }, + "MultiPolygon": { + "Subclasses": {}, + "Members": { + "Boolean Equals(Microsoft.Azure.Cosmos.Spatial.MultiPolygon)": { + "Type": "Method", + "Attributes": [], + "MethodInfo": "Boolean Equals(Microsoft.Azure.Cosmos.Spatial.MultiPolygon)" + }, + "Boolean Equals(System.Object)": { + "Type": "Method", + "Attributes": [], + "MethodInfo": "Boolean Equals(System.Object)" + }, + "Int32 GetHashCode()": { + "Type": "Method", + "Attributes": [], + "MethodInfo": "Int32 GetHashCode()" + }, + "System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates] get_Polygons()[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]": { + "Type": "Method", + "Attributes": [ + "CompilerGeneratedAttribute" + ], + "MethodInfo": "System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates] get_Polygons()" + }, + "System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates] Polygons[System.Runtime.Serialization.DataMemberAttribute(Name = \"coordinates\")]-[Newtonsoft.Json.JsonPropertyAttribute(\"coordinates\", Order = 1, Required = 2)]": { + "Type": "Property", + "Attributes": [ + "DataMemberAttribute", + "JsonPropertyAttribute" + ], + "MethodInfo": null + }, + "Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates])": { + "Type": "Constructor", + "Attributes": [], + "MethodInfo": "Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates])" + }, + "Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates], Microsoft.Azure.Cosmos.Spatial.GeometryParams)": { + "Type": "Constructor", + "Attributes": [], + "MethodInfo": "Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates], Microsoft.Azure.Cosmos.Spatial.GeometryParams)" + } + }, + "NestedTypes": {} + }, "Point": { "Subclasses": {}, "Members": { @@ -7022,6 +7068,52 @@ }, "NestedTypes": {} }, + "MultiPolygon": { + "Subclasses": {}, + "Members": { + "Boolean Equals(Microsoft.Azure.Cosmos.Spatial.MultiPolygon)": { + "Type": "Method", + "Attributes": [], + "MethodInfo": "Boolean Equals(Microsoft.Azure.Cosmos.Spatial.MultiPolygon)" + }, + "Boolean Equals(System.Object)": { + "Type": "Method", + "Attributes": [], + "MethodInfo": "Boolean Equals(System.Object)" + }, + "Int32 GetHashCode()": { + "Type": "Method", + "Attributes": [], + "MethodInfo": "Int32 GetHashCode()" + }, + "System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates] get_Polygons()[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]": { + "Type": "Method", + "Attributes": [ + "CompilerGeneratedAttribute" + ], + "MethodInfo": "System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates] get_Polygons()" + }, + "System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates] Polygons[System.Runtime.Serialization.DataMemberAttribute(Name = \"coordinates\")]-[Newtonsoft.Json.JsonPropertyAttribute(\"coordinates\", Order = 1, Required = 2)]": { + "Type": "Property", + "Attributes": [ + "DataMemberAttribute", + "JsonPropertyAttribute" + ], + "MethodInfo": null + }, + "Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates])": { + "Type": "Constructor", + "Attributes": [], + "MethodInfo": "Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates])" + }, + "Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates], Microsoft.Azure.Cosmos.Spatial.GeometryParams)": { + "Type": "Constructor", + "Attributes": [], + "MethodInfo": "Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates], Microsoft.Azure.Cosmos.Spatial.GeometryParams)" + } + }, + "NestedTypes": {} + }, "NamedCrs": { "Subclasses": {}, "Members": { @@ -7159,6 +7251,46 @@ }, "NestedTypes": {} }, + "PolygonCoordinates": { + "Subclasses": {}, + "Members": { + "Boolean Equals(Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates)": { + "Type": "Method", + "Attributes": [], + "MethodInfo": "Boolean Equals(Microsoft.Azure.Cosmos.Spatial.PolygonCoordinates)" + }, + "Boolean Equals(System.Object)": { + "Type": "Method", + "Attributes": [], + "MethodInfo": "Boolean Equals(System.Object)" + }, + "Int32 GetHashCode()": { + "Type": "Method", + "Attributes": [], + "MethodInfo": "Int32 GetHashCode()" + }, + "System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.LinearRing] get_Rings()[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]": { + "Type": "Method", + "Attributes": [ + "CompilerGeneratedAttribute" + ], + "MethodInfo": "System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.LinearRing] get_Rings()" + }, + "System.Collections.ObjectModel.ReadOnlyCollection`1[Microsoft.Azure.Cosmos.Spatial.LinearRing] Rings[System.Runtime.Serialization.DataMemberAttribute(Name = \"rings\")]": { + "Type": "Property", + "Attributes": [ + "DataMemberAttribute" + ], + "MethodInfo": null + }, + "Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.LinearRing])": { + "Type": "Constructor", + "Attributes": [], + "MethodInfo": "Void .ctor(System.Collections.Generic.IList`1[Microsoft.Azure.Cosmos.Spatial.LinearRing])" + } + }, + "NestedTypes": {} + }, "Position": { "Subclasses": {}, "Members": { diff --git a/changelog.md b/changelog.md index 8f5948dbeb..471ecba86c 100644 --- a/changelog.md +++ b/changelog.md @@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - [#1268](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1268) Add GetElapsedClientLatency to CosmosDiagnostics +- [#1239](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1239) Made MultiPolygon and PolygonCoordinates classes public. + ### Fixed - [#1213](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1213) CosmosException now returns the original stack trace.